Hi everybody, I just changed linux server and have to migrate to Windows 2012 R2 server.
Tried to migrate settings from the linux box to windows box but still a problem I can't solve myself... I think I am really near but not figuring out where to go to solve it.
The goal should be from OVPN client to reach LAN behind the server and forward some specific external ip addresses
OVPN Client LAN 192.168.10.X gw 192.168.10.254
OVPN SERVER LAN 192.168.1.X gw 192.168.1.1 DNS 192.168.1.1
Server configuration:
port 1194
dev tun
dev-node OpenVPN
tls-server
ca "mycertficatepath.crt"
cert "mycertficatepath.crt"
key "mykeypath.key"
dh "path.pem"
mode server
ifconfig 10.8.0.1 10.8.0.2
ifconfig-pool 10.8.0.4 10.8.0.255
ifconfig-pool-persist ipp.txt
push "route10.8.0.1 255.255.255.255"
push "route 192.168.1.0 255.255.255.0"
push " route XXX.XXX.XXX.XXX 255.255.255.255" #internet single IP address to be routed from vpn client to internet through ovpn server
push "dcp-option DNS 192.168.1.1"
keepalive 10 120
inactive 600
route 10.8.0.0 255.255.255.0
persist-tun
persist-key
client configuration:
port 1194
dev tun
remote server.ip.address
tls-client
ca path.crt
cert path.crt
key path.key
pull
verb3
Now my client gets 10.8.0.6 IP and server is on 10.8.0.1. I can succesfully ping and connect to server services on 10.8.0.1
I was not able to ping LAN server address 192.168.1.A
On linux box it was enough to "enable forwarding" whatever by command line or graphic interface and it worked.
I googled a bit and found to change a DWORD registry key to allow windows to forward traffic to external: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurentControlSet\Services\Tcpip\parameters IPEnableRouter to 1
Now I am able to ping 192.168.1.A from client and connect to services on server LAN address but no way to ping othe server LAN machines or forward traffic to external internet IP.
Ping says request timeout
If I do a traceroute I get 19ms [10.8.0.1] and then 29 times * * * Timeout request
Same behaviour for internet ip address to be forwarded.
Like packages got sticked to ovpn server. I found also a post to add some routes, tried adding but no difference, but maybe I did not understood where to add such route tables addition...
What am I missing to make it work correctly??
Many thanks for help!