Jump to content
Not connected, Your IP: 18.233.111.242
Sign in to follow this  
static418

[SOLVED] Android doesn't use VPN connection

Recommended Posts

Hi,

I just signed up for AirVPN. I downloaded the OpenVPN settings app for Android, installed it, and copied the files where they're supposed to be. I can connect to the VPN server with no issues, but when I visit the AirVPN site on the phone, it says "Not connected" at the bottom and shows me my IP address. Speedtest.net does the same thing. Why isn't it routing traffic through the VPN connection? I have Wi-Fi turned off, only using the cell connection. I've tried restarting the phone and taking it in and out of airplane mode also.

Thanks!

Share this post


Link to post

static418 wrote:

Hi,

I just signed up for AirVPN. I downloaded the OpenVPN settings app for Android, installed it, and copied the files where they're supposed to be. I can connect to the VPN server with no issues, but when I visit the AirVPN site on the phone, it says "Not connected" at the bottom and shows me my IP address. Speedtest.net does the same thing. Why isn't it routing traffic through the VPN connection? I have Wi-Fi turned off, only using the cell connection. I've tried restarting the phone and taking it in and out of airplane mode also.

Thanks!

Hello!

Could you please publish the OpenVPN connection logs? They might be useful to understand where the problem is.

Kind regards

AirVPN admins

Share this post


Link to post

<code>Thu Nov 3 20:01:29 2011 OpenVPN 2.1.1 i686-pc-linux-gnu [sSL] [LZO2] [EPOLL] built on Feb 2 2010

Thu Nov 3 20:01:29 2011 MANAGEMENT: TCP Socket listening on 127.0.0.1:31454

Thu Nov 3 20:01:29 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables

Thu Nov 3 20:01:29 2011 WARNING: file 'user.key' is group or others accessible

Thu Nov 3 20:01:29 2011 LZO compression initialized

Thu Nov 3 20:01:29 2011 Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]

Thu Nov 3 20:01:29 2011 Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]

Thu Nov 3 20:01:29 2011 Local Options hash (VER=V4): '958c5492'

Thu Nov 3 20:01:29 2011 Expected Remote Options hash (VER=V4): '79ef4284'

Thu Nov 3 20:01:29 2011 Attempting to establish TCP connection with 69.163.36.66:80 [nonblock]

Thu Nov 3 20:01:30 2011 TCP connection established with 69.163.36.66:80

Thu Nov 3 20:01:30 2011 Socket Buffers: R=[131072->131072] S=[131072->131072]

Thu Nov 3 20:01:30 2011 TCPv4_CLIENT link local: [undef]

Thu Nov 3 20:01:30 2011 TCPv4_CLIENT link remote: 69.163.36.66:80

Thu Nov 3 20:01:30 2011 MANAGEMENT: Client connected from 127.0.0.1:31454

Thu Nov 3 20:01:30 2011 MANAGEMENT: CMD 'state'

Thu Nov 3 20:01:30 2011 MANAGEMENT: CMD 'state on'

Thu Nov 3 20:01:30 2011 MANAGEMENT: CMD 'bytecount 0'

Thu Nov 3 20:01:30 2011 MANAGEMENT: >STATE:1320364890,AUTH,,,

Thu Nov 3 20:01:30 2011 TLS: Initial packet from 69.163.36.66:80, sid=53fbecc8 29df83d1

Thu Nov 3 20:01:30 2011 MANAGEMENT: CMD 'bytecount 0'

Thu Nov 3 20:01:34 2011 VERIFY OK: depth=1, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=airvpn.org_CA/emailAddress=info@airvpn.org

Thu Nov 3 20:01:34 2011 VERIFY OK: nsCertType=SERVER

Thu Nov 3 20:01:34 2011 VERIFY OK: depth=0, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=server/emailAddress=info@airvpn.org

Thu Nov 3 20:01:43 2011 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key

Thu Nov 3 20:01:43 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Thu Nov 3 20:01:43 2011 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key

Thu Nov 3 20:01:43 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Thu Nov 3 20:01:43 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA

