Goal: Change the network location(country) using vpn at my house.
Why: More secure than the proxy. Do not want to use a shared smart DNS solution.
Problem: Could not establish Openvpn connection with my home router. My server is hosted at Azure.
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:
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
Ping to google ip(216.58.209.14) stops after vpn when assingned a local domain name on the router it started working.
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
http://www.asus.com/Networking/DSLAC68U/HelpDesk_Download/?utm_source=asus-product&utm_medium=referral&utm_campaign=router
CONCEPTUAL NETWORK TOPOLOGY
enter image description here
REAL NETWORK TOPOLOGY
enter image description here
Server Config
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 Config
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 ASSIGNING LOCAL DNS NAME enter image description here
BEFORE AND AFTER VPN enter image description here
ROUTING TABLE AT HOME enter image description here
ROUTING TABLE AT AZURE enter image description here
References:
Asus Router DSL-AC68U
https://www.asus.com/Networking/DSLAC68U/