Purba
Help - fail to set up Open VPN between ASUS routers
Sitting in a country far, far away from my network but wished to gain access through my home setup.
So.. bought an ASUS router to have in my network to ensure a few units always are routed through my home connection.
Made an initial setup with the home ASUS router and exported the file which turned out with this configuration:
client
dev tap
proto udp
remote purba.asuscomm.com 1194
float
comp-lzo adaptive
keepalive 15 60
auth-user-pass
ns-cert-type server
<ca>
Once in country far, far away, I did manage to connect and reach home router after engaging the VPN client in my far, far away router by typing it´s IP (192.168.0.1) which upon succdessful VPN connection gave me access to my server router´s config page by typing it´s IP address . However, I noticed that web traffic was not routed through SE. but still was passed directly through my foreign ISP (and it was also very, very slow).
In working things back and forward to try to solve this I eventually made a big mistake - In the "advanced settings" under the OPEN VPN config settings on my server router, I adjusted the setting "Direct clients to redirect internet traffic" to "yes" instead of "no".
Effect - now I can still enable the VPN.. but.. I can no longer access my home router - and internet traffic is still going directly out through my foreign ISP.
This is what the log says:
Jan 7 05:57:50 vpnclient5[1417]: SENT CONTROL [RT-N66U]: 'PUSH_REQUEST' (status=1)
Jan 7 05:57:50 vpnclient5[1417]: PUSH: Received control message: 'PUSH_REPLY,route 0.0.0.0 255.255.255.255 net_gateway,route-gateway 192.168.0.1,redirect-gateway def1,route-gateway dhcp,ping 15,ping-restart 60'
Jan 7 05:57:50 vpnclient5[1417]: OPTIONS IMPORT: timers and/or timeouts modified
Jan 7 05:57:50 vpnclient5[1417]: OPTIONS IMPORT: route options modified
Jan 7 05:57:50 vpnclient5[1417]: OPTIONS IMPORT: route-related options modified
Jan 7 05:57:50 vpnclient5[1417]: TUN/TAP device tap15 opened
Jan 7 05:57:50 vpnclient5[1417]: TUN/TAP TX queue length set to 100
Jan 7 05:57:50 vpnclient5[1417]: /etc/openvpn/ovpn-up 5 tap15 1500 1574 init
Jan 7 05:57:50 vpnclient5[1417]: /sbin/route add -net 192.176.244.126 netmask 255.255.255.255 gw 192.168.1.1
Jan 7 05:57:50 vpnclient5[1417]: /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 192.168.0.1
Jan 7 05:57:50 vpnclient5[1417]: ERROR: Linux route add command failed: external program exited with error status: 1
Jan 7 05:57:50 vpnclient5[1417]: /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 192.168.0.1
Jan 7 05:57:50 vpnclient5[1417]: ERROR: Linux route add command failed: external program exited with error status: 1
Jan 7 05:57:50 vpnclient5[1417]: /sbin/route add -net 0.0.0.0 netmask 255.255.255.255 gw 192.168.1.1
Jan 7 05:57:50 vpnclient5[1417]: Initialization Sequence Completed
To clarify situation - have a router in my "home network" connected via a DDNS server which is acting as the VPN server - the Lan side on this is set up with 192.168.0.1
I have a router in my foreign home where I access the internet directly - Lan side = (192.168.1.1) through which I access internet
Inside my foreign home network, I have connected another router via the wan-port. That LAN has 192.168.2.0. This is the one I´m trying set to have a fixed route so it always accesses internet through 192.168.0.1 and it is also the one producing the above log.
I´m completely novice on this (as is obvious), so if someone can help with some ideas to solve this issue, it would be fantastic.
A not is that I´m sitting half way around the world from the vpn server and can´t access it anymore (remote config of the remote router also doesn´t seem to work for some reason)
I do however have a strong feeling this is not fixable from where I´m sitting (and being me) but I sinserely hope I´m wrong, so if anyone can give me a better idea, it would be absolutely awesome and I´d admire you forever.