Thu Nov 3 20:01:43 2011 [server] Peer Connection Initiated with 69.163.36.66:80

Thu Nov 3 20:01:44 2011 MANAGEMENT: >STATE:1320364904,GET_CONFIG,,,

Thu Nov 3 20:01:44 2011 MANAGEMENT: CMD 'bytecount 0'

Thu Nov 3 20:01:46 2011 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)

Thu Nov 3 20:01:46 2011 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 10.7.0.1,comp-lzo no,route 10.7.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.7.0.62 10.7.0.61'

Thu Nov 3 20:01:46 2011 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:4: route (2.1.1)

Thu Nov 3 20:01:46 2011 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:8: ifconfig (2.1.1)

Thu Nov 3 20:01:46 2011 OPTIONS IMPORT: timers and/or timeouts modified

Thu Nov 3 20:01:46 2011 OPTIONS IMPORT: LZO parms modified

Thu Nov 3 20:01:46 2011 OPTIONS IMPORT: --ifconfig/up options modified

Thu Nov 3 20:01:46 2011 OPTIONS IMPORT: route options modified

Thu Nov 3 20:01:46 2011 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified

Thu Nov 3 20:01:46 2011 ROUTE default_gateway=66.xxx.xxx.xxx

Thu Nov 3 20:01:46 2011 TUN/TAP device tun0 opened

Thu Nov 3 20:01:46 2011 TUN/TAP TX queue length set to 100

Thu Nov 3 20:01:46 2011 NOTE: unable to redirect default gateway -- VPN gateway parameter (--route-gateway or --ifconfig) is missing

Thu Nov 3 20:01:46 2011 Initialization Sequence Completed

Thu Nov 3 20:01:46 2011 MANAGEMENT: >STATE:1320364906,CONNECTED,SUCCESS,,69.163.36.66

Thu Nov 3 20:01:46 2011 MANAGEMENT: CMD 'bytecount 3'

Thu Nov 3 20:02:31 2011 event_wait : Interrupted system call (code=4)

Thu Nov 3 20:02:31 2011 TCP/UDP: Closing socket

Thu Nov 3 20:02:31 2011 Closing TUN/TAP interface

Thu Nov 3 20:02:31 2011 SIGTERM[hard,] received, process exiting

Thu Nov 3 20:02:31 2011 MANAGEMENT: >STATE:1320364951,EXITING,SIGTERM,,

</code>

Share this post


Link to post

Hello!

From the logs it seems that OpenVPN is unable to invoke route and ifconfig:

Thu Nov 3 20:01:46 2011 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:4: route (2.1.1)

Thu Nov 3 20:01:46 2011 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:8: ifconfig (2.1.1)

The default_gateway route remains to a gateway (66.*.*.*) which is none of our servers and finally OpenVPN shuts the TUN and exits.

Apparently it is the following problem (a fix is suggested):

http://code.google.com/p/android-openvpn-settings/issues/detail?id=26

Let us know if the fix works for your phone.

Looking forward to hearing from you.

Kind regards

AirVPN admins

Share this post


Link to post

Wow that was an almighty pain. Thanks to admin for the link. The following worked for me:

1. Installing OpenVPN using the OpenVPN installer app from the market. Use /system/xbin and /system/xbin/bb as the options when installing.

2. Installing the OpenVPN settings app from the market

3. Opening Terminal on the phone and typing the following:

>su

> mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

> mkdir /system/xbin/bb

> ln -s /system/xbin/ifconfig /system/xbin/bb/ifconfig

> ln -s /system/xbin/route /system/xbin/bb/route

> mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system

Open the OpenVPN settings app and use "Fix DNS".

Another relevant thread is here:

http://code.google.com/p/android-openvpn-installer/issues/detail?id=2

Thanks for your help!

Share this post


Link to post

@static418

Excellent! Very glad to know that you could manage to solve the problem.

Your experience may be very useful to all Android users.

Kind regards

AirVPN admins

Share this post


Link to post

Wow that was an almighty pain. Thanks to admin for the link. The following worked for me:

