Problems on Galaxy nexus

151 views
Skip to first unread message

Roberto Viti

unread,
Nov 20, 2012, 10:40:25 AM11/20/12
to android-open...@googlegroups.com
Hi everybody.

I got some problems while running OpenVPN Setting on my Galaxy Nexus.

I'm trying to connect my Nexus to the network at work, where we have an openvpn server running; when I try to run openvpn-settings the program quit with this error:

"Linux ifconfig failed: external program fork failed".

I've tried to find in the logcat output when the program stops, and it seems to be something around the ifconfig execution. If I try to run it from shell i got this output

"ifconfig: tun0: error fetching interface information: Device not found"
or a more clueless note:
"ifconfig: SIOCSIFADDR: No such device"

My goal should be start to work with tap interface, but i'm not even able to get a  connection with the tun... 
I even have checked out if my kernel got the CONFIG_TUN option setted, like it is. I don't know where to look anymore...

here comes my logcat with some mods for privacy reason...
------------------------------------------
I/ActivityManager(  190): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=de.schaeuffelhut.android.openvpn/.OpenVpnSettings} from pid 411
D/PermissionCache(  118): checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (335 us)
D/dalvikvm(  190): GC_FOR_ALLOC freed 639K, 8% free 18168K/19591K, paused 73ms
I/dalvikvm-heap(  190): Grow heap (frag case) to 18.054MB for 230416-byte allocation
D/dalvikvm(  190): GC_FOR_ALLOC freed 1267K, 14% free 17126K/19847K, paused 46ms
I/ActivityManager(  190): Start proc de.schaeuffelhut.android.openvpn for activity de.schaeuffelhut.android.openvpn/.OpenVpnSettings: pid=1207 uid=10078 gids={1015, 3003}
I/dalvikvm( 1207): Turning on JNI app bug workarounds for target SDK version 4...
D/dalvikvm(  119): GC_EXPLICIT freed 38K, 3% free 12596K/12931K, paused 1ms+3ms
D/OpenGLRenderer(  411): Flushing caches (mode 1)
D/dalvikvm(  119): GC_EXPLICIT freed <1K, 3% free 12596K/12931K, paused 6ms+2ms
D/dalvikvm(  119): GC_EXPLICIT freed <1K, 3% free 12596K/12931K, paused 2ms+2ms
D/OpenVPN-Settings( 1207): onCreate()
I/BugSenseHandler( 1207): Registering default exceptions handler
D/BugSenseHandler( 1207): Looking for exceptions in: /data/data/de.schaeuffelhut.android.openvpn/files
D/BugSenseHandler( 1207): Found 0 stacktrace(s)
D/OpenVPN-Settings( 1207): onResume()
D/OpenVPN-Settings( 1207): invoking external process: /system/bin/su
D/OpenGLRenderer(  411): Flushing caches (mode 0)
I/OpenVPN-ControlShell( 1207): starting
D/OpenVPN-ControlShell( 1207): mConfigDir=/sdcard/openvpn
D/OpenVPN-ControlShell( 1207): mComDir=/data/data/de.schaeuffelhut.android.openvpn/files/com.d
D/OpenVPN-ControlShell( 1207): trying to attach to already running daemons
V/OpenVPN-ControlShell( 1207): /sdcard/openvpn/Nexus.ovpn: trying to attach
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus.ovpn]-mgmt( 1207): attach(): using management port at -1
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus.ovpn]-mgmt( 1207): attach(): unspecified management port, not attaching
V/OpenVPN-ControlShell( 1207): /sdcard/openvpn/Nexus.ovpn: not attached
V/OpenVPN-ControlShell( 1207): /sdcard/openvpn/Nexus.ovpn: daemon is disabled in settings, not starting
V/OpenVPN-ControlShell( 1207): /sdcard/openvpn/Nexus2.ovpn: trying to attach
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): attach(): using management port at 22251
E/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): attaching to OpenVPN daemon: failed to connect to /127.0.0.1 (port 22251): connect failed: ECONNREFUSED (Connection refused)
V/OpenVPN-ControlShell( 1207): /sdcard/openvpn/Nexus2.ovpn: not attached
V/OpenVPN-ControlShell( 1207): /sdcard/openvpn/Nexus2.ovpn: daemon is enabled in settings, starting
D/OpenVPN-Settings( 1207): invoking command line: id
W/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]( 1207): start(): choosing random port for management interface: 44492
D/su      ( 1222): Found file /data/data/com.noshufou.android.su/files/stored/10078-0
D/su      ( 1222): Comparing '/system/bin/sh' to '/system/bin/sh'
D/su      ( 1222): 10078 de.schaeuffelhut.android.openvpn executing 0 /system/bin/sh using shell /system/bin/sh : sh
D/su      ( 1226): Executing exec /system/bin/am broadcast -a com.noshufou.android.su.RESULT --es socket '' --ei caller_uid 10078 --ei allow 1 --ei version_code 18
D/OpenVPN-Settings-stdout( 1207): uid=0(root) gid=0(root)
I/OpenVPN-Settings-stderr( 1207): terminated
I/OpenVPN-Settings-stdout( 1207): terminated
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon( 1207): invoking external process: /system/bin/su
D/su      ( 1229): Found file /data/data/com.noshufou.android.su/files/stored/10078-0
D/su      ( 1229): Comparing '/system/bin/sh' to '/system/bin/sh'
D/su      ( 1229): 10078 de.schaeuffelhut.android.openvpn executing 0 /system/bin/sh using shell /system/bin/sh : sh
D/su      ( 1231): Executing exec /system/bin/am broadcast -a com.noshufou.android.su.RESULT --es socket '' --ei caller_uid 10078 --ei allow 1 --ei version_code 18
D/dalvikvm( 1207): GC_CONCURRENT freed 285K, 4% free 12767K/13191K, paused 10ms+1ms
D/AndroidRuntime( 1231): 
D/AndroidRuntime( 1231): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1231): CheckJNI is OFF
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon( 1207): invoking command line: /system/xbin/openvpn --cd '/sdcard/openvpn' --config 'Nexus2.ovpn' --writepid '/data/data/de.schaeuffelhut.android.openvpn/files/com.d/_sdcard_openvpn_Nexus2.ovpn-pid' --script-security 1 --management 127.0.0.1 44492 --management-query-passwords --verb 3
I/AdMobSDK( 1207): AdMob SDK version is 20100820-ANDROID-3312276cc1406347
I/AdMobSDK( 1207): To get test ads on this device use AdManager.setTestDevices( new String[] { "8294544A8D5182F511ACDC4C26C18C88" } )
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:16 2012 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jan  6 2012
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:16 2012 MANAGEMENT: TCP Socket listening on 127.0.0.1:44492
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:16 2012 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:16 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:16 2012 WARNING: file 'Nexus.key' is group or others accessible
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:16 2012 LZO compression initialized
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:16 2012 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): started
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): attach(): using management port at 44492
V/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): Successfully attached to OpenVPN monitor port
V/PhoneStatusBar(  262): setLightsOn(true)
V/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): Socket IO established
I/AdMobSDK( 1207): Publisher ID set to a14ca19e3c65018
D/OpenVPNDaemonEnabler( 1207): Received OpenVPN daemon state changed from Unknown to Startup
D/OpenVPN-Settings( 1207): Connected to OpenVpnService
I/OpenVPN-ControlShell( 1207): /sdcard/openvpn/Nexus.ovpn is not running
D/OpenVPNDaemonEnabler( 1207): Received OpenVPN daemon state changed from Unknown to Enabled
D/OpenVPNDaemonEnabler( 1207): Received OpenVPN network state changed from Unknown to Connecting
W/InputManagerService(  190): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41b56fc8 (uid=10029 pid=411)
D/AndroidRuntime( 1226): 
D/AndroidRuntime( 1226): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1226): CheckJNI is OFF
W/AdMobSDK( 1207): Ignoring requestFreshAd() because we are requesting an ad right now already.
I/ActivityManager(  190): Displayed de.schaeuffelhut.android.openvpn/.OpenVpnSettings: +646ms
D/AndroidRuntime( 1231): Calling main entry com.android.commands.am.Am
D/dalvikvm( 1255): Late-enabling CheckJNI
I/ActivityManager(  190): Start proc com.noshufou.android.su for broadcast com.noshufou.android.su/.SuResultReceiver: pid=1255 uid=10058 gids={3003, 1015}
I/dalvikvm( 1255): Turning on JNI app bug workarounds for target SDK version 11...
D/dalvikvm( 1207): GC_CONCURRENT freed 164K, 3% free 13010K/13319K, paused 2ms+3ms
I/ActivityThread( 1255): Pub com.noshufou.android.su.provider: com.noshufou.android.su.provider.PermissionsProvider
D/AndroidRuntime( 1231): Shutting down VM
D/dalvikvm( 1231): GC_CONCURRENT freed 98K, 89% free 485K/4096K, paused 0ms+1ms
I/AndroidRuntime( 1231): NOTE: attach of thread 'Binder Thread #3' failed
D/AndroidRuntime( 1226): Calling main entry com.android.commands.am.Am
D/AndroidRuntime( 1226): Shutting down VM
D/dalvikvm( 1226): GC_CONCURRENT freed 99K, 89% free 485K/4096K, paused 1ms+1ms
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 Local Options hash (VER=V4): '41690919'
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 Expected Remote Options hash (VER=V4): '530fdded'
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 Socket Buffers: R=[112640->131072] S=[112640->131072]
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 UDPv4 link local: [undef]
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 UDPv4 link remote: MY.IP.V.4:1194
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): >INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 MANAGEMENT: Client connected from 127.0.0.1:44492
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 MANAGEMENT: CMD 'state'
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 MANAGEMENT: CMD 'state on'
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 MANAGEMENT: CMD 'state'
V/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): onState("1353424218,WAIT,,,")
D/OpenVPN-Settings-getprop( 1207): invoking external process: /system/bin/sh
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 MANAGEMENT: CMD 'bytecount 0'
D/OpenVPN-Settings-getprop( 1207): invoking command line: getprop net.dnschange
D/OpenVPN-Settings-getprop-stdout( 1207): 1
I/OpenVPN-Settings-getprop-stdout( 1207): terminated
I/OpenVPN-Settings-getprop-stderr( 1207): terminated
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): =============> 0 == 1 resetting dns, leaving dns alone
D/OpenVPNDaemonEnabler( 1207): Received OpenVPN network state changed from Connecting to Wait
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): SUCCESS: real-time state notification set to ON
V/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): onState("1353424218,WAIT,,,")
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 MANAGEMENT: CMD 'bytecount 0'
D/OpenVPN-Settings-getprop( 1207): invoking external process: /system/bin/sh
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 MANAGEMENT: >STATE:1353424218,AUTH,,,
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 TLS: Initial packet from MY.IP.V.4:1194, sid=130fa66b 65c29301
D/OpenVPN-Settings-getprop( 1207): invoking command line: getprop net.dnschange
D/OpenVPN-Settings-getprop-stdout( 1207): 1
I/OpenVPN-Settings-getprop-stderr( 1207): terminated
I/OpenVPN-Settings-getprop-stdout( 1207): terminated
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): =============> 0 == 1 resetting dns, leaving dns alone
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): SUCCESS: bytecount interval changed
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): SUCCESS: bytecount interval changed
V/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): onState(">STATE:1353424218,AUTH,,,")
D/OpenVPN-Settings-getprop( 1207): invoking external process: /system/bin/sh
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:18 2012 MANAGEMENT: CMD 'bytecount 0'
D/OpenVPNDaemonEnabler( 1207): Received OpenVPN network state changed from Wait to Wait
D/OpenVPN-Settings-getprop( 1207): invoking command line: getprop net.dnschange
D/OpenVPN-Settings-getprop-stdout( 1207): 1
I/OpenVPN-Settings-getprop-stdout( 1207): terminated
I/OpenVPN-Settings-getprop-stderr( 1207): terminated
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): =============> 0 == 1 resetting dns, leaving dns alone
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): SUCCESS: bytecount interval changed
D/OpenVPNDaemonEnabler( 1207): Received OpenVPN network state changed from Wait to Auth
D/dalvikvm( 1207): GC_CONCURRENT freed 424K, 4% free 13041K/13575K, paused 4ms+3ms
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:19 2012 VERIFY OK: depth=1, /C=IT-PRIVATE-LAB-DATAS
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:19 2012 VERIFY OK: depth=0, /C=IT-PRIVATE-LAB-DATAS
D/dalvikvm( 1207): GC_FOR_ALLOC freed 147K, 5% free 12999K/13575K, paused 28ms
I/dalvikvm-heap( 1207): Grow heap (frag case) to 13.004MB for 234064-byte allocation
D/dalvikvm( 1207): GC_FOR_ALLOC freed <1K, 5% free 13227K/13831K, paused 17ms
D/dalvikvm( 1207): GC_FOR_ALLOC freed 2K, 5% free 13233K/13831K, paused 11ms
I/dalvikvm-heap( 1207): Grow heap (frag case) to 13.232MB for 234064-byte allocation
D/dalvikvm( 1207): GC_FOR_ALLOC freed <1K, 5% free 13461K/14087K, paused 11ms
D/dalvikvm( 1207): GC_FOR_ALLOC freed 5K, 5% free 13473K/14087K, paused 14ms
I/dalvikvm-heap( 1207): Grow heap (frag case) to 13.467MB for 234064-byte allocation
D/dalvikvm( 1207): GC_FOR_ALLOC freed <1K, 5% free 13702K/14343K, paused 14ms
I/AdMobSDK( 1207): Ad returned (3588 ms):  
D/dalvikvm( 1207): GC_FOR_ALLOC freed 97K, 5% free 13758K/14343K, paused 14ms
I/dalvikvm-heap( 1207): Grow heap (frag case) to 13.756MB for 245776-byte allocation
D/dalvikvm( 1207): GC_FOR_ALLOC freed 20K, 5% free 13977K/14599K, paused 12ms
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:20 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:20 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:20 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:20 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:20 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:20 2012 [my.uri.it] Peer Connection Initiated with MY.IP.V.4:1194
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:21 2012 MANAGEMENT: >STATE:1353424221,GET_CONFIG,,,
V/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): onState(">STATE:1353424221,GET_CONFIG,,,")
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:21 2012 MANAGEMENT: CMD 'bytecount 0'
D/OpenVPN-Settings-getprop( 1207): invoking external process: /system/bin/sh
D/OpenVPN-Settings-getprop( 1207): invoking command line: getprop net.dnschange
D/OpenVPN-Settings-getprop-stdout( 1207): 1
I/OpenVPN-Settings-getprop-stdout( 1207): terminated
I/OpenVPN-Settings-getprop-stderr( 1207): terminated
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): =============> 0 == 1 resetting dns, leaving dns alone
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): SUCCESS: bytecount interval changed
D/OpenVPNDaemonEnabler( 1207): Received OpenVPN network state changed from Auth to Get Config
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 SENT CONTROL [my.uri.it]: 'PUSH_REQUEST' (status=1)
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 PUSH: Received control message: 'PUSH_REPLY,route 192.168.11.0 255.255.255.0,dhcp-option DNS 10.8.0.1,dhcp-option WINS 192.168.11.2,route 10.8.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.74 10.8.0.73'
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 OPTIONS IMPORT: timers and/or timeouts modified
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 OPTIONS IMPORT: --ifconfig/up options modified
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 OPTIONS IMPORT: route options modified
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 ROUTE default_gateway=2.195.95.1
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 TUN/TAP device tun0 opened
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 TUN/TAP TX queue length set to 100
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 MANAGEMENT: >STATE:1353424223,ASSIGN_IP,,10.8.0.74,
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 /system/xbin/bb/ifconfig tun0 10.8.0.74 pointopoint 10.8.0.73 mtu 1500
V/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): onState(">STATE:1353424223,ASSIGN_IP,,10.8.0.74,")
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 MANAGEMENT: Client disconnected
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 Linux ifconfig failed: external program fork failed
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): Tue Nov 20 16:10:23 2012 Exiting
D/OpenVPN-Settings-getprop( 1207): invoking external process: /system/bin/sh
W/Netd    (  115): No subsystem found in netlink event
D/NetlinkEvent(  115): Unexpected netlink message. type=0x11
D/OpenVPN-Settings-getprop( 1207): invoking command line: getprop net.dnschange
D/OpenVPN-Settings-getprop-stdout( 1207): 1
I/OpenVPN-Settings-getprop-stderr( 1207): terminated
I/OpenVPN-Settings-getprop-stdout( 1207): terminated
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): =============> 0 == 1 resetting dns, leaving dns alone
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): >FATAL:Linux ifconfig failed: external program fork failed
I/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stdout( 1207): terminated
I/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-daemon-stderr( 1207): terminated
D/OpenVPN-DaemonMonitor[/sdcard/openvpn/Nexus2.ovpn]-mgmt( 1207): terminated
D/OpenVPn Settings( 1207): Closing log file /sdcard/openvpn/Nexus2.log
D/OpenVPNDaemonEnabler( 1207): Received OpenVPN network state changed from Get Config to Assign IP
D/OpenVPNDaemonEnabler( 1207): Received OpenVPN daemon state changed from Unknown to Disabled

Friedrich Schäuffelhut

unread,
Nov 20, 2012, 10:45:06 AM11/20/12
to android-open...@googlegroups.com
Hi,

Please make sure /system/xbin/bb/ifconfig is a link to busybox on your
device.

Best Regards
Friedrich
--
_
M.Sc.(TUM) Friedrich Schäuffelhut | |_ _ _
e-mail: fr...@desert.lnp.org | | '\| '_\ LNP is a
|_|_|_| '_/ Network Project
|_|

signature.asc

Roberto Viti

unread,
Nov 21, 2012, 4:33:11 AM11/21/12
to android-open...@googlegroups.com
Hi Friedrich,

I've checked out what version of ifconfig is pointed by /system/xbin/bb/ifconfig
shell@android:/ $ ls -l /system/xbin/bb/ifconfig
lrwxrwxrwx root     root              2012-11-15 16:33 ifconfig -> /system/xbin/ifconfig
shell@android:/ $ ls -l /system/xbin/ifconfig
lrwxrwxrwx root     root              2012-11-14 14:49 ifconfig -> /system/xbin/busybox

maybe he's not able to follow a double link. I've modified the link in this way and tried again
shell@android:/ # rm /system/xbin/bb/ifconfig                                  
shell@android:/ # ln -s /system/xbin/busibox /system/xbin/bb/ifconfig

