[HTC EVO 3D] GbMax78:
Samsung Galaxy S2 - Lightning rom 6.1 - OpenVPN - BusyBox

On my mobile device (Samsung Galaxy S2+Ligthting rom 6.1 - Gingerbread 2.3.4) I can start OpenVPN and I have ip (10.8.0.10) from remote/home server (Debian Squeeze) but I can't connect on my remote/home lan devices (router, pc, etc.); I used tun.zip

The same OpenVPN files work well on Windows and Linux, I can connect all lan hardware !

root@Port-X125:/home/gabriele# ssh XXX.XXX.XXX.XXX

The authenticity of host 'XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX)' can't be established.

RSA key fingerprint is XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'XXX.XXX.XXX.XXX' (RSA) to the list of known hosts.

QuickSSHD for Android

root@XXX.XXX.XXX.XXX's password:

# mount -o remount,rw /dev/block/mmcblk0p22 /system

# cd /system/lib/modules

cd: can't cd to /system/lib/modules

# mkdir modules

# ln -s . `uname -r`

# cp /sdcard/tun.ko /system/lib/modules/

# mkdir /system/xbin/bb

# ln -s /system/bin/ifconfig /system/xbin/bb/ifconfig

# /system/xbin/openvpn --config /sdcard/openvpn/client.ovpn

Sat Dec 31 15:08:54 2011 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Feb 2 2010

Sat Dec 31 15:08:54 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables

Sat Dec 31 15:08:54 2011 WARNING: file '/sdcard/openvpn/keyone.key' is group or others accessible

Sat Dec 31 15:08:54 2011 LZO compression initialized

Sat Dec 31 15:08:54 2011 Control Channel MTU parms

Sat Dec 31 15:08:54 2011 Data Channel MTU parms

Sat Dec 31 15:08:54 2011 Local Options hash (VER=V4):

Sat Dec 31 15:08:54 2011 Expected Remote Options hash (VER=V4):

Sat Dec 31 15:08:54 2011 Socket Buffers: R=[110592->131072] S=[110592->131072]

Sat Dec 31 15:08:54 2011 UDPv4 link local: [undef]

Sat Dec 31 15:08:54 2011 UDPv4 link remote:

Sat Dec 31 15:08:54 2011 TLS: Initial packet from

Sat Dec 31 15:08:56 2011 VERIFY OK: depth=1, /C=IT/ST=

Sat Dec 31 15:08:56 2011 VERIFY OK: nsCertType=SERVER

Sat Dec 31 15:08:56 2011 VERIFY OK: depth=0, /C=IT/ST=

Sat Dec 31 15:08:58 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key

Sat Dec 31 15:08:58 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Sat Dec 31 15:08:58 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key

Sat Dec 31 15:08:58 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Sat Dec 31 15:08:58 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 , 1024 bit RSA

Sat Dec 31 15:08:58 2011 [server01] Peer Connection Initiated with

Sat Dec 31 15:09:00 2011 SENT CONTROL [server01]: 'PUSH_REQUEST' (status=1)

Sat Dec 31 15:09:00 2011 PUSH: Received control message: 'PUSH_REPLY,route 192.168.1.0 255.255.255.0,dhcp-option DNS 10.8.0.1,route 10.8.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.10 10.8.0.9'

Sat Dec 31 15:09:00 2011 OPTIONS IMPORT: timers and/or timeouts modified

Sat Dec 31 15:09:00 2011 OPTIONS IMPORT: --ifconfig/up options modified

Sat Dec 31 15:09:00 2011 OPTIONS IMPORT: route options modified

Sat Dec 31 15:09:00 2011 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified

Sat Dec 31 15:09:00 2011 ROUTE default_gateway=

Sat Dec 31 15:09:00 2011 TUN/TAP device tun1 opened

Sat Dec 31 15:09:00 2011 TUN/TAP TX queue length set to 100

Sat Dec 31 15:09:00 2011 /system/xbin/bb/ifconfig tun1 10.8.0.10 pointopoint 10.8.0.9 mtu 1500

Sat Dec 31 15:09:00 2011 /system/xbin/bb/route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.8.0.9

Sat Dec 31 15:09:00 2011 ERROR: Linux route add command failed: could not execute external program

Sat Dec 31 15:09:00 2011 /system/xbin/bb/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.9

Sat Dec 31 15:09:00 2011 ERROR: Linux route add command failed: could not execute external program

Sat Dec 31 15:09:00 2011 Initialization Sequence Completed

I don't know what file I need to modify on my mobile device, I know Debian Gnu Linux and on this o.s. it is easy solve problem ! :)

GbMax78