https://community.openvpn.net/openvpn/w ... dows_Guide
I can successfully establish the OpenVPN connection from the laptop to the server. However, while I can ping the OpenVPN server (10.8.0.1) from the laptop, I can’t ping the Windows Server (192.168.128.2). I understand the reason for this – when I ping the server (192.168.128.2) from the laptop, it doesn’t know to send those packets down the VPN tunnel (a tracert shows this). I have had a look at the following article and understand that I need a static route on the laptop to direct traffic destined for the server down the VPN tunnel:
topic9465.html
So from the client side, what I understand from this article I will need something like this on my laptop:
route add 192.168.128.0 mask 255.255.255.0 gw 10.8.0.6
However, this article deals with sites where 2 LAN’s have known IP subnets. It seems I will also need a route from the host side to the client too – is this even possible given that my laptop’s LAN IP address will be changing depending on the wireless network it is connected to?
I’d appreciate it if someone can please point me in the right direction to a solution - thanks in advance for any assistance.
My client and server config files are unchanged from the guide I used to successfully establish the VPN connection:
Server
Clientproto 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 "C:\\Program Files\\OpenVPN\\config\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
client
dev tun
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\laptop.crt"
key "C:\\Program Files (x86)\\OpenVPN\\config\\laptop.key"
ns-cert-type server
comp-lzo
verb 3