I have 2 servers.
192.168.0.1 - OLD SERVER (OPENVPN WORKS PERFCTLY) Windows 2008 Server
192.168.0.2 - NEW SERVER (THE PROBLEM) Windows 2016 Server
In then NEW SERVER I installed the openvpn, and did the same configs, copied server files, server.ovpn and the routes.
192.168.2.1 - IP of the OPENVPN SERVER
192.168.2.6 - IP of the Client when is connected on the OPENVPN SERVER
192.168.1.1 - Local IP of the client.
192.168.0.2 - Local IP of the SERVER.
A Client can connect to the NEW SERVER, the client can ping and access File Sharing using \\192.168.2.1.
But if I'm on the NEW SERVER and try to ping 192.168.2.6 or access \\192.168.2.6 I can't reach there.
My guess is there is something wrong with routes on the SERVER side.
OBS.: Everything still works good on the OLD SERVER.
OPENVPN VERSION 1.0.3
SERVER CONFIG
## server.ovpn ##
port 1194
proto udp
dev tun
ca ca.crt
cert zill.crt
key zill.key
dh dh1024.pem
server 192.168.2.0 255.255.255.0
push "route 192.168.2.0 255.255.255.0"
push "dhcp-option WINS 192.168.2.1"
push "dhcp-option DNS 192.168.2.1"
push "dhcp-option DOMAIN zill.local"
client-to-client
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo no
max-clients 4
persist-key
persist-tun
status openvpn-status.log
verb 3
CLIENT CONNECTION SCRIPT
client
proto udp
dev tun
remote xxx.xxx.xxx.xxx
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert zill.crt
key zill.key
comp-lzo no
verb 3
ROUTING TABLE ON NEW SERVER
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.254 192.168.0.2 291
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
192.168.0.0 255.255.255.0 On-link 192.168.0.2 291
192.168.0.2 255.255.255.255 On-link 192.168.0.2 291
192.168.0.255 255.255.255.255 On-link 192.168.0.2 291
192.168.2.0 255.255.255.0 On-link 192.168.0.2 36
192.168.2.0 255.255.255.0 192.168.2.2 192.168.2.1 55
192.168.2.0 255.255.255.0 192.168.2.4 192.168.0.2 36
192.168.2.0 255.255.255.252 On-link 192.168.2.1 311
192.168.2.1 255.255.255.255 On-link 192.168.2.1 311
192.168.2.3 255.255.255.255 On-link 192.168.2.1 311
192.168.2.255 255.255.255.255 On-link 192.168.0.2 291
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.0.2 291
224.0.0.0 240.0.0.0 On-link 192.168.2.1 311
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.0.2 291
255.255.255.255 255.255.255.255 On-link 192.168.2.1 311
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 192.168.0.254 Default
===========================================================================