I'm new to OpenVPN. Maybe you can help me.
I Installed and configured OpenVPN Server on Windows 2016.
Here is my server.ovpn:
Server config
port 443
proto tcp
dev tun
dev-node "VPN Server"
dh "C:\\Program Files\\OpenVPN\\ssl\\dh2048.pem"
ca "C:\\Program Files\\OpenVPN\\ssl\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\ssl\\OVPN-Server.crt"
key "C:\\Program Files\\OpenVPN\\ssl\\OVPN-Server.key"
server 172.16.13.0 255.255.255.0
max-clients 32
keepalive 10 120
client-to-client
comp-lzo
persist-key
persist-tun
cipher DES-CBC
status "C:\\Program Files\\OpenVPN\\log\\status.log"
log "C:\\Program Files\\OpenVPN\\log\\openvpn.log"
verb 4
mute 20
I issued all needed certs, OpenVPN service started and working.
I created needed files for Client (on Windows too).
Here is config.ovpn on client:
Client config
client
resolv-retry infinite
nobind
remote openvpn-external-ip 443
proto tcp
dev tun
comp-lzo
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\Client2.crt"
key "C:\\Program Files\\OpenVPN\\config\\Client2.key"
float
cipher DES-CBC
keepalive 10 120
persist-key
persist-tun
verb 3
Client also succesfully established connection to OpenVPN Server.
I can succesfully ping 172.16.13.1 - OpenVPN Server virtual address
Then I added route through cmd:
route add 10.10.19.0 mask 255.255.255.0 172.16.13.1
10.10.19.0 - network behind server
I see this route when do route print.
But when I trying to tracert 10.10.19.1 from client I see that he is trying to go through default gateway, not using added route.
What is the reason of such behavior? How can I make its working correct?