Browsers won't access local net, but everything else does
Posted: Tue Sep 08, 2015 1:14 am
Hello all, idiot here.
After much struggling, I have OpenVPN Connect (Android) connecting to my openvpn server at my home. I used the "push" command in the server config to make the local network visible. I also used the route command on the local machines that I wish to access. I added a route to the 10.8.0.0/24 network.
I can access the local machines with ssh and even kore (kodi remote control) by using the 192.168.2.x addresses from my Android phone. That all seems to work well, but browses such as Chrome and Opera refuse to find the 192.168.2.x addresses for some reason. Am I doing something stupid here?
Here is the server.conf file on the server (Ubuntu 14.04.3 server):
http://paste.ubuntu.com/12311457/
Here is the client1.ovpn on the Android 4.4.4 Moto G phone:
http://paste.ubuntu.com/12311458/
Here is a copy of a log file (verb 4) from the server:
http://paste.ubuntu.com/12311507/
I'm using the OpenVPN Connect application from the Play Store. The apache2 web server shows no indication of receiving any traffic from Chrome nor Opera (using http://192.168.2.116 as the URL). Non web browser applications on the phone seem to work okay when communicating with the local subnet. Using the browsers to access things in the rest of the world works okay. I assume it is not using the tunnel, and that's how I want it to work so I don't want to use the "redirect-gateway" option in the server config.
What I'm trying to do here is allow my phone to use the regular services (cell data network or wifi hotspot) to access everything that isn't on my home network. I don't really want all phone data traffic routed through the tunnel, just the traffic heading to 192.168.2.x addresses. I've tried kodi, several MythTV applications, ssh and Kore (kodi remote control application) and all work as expected. Outside of a couple of applications that refuse to do anything because they don't see a wifi connection, everything works but the web browsers. Any ideas?

I can access the local machines with ssh and even kore (kodi remote control) by using the 192.168.2.x addresses from my Android phone. That all seems to work well, but browses such as Chrome and Opera refuse to find the 192.168.2.x addresses for some reason. Am I doing something stupid here?
Here is the server.conf file on the server (Ubuntu 14.04.3 server):
http://paste.ubuntu.com/12311457/
Here is the client1.ovpn on the Android 4.4.4 Moto G phone:
http://paste.ubuntu.com/12311458/
Here is a copy of a log file (verb 4) from the server:
http://paste.ubuntu.com/12311507/
I'm using the OpenVPN Connect application from the Play Store. The apache2 web server shows no indication of receiving any traffic from Chrome nor Opera (using http://192.168.2.116 as the URL). Non web browser applications on the phone seem to work okay when communicating with the local subnet. Using the browsers to access things in the rest of the world works okay. I assume it is not using the tunnel, and that's how I want it to work so I don't want to use the "redirect-gateway" option in the server config.
What I'm trying to do here is allow my phone to use the regular services (cell data network or wifi hotspot) to access everything that isn't on my home network. I don't really want all phone data traffic routed through the tunnel, just the traffic heading to 192.168.2.x addresses. I've tried kodi, several MythTV applications, ssh and Kore (kodi remote control application) and all work as expected. Outside of a couple of applications that refuse to do anything because they don't see a wifi connection, everything works but the web browsers. Any ideas?