[Galaxy S II General] cmonty14:
Hello!

I have installed app "OpenVPN Settings" to setup a VPN connection to my OpenVPN server.

When I start the app, I can see this in the corresponding client log:

Sat Jun 30 11:21:28 2012 OpenVPN 2.2.2 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] [eurephia] built on Jun 24 2012

Sat Jun 30 11:21:28 2012 MANAGEMENT: TCP Socket listening on 127.0.0.1:26370

Sat Jun 30 11:21:28 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables

Sat Jun 30 11:21:28 2012 Need password(s) from management interface, waiting...

Sat Jun 30 11:21:31 2012 MANAGEMENT: Client connected from 127.0.0.1:26370

Sat Jun 30 11:21:31 2012 MANAGEMENT: CMD 'state'

Sat Jun 30 11:21:31 2012 MANAGEMENT: CMD 'state on'

Sat Jun 30 11:21:31 2012 MANAGEMENT: CMD 'bytecount 0'

Sat Jun 30 11:21:58 2012 MANAGEMENT: CMD 'password [...]'

Sat Jun 30 11:21:59 2012 WARNING: file '/sdcard/openvpn/mobile2.key' is group or others accessible

Sat Jun 30 11:21:59 2012 WARNING: file '/sdcard/openvpn/static.key' is group or others accessible

Sat Jun 30 11:21:59 2012 Control Channel Authentication: using '/sdcard/openvpn/static.key' as a OpenVPN static key file

Sat Jun 30 11:21:59 2012 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication

Sat Jun 30 11:21:59 2012 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication

Sat Jun 30 11:21:59 2012 LZO compression initialized

Sat Jun 30 11:21:59 2012 Control Channel MTU parms [ L:1574 D:166 EF:66 EB:0 ET:0 EL:0 ]

Sat Jun 30 11:21:59 2012 Socket Buffers: R=[110592->131072] S=[110592->131072]

Sat Jun 30 11:21:59 2012 MANAGEMENT: >STATE:1341048119,RESOLVE,,,

Sat Jun 30 11:21:59 2012 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]

Sat Jun 30 11:21:59 2012 Local Options hash (VER=V4): '13a273ba'

Sat Jun 30 11:21:59 2012 Expected Remote Options hash (VER=V4): '360696c5'

Sat Jun 30 11:21:59 2012 UDPv4 link local: [undef]

Sat Jun 30 11:21:59 2012 UDPv4 link remote: 77.2.182.171:1194

Sat Jun 30 11:21:59 2012 MANAGEMENT: >STATE:1341048119,WAIT,,,

Sat Jun 30 11:21:59 2012 MANAGEMENT: CMD 'bytecount 0'

Sat Jun 30 11:21:59 2012 MANAGEMENT: CMD 'bytecount 0'

Sat Jun 30 11:22:00 2012 MANAGEMENT: >STATE:1341048120,AUTH,,,

Sat Jun 30 11:22:00 2012 TLS: Initial packet from 77.2.182.171:1194, sid=6be307be 1c6229c8

Sat Jun 30 11:22:00 2012 MANAGEMENT: CMD 'bytecount 0'

Sat Jun 30 11:22:02 2012 VERIFY OK: depth=1, /C=DE/ST=BW/L=location/O=OpenVPN/OU=orga/CN=orga/name=orga/emailAddress=name@firma.com

Sat Jun 30 11:22:02 2012 VERIFY OK: nsCertType=SERVER

Sat Jun 30 11:22:02 2012 VERIFY OK: depth=0, /C=DE/ST=BW/L=location/O=OpenVPN/OU=orga/CN=net1/name=orga/emailAddress=name@firma.com

Sat Jun 30 11:22:08 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key

Sat Jun 30 11:22:08 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Sat Jun 30 11:22:08 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key

Sat Jun 30 11:22:08 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Sat Jun 30 11:22:08 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA

Sat Jun 30 11:22:08 2012 [net1] Peer Connection Initiated with 77.2.182.171:1194

Sat Jun 30 11:22:09 2012 MANAGEMENT: >STATE:1341048129,GET_CONFIG,,,

Sat Jun 30 11:22:09 2012 MANAGEMENT: CMD 'bytecount 0'

Sat Jun 30 11:22:10 2012 SENT CONTROL [net1]: 'PUSH_REQUEST' (status=1)

Sat Jun 30 11:22:10 2012 PUSH: Received control message: 'PUSH_REPLY,route-gateway 192.168.178.1,route 192.168.178.0 255.255.255.0,route 192.168.178.1,ping 10,ping-restart 120,ifconfig 192.168.178.101 255.255.255.0'

Sat Jun 30 11:22:10 2012 OPTIONS IMPORT: timers and/or timeouts modified

Sat Jun 30 11:22:10 2012 OPTIONS IMPORT: --ifconfig/up options modified

Sat Jun 30 11:22:10 2012 OPTIONS IMPORT: route options modified

Sat Jun 30 11:22:10 2012 OPTIONS IMPORT: route-related options modified

Sat Jun 30 11:22:10 2012 ROUTE default_gateway=10.66.180.1

Sat Jun 30 11:22:10 2012 Note: Cannot open TUN/TAP dev openvpn: No such file or directory (errno=2)

Sat Jun 30 11:22:10 2012 MANAGEMENT: >STATE:1341048130,ASSIGN_IP,,192.168.178.101,

Sat Jun 30 11:22:10 2012 /system/bin/ip link set dev up mtu 1500

Usage: ip link add [link DEV] [ name ] NAME

[ txqueuelen PACKETS ]

[ address LLADDR ]

[ broadcast LLADDR ]

[ mtu MTU ]

type TYPE [ ARGS ]

ip link delete DEV type TYPE [ ARGS ]

ip link set { dev DEVICE | group DEVGROUP } [ { up | down } ]

[ arp { on | off } ]

[ dynamic { on | off } ]

[ multicast { on | off } ]

[ allmulticast { on | off } ]

[ promisc { on | off } ]

[ trailers { on | off } ]

[ txqueuelen PACKETS ]

[ name NEWNAME ]

[ address LLADDR ]

[ broadcast LLADDR ]

[ mtu MTU ]

[ netns PID ]

[ netns NAME ]

[ alias NAME ]

[ vf NUM [ mac LLADDR ]

[ vlan VLANID [ qos VLAN-QOS ] ]

[ rate TXRATE ] ]

[ spoofchk { on | off} ] ]

[ master DEVICE ]

[ nomaster ]

ip link show [ DEVICE | group GROUP ]

TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can | bridge }

Sat Jun 30 11:22:10 2012 MANAGEMENT: Client disconnected

Sat Jun 30 11:22:10 2012 Linux ip link set failed: external program exited with error status: 255

Sat Jun 30 11:22:10 2012 Exiting

My understanding is that the tun-module is not used / loaded.

Checking on the device with lsmod, I get this output:

shell@android:/ $ lsmod

Si4709_driver 17043 0 - Live 0xbf015000

j4fs 65970 1 - Live 0xbf000000 (P)

Is there a known problem or bug with tun-module with CM9?

I thought tun is not integrated in the kernel?

If this is wrong or simply not working, I assume I have to install a tun.ko on the device in /system/lib/modules. Where can I get this file?

Or is it advised to install another kernel?

If yes, which kernel is recommended?

THX