1. Installing OpenVPN using the OpenVPN installer app from the market. Use /system/xbin and /system/xbin/bb as the options when installing.

2. Installing the OpenVPN settings app from the market

3. Opening Terminal on the phone and typing the following:

>su

> mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

> mkdir /system/xbin/bb

> ln -s /system/xbin/ifconfig /system/xbin/bb/ifconfig

> ln -s /system/xbin/route /system/xbin/bb/route

> mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system

Open the OpenVPN settings app and use "Fix DNS".

Another relevant thread is here:

http://code.google.com/p/android-openvpn-installer/issues/detail?id=2

Thanks for your help!

For me it doesn't work. I checked /system/xbin/bb/ifconfig,,,, /system/xbin/bb/route, but when I press FixDNS I get 8.8.8.8 (Google)

Sun Mar 11 19:36:19 2012 OpenVPN 2.1.1 i686-pc-linux-gnu [sSL] [LZO2] [EPOLL] built on Jan 6 2012

Sun Mar 11 19:36:19 2012 MANAGEMENT: TCP Socket listening on 127.0.0.1:25081

Sun Mar 11 19:36:19 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables

Sun Mar 11 19:36:19 2012 WARNING: file 'user.key' is group or others accessible

Sun Mar 11 19:36:19 2012 LZO compression initialized

Sun Mar 11 19:36:19 2012 Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]

Sun Mar 11 19:36:19 2012 Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]

Sun Mar 11 19:36:19 2012 Local Options hash (VER=V4): '958c5492'

Sun Mar 11 19:36:19 2012 Expected Remote Options hash (VER=V4): '79ef4284'

Sun Mar 11 19:36:19 2012 Attempting to establish TCP connection with 62.212.85.65:443 [nonblock]

Sun Mar 11 19:36:19 2012 MANAGEMENT: Client connected from 127.0.0.1:25081

Sun Mar 11 19:36:19 2012 MANAGEMENT: CMD 'state'

Sun Mar 11 19:36:19 2012 MANAGEMENT: CMD 'state on'

Sun Mar 11 19:36:19 2012 MANAGEMENT: CMD 'bytecount 0'

Sun Mar 11 19:36:20 2012 TCP connection established with 62.212.85.65:443

Sun Mar 11 19:36:20 2012 Socket Buffers: R=[87380->131072] S=[16384->131072]

Sun Mar 11 19:36:20 2012 TCPv4_CLIENT link local: [undef]

Sun Mar 11 19:36:20 2012 TCPv4_CLIENT link remote: 62.212.85.65:443

Sun Mar 11 19:36:20 2012 MANAGEMENT: >STATE:1331490980,WAIT,,,

Sun Mar 11 19:36:20 2012 MANAGEMENT: CMD 'bytecount 0'

Sun Mar 11 19:36:20 2012 MANAGEMENT: >STATE:1331490980,AUTH,,,

Sun Mar 11 19:36:20 2012 TLS: Initial packet from 62.212.85.65:443, sid=0ceeb065 4c3d9a65

Sun Mar 11 19:36:20 2012 MANAGEMENT: CMD 'bytecount 0'

Sun Mar 11 19:36:22 2012 VERIFY OK: depth=1, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=airvpn.org_CA/emailAddress=info@airvpn.org

Sun Mar 11 19:36:22 2012 VERIFY OK: nsCertType=SERVER

Sun Mar 11 19:36:22 2012 VERIFY OK: depth=0, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=server/emailAddress=info@airvpn.org

Sun Mar 11 19:36:25 2012 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key

Sun Mar 11 19:36:25 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Sun Mar 11 19:36:25 2012 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key

Sun Mar 11 19:36:25 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Sun Mar 11 19:36:25 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA

Sun Mar 11 19:36:25 2012 [server] Peer Connection Initiated with 62.212.85.65:443

Sun Mar 11 19:36:26 2012 MANAGEMENT: >STATE:1331490986,GET_CONFIG,,,

Sun Mar 11 19:36:26 2012 MANAGEMENT: CMD 'bytecount 0'

Sun Mar 11 19:36:27 2012 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)

Sun Mar 11 19:36:27 2012 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 10.5.0.1,comp-lzo no,route 10.5.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.5.0.38 10.5.0.37'

Sun Mar 11 19:36:27 2012 OPTIONS IMPORT: timers and/or timeouts modified

Sun Mar 11 19:36:27 2012 OPTIONS IMPORT: LZO parms modified

Sun Mar 11 19:36:27 2012 OPTIONS IMPORT: --ifconfig/up options modified

Sun Mar 11 19:36:27 2012 OPTIONS IMPORT: route options modified

Sun Mar 11 19:36:27 2012 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified

Sun Mar 11 19:36:27 2012 ROUTE default_gateway=192.168.2.1

Sun Mar 11 19:36:27 2012 TUN/TAP device tun0 opened

Sun Mar 11 19:36:27 2012 TUN/TAP TX queue length set to 100

Sun Mar 11 19:36:27 2012 MANAGEMENT: >STATE:1331490987,ASSIGN_IP,,10.5.0.38,

Sun Mar 11 19:36:27 2012 /system/xbin/ifconfig tun0 10.5.0.38 pointopoint 10.5.0.37 mtu 1500

Sun Mar 11 19:36:27 2012 /system/xbin/route add -net 62.212.85.65 netmask 255.255.255.255 gw 192.168.2.1

Sun Mar 11 19:36:27 2012 /system/xbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.5.0.37

Sun Mar 11 19:36:27 2012 /system/xbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.5.0.37

Sun Mar 11 19:36:27 2012 MANAGEMENT: >STATE:1331490987,ADD_ROUTES,,,

Sun Mar 11 19:36:27 2012 /system/xbin/route add -net 10.5.0.1 netmask 255.255.255.255 gw 10.5.0.37

Sun Mar 11 19:36:27 2012 Initialization Sequence Completed

Sun Mar 11 19:36:27 2012 MANAGEMENT: >STATE:1331490987,CONNECTED,SUCCESS,10.5.0.38,62.212.85.65

Sun Mar 11 19:36:27 2012 MANAGEMENT: CMD 'bytecount 0'

Sun Mar 11 19:36:27 2012 MANAGEMENT: CMD 'bytecount 0'

Sun Mar 11 19:36:28 2012 MANAGEMENT: CMD 'bytecount 3'

 

Any suggestions ? HTC Sensation XE original ROM

Share this post


Link to post

For me it doesn't work. I checked /system/xbin/bb/ifconfig,,,, /system/xbin/bb/route, but when I press FixDNS I get 8.8.8.8 (Google)

 

Hello!

The logs look just fine. After you have established the connection you should be visible from the Internet with the VPN server exit-IP, can you please check? The VPN DNS private IP address for clients connected to port 443 TCP is 10.5.0.1 (see here for all the others: https://airvpn.org/specs).

Kind regards

Share this post


Link to post

Thanks for quick reply. I still get IP from my provider while connected and its located to germany.

OpenVPN settings show Connected to 62.212.85.65 as 10.5.0.38

Share this post


Link to post

Thanks for quick reply. I still get IP from my provider while connected and its located to germany.

OpenVPN settings show Connected to 62.212.85.65 as 10.5.0.38

Hello!

Is your system able to ping 10.5.0.1?

Also, would you please publish your kernel IP routing table (delete your real IP for privacy) after the connection?

Kind regards

Share this post


Link to post

Ping dont work. routing table while connected : (mobile IP only for test)

$ export PATH=/data/local/bin:$PATH

$ su

# netstat

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 127.0.0.1:55555 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:12042 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:20817 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:23486 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:12042 127.0.0.1:42151 ESTABLISHED

tcp 0 0 10.148.220.133:34222 62.212.85.65:443 ESTABLISHED

tcp6 0 1 ::ffff:10.148.220.133:52010 ::ffff:174.35.64.14:80 CLOSE_WAIT

tcp6 0 0 ::ffff:127.0.0.1:42151 ::ffff:127.0.0.1:12042 ESTABLISHED

tcp6 0 0 ::ffff:10.148.220.133:41903 ::ffff:173.194.69.188:5228 ESTABLISHED

tcp6 0 0 ::ffff:10.148.220.133:55353 ::ffff:199.167.177.40:1227 ESTABLISHED

#

Share this post


Link to post

Ping dont work. routing table while connected : (mobile IP only for test)

$ export PATH=/data/local/bin:$PATH

$ su

# netstat

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 127.0.0.1:55555 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:12042 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:20817 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:23486 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:12042 127.0.0.1:42151 ESTABLISHED

tcp 0 0 10.148.220.133:34222 62.212.85.65:443 ESTABLISHED

tcp6 0 1 ::ffff:10.148.220.133:52010 ::ffff:174.35.64.14:80 CLOSE_WAIT

tcp6 0 0 ::ffff:127.0.0.1:42151 ::ffff:127.0.0.1:12042 ESTABLISHED

tcp6 0 0 ::ffff:10.148.220.133:41903 ::ffff:173.194.69.188:5228 ESTABLISHED

tcp6 0 0 ::ffff:10.148.220.133:55353 ::ffff:199.167.177.40:1227 ESTABLISHED

#

Hello!

Good, netstat without parameters just confirms what we already knew from the OpenVPN logs. Can you please send us the kernel IP routing table after the connection?

netstat -nr

Kind regards

Share this post


Link to post

$ export PATH=/data/local/bin:$PATH

$ su

# netstat -nr

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 127.0.0.1:55555 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:20817 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:58398 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:23486 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:58398 127.0.0.1:55286 ESTABLISHED

tcp 0 0 10.148.167.60:46561 62.212.85.65:443 ESTABLISHED

tcp6 0 0 ::ffff:127.0.0.1:55286 ::ffff:127.0.0.1:58398 ESTABLISHED

tcp6 0 274 ::ffff:10.148.167.60:51714 ::ffff:173.194.65.104:443 CLOSE_WAIT

tcp6 0 6 ::ffff:10.148.167.60:50737 ::ffff:216.74.41.14:80 CLOSE_WAIT

tcp6 0 0 ::ffff:10.148.167.60:51057 ::ffff:199.167.177.43:1227 ESTABLISHED

tcp6 0 6 ::ffff:10.148.167.60:55392 ::ffff:216.74.41.14:80 CLOSE_WAIT

tcp6 0 274 ::ffff:10.148.167.60:46032 ::ffff:173.194.65.147:443 CLOSE_WAIT

tcp6 0 0 ::ffff:10.148.167.60:39541 ::ffff:173.194.70.188:5228 ESTABLISHED

# ping 10.5.0.1

PING 10.5.0.1 (10.5.0.1) 56(84) bytes of data.

Share this post


Link to post

$ export PATH=/data/local/bin:$PATH

$ su

# netstat -nr

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 127.0.0.1:55555 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:20817 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:58398 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:23486 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:58398 127.0.0.1:55286 ESTABLISHED

tcp 0 0 10.148.167.60:46561 62.212.85.65:443 ESTABLISHED

tcp6 0 0 ::ffff:127.0.0.1:55286 ::ffff:127.0.0.1:58398 ESTABLISHED

tcp6 0 274 ::ffff:10.148.167.60:51714 ::ffff:173.194.65.104:443 CLOSE_WAIT

tcp6 0 6 ::ffff:10.148.167.60:50737 ::ffff:216.74.41.14:80 CLOSE_WAIT

tcp6 0 0 ::ffff:10.148.167.60:51057 ::ffff:199.167.177.43:1227 ESTABLISHED

tcp6 0 6 ::ffff:10.148.167.60:55392 ::ffff:216.74.41.14:80 CLOSE_WAIT

tcp6 0 274 ::ffff:10.148.167.60:46032 ::ffff:173.194.65.147:443 CLOSE_WAIT

tcp6 0 0 ::ffff:10.148.167.60:39541 ::ffff:173.194.70.188:5228 ESTABLISHED

# ping 10.5.0.1

PING 10.5.0.1 (10.5.0.1) 56(84) bytes of data.

Hello!

This netstat does not comply, the output is not the kernel IP routing table. Try then with

route -n
or
netstat -r

Kind regards

Kind regards

Share this post


Link to post

Maybe b/c I use Terminal "Emulator" from my phone ? Terminal dont know about "route"

$ export PATH=/data/local/bin:$PATH

$ su

# route -n

Invalid argument

# netstat -r

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 127.0.0.1:55555 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:20817 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25435 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:23486 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25435 127.0.0.1:33299 ESTABLISHED

tcp 71 0 10.135.192.215:54792 62.212.85.65:443 ESTABLISHED

tcp6 0 6 ::ffff:10.135.192.215:57048 ::ffff:216.74.41.14:80 CLOSE_WAIT

tcp6 0 0 ::ffff:10.135.192.215:37967 ::ffff:199.167.177.36:1227 ESTABLISHED

tcp6 0 0 ::ffff:10.135.192.215:55404 ::ffff:173.194.70.188:5228 ESTABLISHED

tcp6 0 0 ::ffff:127.0.0.1:33299 ::ffff:127.0.0.1:25435 ESTABLISHED

# route -r

Invalid argument

# route

Invalid argument

My ext-IP for test is always like 2.212.*.*

Share this post


Link to post

# cat /proc/net/route

Iface Destination Gateway Flags RefCnt UseMetric Mask MTU Window IRTT

rmnet0 B526910A 00000000 0005 0 0 FFFFFFFF 0 0 0

rmnet0 B426910A 00000000 0001 0 0 FCFFFFFF 0 0 0

rmnet0 00000000 B526910A 0003 0 0 00000000 0 0 0

# cat /proc/net/route

Iface Destination Gateway Flags RefCnt UseMetric Mask MTU Window IRTT

rmnet0 4155D43E B526910A 0007 0 0 FFFFFFFF 0 0 0

rmnet0 B526910A 00000000 0005 0 0 FFFFFFFF 0 0 0

tun0 2500050A 00000000 0005 0 0 FFFFFFFF 0 0 0

tun0 0100050A 2500050A 0007 0 0 FFFFFFFF 0 0 0

rmnet0 B426910A 00000000 0001 0 0 FCFFFFFF 0 0 0

tun0 00000000 2500050A 0003 0 0 00000080 0 0 0

tun0 00000080 2500050A 0003 0 0 00000080 0 0 0

rmnet0 00000000 B526910A 0003 0 0 00000000 0 0 0

# ip route show

62.212.85.65 via 10.145.38.181 dev rmnet0

10.145.38.181 dev rmnet0 scope link

10.5.0.37 dev tun0 proto kernel scope link src 10.5.0.38

10.5.0.1 via 10.5.0.37 dev tun0

10.145.38.180/30 dev rmnet0 proto kernel scope link src 10.145.38.182

0.0.0.0/1 via 10.5.0.37 dev tun0

128.0.0.0/1 via 10.5.0.37 dev tun0

default via 10.145.38.181 dev rmnet0

Hope this is right LOG now.

Share this post


Link to post

Hello!

Yes, that's exactly what we asked for, thank you.

It looks like a very similar problem met on HTC Desire. Can you please read this:

http://forum.xda-developers.com/showthread.php?t=771857

and try the suggested fix?

We're looking forward to hearing from you.

Kind regards

JUHUUUUUUU ! Thats it !

After connect and type :

#su

#ip ru del table wifi

its working. I get the ext-IP from you.

Just need to configure that scirpt to automate this process.

Thanks thousand times for this Link. You are really smartest Admin I know

I'll do the rest

------------------------------------------------------------------------------------------------------

EDIT:

My solution:

I added one line with parameter "route 10.5.0.1 255.255.255.255" in config file :

client

dev tun

proto tcp

remote 62.212.85.65 443

resolv-retry infinite

nobind

persist-key

persist-tun

ca "ca.crt"

cert "user.crt"

key "user.key"

ns-cert-type server

cipher AES-256-CBC

comp-lzo

route 10.5.0.1 255.255.255.255

verb 3

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...