Multiple Connections From Same Subnet
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Fri Jul 06, 2018 7:41 pm
Multiple Connections From Same Subnet
I'm new to this everyone and have managed to get myself to this point, I successfully setup a server config on my Server 2016 and am able to remote in from another location with one client no problems! I'm not trying to add another system on that same subnet, I've got separate keys generated and the 2nd system does indeed connect without any issues that I can see from the log, however I am unable to ping even the remote router, let alone the server I'm trying to gain access too. I've just started this process as I'm trying to move away from internet facing RDP connections! I'm configured via a TUN, routed setup. I don't want to allow the connection to "share" on the client side as there is a chance they wont be on the same subnet always so want to allow them to function when that happens. I do NOT need access from the server side to the clients in this scenario so subnet access is only needed the one way to login and use Quickbooks.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Fri Jul 06, 2018 7:41 pm
Re: Multiple Connections From Same Subnet
Sorry for the delay in config information people, I just inline edited the example files instead of creating a clean config and have indeed been busy. Hope this is done right!
I have set the server side IPEnableRouter 1 in the registry. Since this was initially working, I am still able to connect but now not getting traffic.
I have set the server side IPEnableRouter 1 in the registry. Since this was initially working, I am still able to connect but now not getting traffic.
Client Config
# This is a comment
client
dev tun
proto udp
remote 555.555.555.555 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\brad.crt"
key "C:\\Program Files\\OpenVPN\\config\\brad.key"
remote-cert-tls server
cipher AES-256-CBC
verb 3
client
dev tun
proto udp
remote 555.555.555.555 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\brad.crt"
key "C:\\Program Files\\OpenVPN\\config\\brad.key"
remote-cert-tls server
cipher AES-256-CBC
verb 3
Server Config
# This is a comment
port 1194
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.0.0.0 255.255.255.0"
keepalive 10 120
cipher AES-256-CBC
max-clients 3
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1
port 1194
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.0.0.0 255.255.255.0"
keepalive 10 120
cipher AES-256-CBC
max-clients 3
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm