Hi 🙂
I have a Asus RT-AC66U router running an OpenVPN Server and I have now run into some problems which I don't understand.
When I connect to the OpenVPN server with the android app on my phone it works great.
When I try to connect with my computers running ubuntu 14.04 and windows 7 it does not work for some reason. I can go to 192.168.1.1 and connect to the router, but I can not connect to anything outside the LAN where the vpn server is.
Now the settings:
I started with just turning on the OpenVPN server and connecting. It worked on my computers and my android phone, but the web browsing did not go through the vpn server, like I needed it to do.
After some searching on google I tried to add push "redirect-gateway def1" to the client ovpn file, but this did not work. I then removed that from the config file, but instead I added it to the server config. I tested it on my android phone and it worked great, and all web browsing was going through the vpn as I wanted. When I later tried to connect with my computers it did not work. I have only tried to connect to the vpn server from "outside" networks. The phone has been connected to the same wlan as the computer when this behaviour was observed. I only had connected one device at a time.
Screenshot of setup on router:
client.ovpn:
client
dev tun
proto udp
remote 83.243.247.108 1194
float
comp-lzo adaptive
keepalive 15 60
auth-user-pass
<ca>
-----BEGIN CERTIFICATE-----
###############################
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
##################################
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
#######################
-----END PRIVATE KEY-----
</key>
ns-cert-type server
resolv-retry infinite
nobind