ChaiBangkok / 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

What could be the cause of "Cannot read current default gateway from system" #125

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
OpenVPN seems to connect fine but packets are not routed over VPN. Route table 
shows:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.8.1.5        *               255.255.255.255 UH    0      0        0 tun0
10.8.1.1        10.8.1.5        255.255.255.255 UGH   0      0        0 tun0
192.168.1.0     10.8.1.5        255.255.255.0   UG    0      0        0 tun0
10.0.0.0        *               255.0.0.0       U     0      0        0 rmnet0
default         *               0.0.0.0         U     0      0        0 rmnet0

Here is the excerpt from the log:

Fri Mar  2 17:17:44 2012 ROUTE: default_gateway=UNDEF
Fri Mar  2 17:17:44 2012 TUN/TAP device tun0 opened
Fri Mar  2 17:17:44 2012 TUN/TAP TX queue length set to 100
Fri Mar  2 17:17:44 2012 MANAGEMENT: >STATE:1330726664,ASSIGN_IP,,10.8.1.6,
Fri Mar  2 17:17:44 2012 /system/xbin/ifconfig tun0 10.8.1.6 pointopoint 
10.8.1.5 mtu 1500
Fri Mar  2 17:17:44 2012 NOTE: unable to redirect default gateway -- Cannot 
read current default gateway from system
Fri Mar  2 17:17:44 2012 MANAGEMENT: >STATE:1330726664,ADD_ROUTES,,,

Phone is Optimus 3D running CM7.

Original issue reported on code.google.com by jac...@gmail.com on 2 Mar 2012 at 10:38