And the result is... the same as before :( "Linux ifconfig failed: external program fork failed"

May depend on the version of busybox installed?
This is my version: http://goo.gl/lG7V1

Thank you for your patience!

R.

Roberto Viti

unread,
Nov 21, 2012, 6:50:46 PM11/21/12
to android-open...@googlegroups.com
UPDATE:
Hi everybody. 
For what i understand, openvpn can bring up a tun0, but fail to set up an ip.
I checked if ifconfig executed is the one of busybox (and it is), i even reinstalled openvpn several time but I'm still not able to execute it.
So i made a script to understand what happen during the execution.

#!/bin/bash
while true; do
  if /system/xbin/busybox ifconfig tun0 &> /dev/null; then
    # Found Tun interface           
    echo ""                           
    /system/xbin/busybox ifconfig tun0   
    # trying to set ip like openvpn                                                 
    /system/xbin/busybox ifconfig tun0 10.8.0.74 pointopoint 10.8.0.73 mtu 1500 2>&1
    /system/xbin/busybox ifconfig tun0
    echo "exiting..."
    exit 0
  else         
    echo -n "."
  fi
done

Unfortunatly this script is too slow to complete the execution between the bring up of tun0 and the crash of openvpn, but if you trust me this is the "combined" output obtained by executing this script several time and by commenting one "ifconfig" at time.

......
tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          POINTOPOINT NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:10.8.0.74  P-t-P:10.8.0.73  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
exiting...

So, for what i can understand, ifconfig is working. Any hints?

R.

Roberto Viti

unread,
Nov 23, 2012, 11:25:35 AM11/23/12
to android-open...@googlegroups.com
Problem (magically) solved!

I flashed a clean stock rom taked from Google, reinstalled Busybox and OpenVpn and then everything starts to work.
Maybe i do some mistaskes during the steps in the past ROM...

Btw, thanks for your help!

R.

Friedrich Schäuffelhut

unread,
Nov 23, 2012, 12:21:29 PM11/23/12
to android-open...@googlegroups.com
Good to hear it works for you now.

Regards
Friedrich
signature.asc

Cristiano Nuzzo

unread,
Feb 16, 2013, 2:24:47 PM2/16/13
to android-open...@googlegroups.com
Did you find a way to use tap dev with android?

Roberto Viti

unread,
Feb 16, 2013, 7:38:33 PM2/16/13
to android-open...@googlegroups.com

Yes
To replicate my test you'll need just a rooted phone, a correct openvpn.conf and a working openvpn binary.
I've tried it only from an adb shell or by calling it from a self made app, but it works...

R.

--
You received this message because you are subscribed to the Google Groups "OpenVPN™ Settings (for Android™ Devices)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-openvpn-se...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages