I have set up an OpenVPN server as tun on Windows 2012 R2. Clients are able to establish a tunnel but they're unable to reach private subnets on the server's network and I can't get it to work. I have tried nearly all options to which I thought made a difference: tun/tap, server/server-bridge, push routes, client-config-dir, push "redirect-gateway def1 bypass-dhcp", client to client but I suspect I'm doing something wrong with the routing so in order to reach server 10.20.2.211 on the server's network, I also tried add manual routes on the client: ip route add 10.20.2.211/32 dev tun0 , but that doesn't make a difference either.
Code: Select all
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 "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"
server 10.20.40.0 255.255.255.0
keepalive 10 120
tls-auth "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ta.key" 0 # This file is secret
My company requires me to have the vpn clients in a different subnet, can anyone tell me if the scenario from the picture above is possible? And possibly how to set up the routing commands? Thanks in advance.