shennushi / android-openvpn-settings

Automatically exported from code.google.com/p/android-openvpn-settings
GNU General Public License v3.0
0 stars 0 forks source link

Internet does not work when on mobile network #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!
Using this app for a long time now and have an issue.
When connected to my VPN servers via WiFi all works like intended, it`s really 
great.
But when I connect to my VPN via my mobile network (HSDPA or EDGE) I cannot 
browse internet or connect to my internal sites, not via IP even...

So via WiFi all works, via 3G it just connects OK but browsing does not work.

This happens on all android versions (ISC and JB) I tried in on HTC Sensation, 
One X, One X+ and Sony Xperia GO.

Regards,
Greg

Original issue reported on code.google.com by gregec...@gmail.com on 17 Dec 2012 at 10:28

GoogleCodeExporter commented 9 years ago
Just to add steps:

What steps will reproduce the problem?
1. Root phone
2. Install and configure OpenVPN settings app
3. DIsable WiFi and connect to VPN via 3G

What is the expected output? What do you see instead?
I cannot browse via any browser

What version of the product are you using?
OpenVPN settings 0.4.14

Which Android phone are you using?
HTC Sensation, One X, One X+ and Sony Xperia GO

Original comment by gregec...@gmail.com on 17 Dec 2012 at 10:31

GoogleCodeExporter commented 9 years ago
I can confirm the bug.
Tried to connect on 3G on a Ubuntu OpenVPN server. On WiFi everything works 
like a charm.
I contacted VPN service provider which told me that on IoS there is no problem 
on 3G access to his server.
Installed my own OpenVPN server on a different Linux distribution in order to 
see where is the problem. Changed the ROM between GB to new ICS on my LG 
Optimus 2x. The problem persisted.
Now I'm sure the problem is with the android-openvpn-settings client.
The logs on the server and client side show no errors...
But SIP Droid works through the channel, it register quickly to the SIP server 
and conversations are fine.
I'm pretty sure there is a bug with android-openvpn-settings

Original comment by burete.g...@gmail.com on 22 Dec 2012 at 10:25

GoogleCodeExporter commented 9 years ago
Does this still happen when disconnecting and reconnecting the OpenVPN tunnel?

Please provide details using:

 1. Enable Android debugging at Settings. In JB, you have to tap the "About" option a few times before the menu shows up at Settings. While at the menu, also enable "Root access" for "Apps & ADB".
 2. Connect your phone.
 3. Run: adb shell
 4. If you see "~ #", you are root. Otherwise, run `su`
 5. (optional debugging step) Get the available routes using: `ip route show` (copy the output into this issue)
 6. Try to ping any address. For instance, example.com is at 192.0.43.10 (IPv4) and 2001:500:88:200::10 (IPv6). The commands (for give attempts) are: `ping -c 5 192.0.43.10` and `ping6 -c 5 2001:500:88:200::10` (ping6 is not available by default on CM).
 7. Now try again with `ping -c 5 example.com`

If step 6 yields results, but step 7 does not, then your ISP DNS server is not 
accessible from outside their network. I experienced this with Vodafone (NL).

Solution: change the DNS server:

 1. Open OpenVPN Settings
 2. Long-press the configuration profile, choose for "Preferences".
 3. At "VPN DNS Server", enter "8.8.8.8" (for Google DNS) or any other DNS server you want to use.
 4. Enable "Use VPN DNS Server".
 5. Re-connect by disabling and enabling the profile.

If you still do not have any connectivity, then your ISP may block OpenVPN.

You can monitor 3G traffic with: `adb shell 'su -c "tcpdump -i rmnet0 -n"'`

Substitute "rmnet0" as needed, you can use `ip link show` to get available 
interfaces.

Original comment by lekenst...@gmail.com on 7 Jul 2013 at 8:57

GoogleCodeExporter commented 9 years ago
Confirm this bug on Samsung SGS2, JB, TAP, UDP.
No internet traffic via "redirected-gateway" when connected via mobile network.
LAN on server side is ok, DNS is ok, even traceroute to the desired site is ok, 
but no traffic.

But everything is working fine when connected via Wi-Fi. 

Original comment by zel.a...@gmail.com on 6 Jan 2014 at 8:31

GoogleCodeExporter commented 9 years ago
P.S.
1. There's no problem with DNS as traceroute works and shows site name resolved.
2. There's no problem with blocking OpenVPN by ISP because I can access LAN on 
server side.

Original comment by zel.a...@gmail.com on 6 Jan 2014 at 8:42

GoogleCodeExporter commented 9 years ago
I had the same problem. Try DNS changer app to force 8.8.8.8 google dns on 3G. 
That solved my problem

Original comment by lamad...@gmail.com on 16 May 2014 at 4:05