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

Galaxy Nexus: Linux ifconfig failed: could not execute external program #147

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use adb or SSHDroid to do the following
2. openvpn --config /sdcard/openvpn/vpnconf.ovpn
3.

What is the expected output? What do you see instead?

 Expect to connect and instead I get:
 Sun Sep 30 14:12:54 2012 us=711058 TUN/TAP device tun0 opened
 Sun Sep 30 14:12:54 2012 us=711485 TUN/TAP TX queue length set to 100
 Sun Sep 30 14:12:54 2012 us=711943 /system/xbin/busybox ifconfig tun0 10.8.0.10 pointopoint 10.8.0.9 mtu 1500
 Sun Sep 30 14:12:54 2012 us=717375 Linux ifconfig failed: could not execute external program
 Sun Sep 30 14:12:54 2012 us=717986 Exiting

What version of the product are you using?

 OpenVPN Settings 0.4.12

Which Android phone are you using?

 Galaxy Nexus (GSM) - 4.1.1 - Build JRO03C

Which firmware version are you using?

 3.031-g6fb96c9android-build@vpbs1 

Please provide any additional information below.

Original issue reported on code.google.com by magus...@gmail.com on 30 Sep 2012 at 6:28

GoogleCodeExporter commented 8 years ago

I really need to have OpenVPN so here is the workaround I came up.
-=====-
NOTE: No variation of this procedure that was attempted using "su" will work.
I suspect it is su that is causing my issue but I haven't got around to testing 
that yet.
-=====-

1. Install "SSHDroid"
2. Install "Terminal Emulator"
3. Start SSHDroid
4. Launch Terminal
5. Type the following:
ssh root@localhost "cd /sdcard/openvpn ; /system/xbin/openvpn vpnconf.ovpn"

The result is a successful connection:

d Oct 24 07:51:06 2012 us=914679 /system/xbin/busybox ifconfig tun0 10.8.0.6 
pointopoint 10.8.0.5 mtu 1500
Wed Oct 24 07:51:06 2012 us=940558 /system/xbin/busybox route add -net 
71.238.18.110 netmask 255.255.255.255 gw 192.168.1.1
Wed Oct 24 07:51:06 2012 us=948706 /system/xbin/busybox route add -net 0.0.0.0 
netmask 128.0.0.0 gw 10.8.0.5
Wed Oct 24 07:51:06 2012 us=952826 /system/xbin/busybox route add -net 
128.0.0.0 netmask 128.0.0.0 gw 10.8.0.5
Wed Oct 24 07:51:06 2012 us=958197 /system/xbin/busybox route add -net 10.8.0.1 
netmask 255.255.255.255 gw 10.8.0.5
Wed Oct 24 07:51:06 2012 us=961462 Initialization Sequence Completed

Original comment by magus...@gmail.com on 24 Oct 2012 at 11:53

GoogleCodeExporter commented 8 years ago
I upgraded my installation of Superuser(su) to the latest version from the 
developer website. I now have to open a new ticket for Superuser because it 
"forgets" that su has been granted. 
This reported problem is corrected by the update of Superuser(su) to launch 
OpenVPN. 
Please close this submission as corrected by using latest version of 
Superuser(su).

Original comment by magus...@gmail.com on 24 Oct 2012 at 11:52