[Galaxy S II Q&A, Help & Troubleshooting] oliwiak82:
Hello,

I have a problem with setup of my openvpn configuration.

# /system/xbin/openvpn --config /mnt/sdcard/openvpn/xxx.xxx.org.ovpn
Thu Mar 29 11:21:41 2012 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jan 7 2012
Thu Mar 29 11:21:41 2012 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Mar 29 11:21:41 2012 WARNING: file '/mnt/sdcard/openvpn/client7-samsungs2.key' is group or others accessible
Thu Mar 29 11:21:41 2012 LZO compression initialized
Thu Mar 29 11:21:41 2012 Control Channel MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Mar 29 11:21:41 2012 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Thu Mar 29 11:21:41 2012 Local Options hash (VER=V4): 'd79ca330'
Thu Mar 29 11:21:41 2012 Expected Remote Options hash (VER=V4): 'f7df56b8'
Thu Mar 29 11:21:41 2012 Socket Buffers: R=[110592->131072] S=[110592->131072]
Thu Mar 29 11:21:41 2012 UDPv4 link local: [undef]
Thu Mar 29 11:21:41 2012 UDPv4 link remote: 62.87.242.231:1194
Thu Mar 29 11:21:41 2012 TLS: Initial packet from 62.87.242.231:1194, sid=1a96d893 ff58a0a9
Thu Mar 29 11:21:45 2012 VERIFY OK: depth=1, /C=PL/ST=dol/L=wro/O=OpenVPN/emailAddress=mail@host.domain
Thu Mar 29 11:21:45 2012 VERIFY OK: nsCertType=SERVER
Thu Mar 29 11:21:45 2012 VERIFY OK: depth=0, /C=PL/ST=dol/O=OpenVPN/CN=xxx.xxx.org/emailAddress=mail@host.domain
Thu Mar 29 11:21:47 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Mar 29 11:21:47 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Mar 29 11:21:47 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Mar 29 11:21:47 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Mar 29 11:21:47 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 EDH-RSA-DES-CBC3-SHA, 1024 bit RSA
Thu Mar 29 11:21:47 2012 [xxx.xxx.org] Peer Connection Initiated with 62.87.242.231:1194
Thu Mar 29 11:21:49 2012 SENT CONTROL [xxx.xxx.org]: 'PUSH_REQUEST' (status=1)
Thu Mar 29 11:21:49 2012 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 192.168.1.1,route-gateway dhcp,ping 15,ping-restart 60'
Thu Mar 29 11:21:49 2012 OPTIONS IMPORT: timers and/or timeouts modified
Thu Mar 29 11:21:49 2012 OPTIONS IMPORT: route-related options modified
Thu Mar 29 11:21:49 2012 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Mar 29 11:21:49 2012 TUN/TAP device tap0 opened
Thu Mar 29 11:21:49 2012 TUN/TAP TX queue length set to 100
Thu Mar 29 11:21:49 2012 Initialization Sequence Completed

~ # ifconfig -a
eth0 Link encap:Ethernet HWaddr 14:7B:E5:54:9B:E1
inet addr:9.xxx.xxx.195 Bcast:9.xxx.xxx.255 Mask:255.255.254.0
inet6 addr: fe80::167d:c5ff:fe94:9be1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22265 errors:0 dropped:0 overruns:0 frame:0
TX packets:2806 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3362140 (3.2 MiB) TX bytes:452583 (441.9 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:415 errors:0 dropped:0 overruns:0 frame:0
TX packets:415 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42226 (41.2 KiB) TX bytes:42226 (41.2 KiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

svnet0 Link encap:UNSPEC HWaddr A0-00-80-00-00-00-00-00-00-00-00-00-00-00-00-00
UP POINTOPOINT RUNNING NOARP MTU:65541 Metric:1
RX packets:256 errors:193 dropped:0 overruns:0 frame:0
TX packets:908 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:74575 (72.8 KiB) TX bytes:12675620 (12.0 MiB)

tap0 Link encap:Ethernet HWaddr 12:EA:99:E5:CD:72
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:399 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:106795 (104.2 KiB) TX bytes:0 (0.0 B)

usb0 Link encap:Ethernet HWaddr 3A:F2:BD:20:73:60
BROADCAST 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
9.xxx.xxx.0 * 255.255.254.0 U 0 0 0 eth0
default gate-9-xxx-xxx-1 0.0.0.0 UG 0 0 0 eth0

# cat /mnt/sdcard/openvpn/xxxx.xxx.org.ovpn |grep -v "^#" |grep -v "^;" |grep -v "^$"
client
dev tap
proto udp
remote xxx.xxx.org 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /mnt/sdcard/openvpn/ca.crt
cert /mnt/sdcard/openvpn/client7-samsungs2.crt
key /mnt/sdcard/openvpn/client7-samsungs2.key
ns-cert-type server
comp-lzo
verb 3
script-security 2

~ # uname -a
Linux localhost 2.6.35.7-I9100XWKF3-CL276555 #2 SMP PREEMPT Thu Jun 9 18:28:28 KST 2011 armv7l GNU/Linux

~ # ls -la /system/xbin/bb/route
lrwxrwxrwx 1 root root 18 Mar 26 16:07 /system/xbin/bb/route -> /system/xbin/route

~ # ls -la /system/xbin/bb/ifconfig
lrwxrwxrwx 1 root root 21 Mar 26 16:06 /system/xbin/bb/ifconfig -> /system/xbin/ifconfig

The problem is that i'm not receiving ip and routing table on my android phone.

This configuration works on my windows workstation.

Can anyone help me track the problem please.