Goal: Change the network location(country) using vpn at my house.
Why: Vpn is much more secure than using proxy. It is integrated to the router. Do not want to use a shared solution such as a smart DNS solution or hidemyass.
Problem: Could establish Openvpn connection with my home router using openvpn server hosted at Azure. But can not browse pages.
Debugging:
- Vpn Client tells the connection is established.
- The home network could ping the server in Azure.
- Browsing gives "Dns probe finished error"
Note: The router works with Hidemyass service using L2TP. The reason I would like to use Azure is I need a dedicated resource.
Misc:
- Installed openVpn server both on Windows and Ubuntu.
- I have enabled the TCP and UDP ports in the Azure server and disabled the firewall.
- This config enables pinging from home network to Azure network. ( push "redirect-gateway def1 bypass-dhcp" )
What did I Tried
Installed dns server on azure part
Dns had forwarders configured
Pointed home dns in azure
Giving domain name removes one dns timeout when not connected to vpn.
Disabled the firewall at home
Ping to Azure gateway ip(10.8.0.1) works after vpn
After vpn home network can access the files in (10.8.0.1) using \10.8.0.1\vpn ( after push "redirect-gateway def1 bypass-dhcp" )
Ping to google ip(216.58.209.14) stops after vpn when we have push "redirect-gateway def1 bypass-dhcp" config. But I could ping azure
Updated ip registry for enable ipforwarding on the Azure and restarted. Even the vpn connection seems working the ip forwarding does not work.
All updates for the router
CONCEPTUAL NETWORK TOPOLOGY
REAL NETWORK TOPOLOGY
SERVER CONFIGURATION
port 1194
proto udp
dev tun
ca "C:\Program Files (x86)\OpenVPN\config\ca.crt"
cert "C:\Program Files (x86)\OpenVPN\config\server.crt"
key "C:\Program Files (x86)\OpenVPN\config\server.key"
dh "C:\Program Files (x86)\OpenVPN\config\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 9
CLIENT CONFIGURATION
client
dev tun
proto udp
remote 40.121.143.153 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\Vpn\ca.crt"
cert "C:\Vpn\mike-laptop.crt"
key "C:\Vpn\mike-laptop.key"
ns-cert-type server
comp-lzo
verb 9
ERROR AT MY HOUSE BEFORE AFTER push "redirect-gateway def1 bypass-dhcp
References:
Asus Router DSL-AC68U
redirect-gateway def1
then your DNS probe is not using the VPN.