[EVO 4G Android Development] bar3m3tal:
OpenVPN

I just switched to a different ROM today (EViO). I flashed to netachy-toastmod 4.1.8. I have only one issue. OpenVpn, I have it running and connecting but I cannot get traffic to route through it. I did sym link ifconfig and route to /system/xbin/bb.

If I run /system/xbin/bb/route I see the routes listed as they should be through tun0 but just no traffic.

If I switch back to Cyanogen it works so I know my server is setup correctly and that my config file should be good.

If I run this from shell I see an Error Linux route add command failed: external program exited with error status: 1 And I get errors saying the files exist for each route.

I'm including what I see from the command line when i try to connect

C:\android-sdk-windows\tools>adb connect xxx.xxx.xxx.81:5555

connected to 192.168.5.81:5555

C:\android-sdk-windows\tools>adb shell

# cd /sdcard/openvpn

# insmod /system/lib/modules/tun.ko

insmod /system/lib/modules/tun.ko

# /system/xbin/openvpn --config /sdcard/openvpn/xxx.xxxxxxx_phone.conf

/system/xbin/openvpn --config /sdcard/openvpn/xxx.xxxxxx_phone.conf

Sun Aug 22 01:02:53 2010 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] bu

ilt on Feb 2 2010

Sun Aug 22 01:02:53 2010 WARNING: No server certificate verification method has

been enabled. See http://openvpn.net/howto.html#mitm for more info.

Sun Aug 22 01:02:53 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or hig

her to call user-defined scripts or executables

Sun Aug 22 01:02:53 2010 WARNING: file 'xxx.xxxxxx_phone.key' is group or othe

rs accessible

Sun Aug 22 01:02:53 2010 LZO compression initialized

Sun Aug 22 01:02:53 2010 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:

0 EL:0 ]

Sun Aug 22 01:02:53 2010 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:

0 EL:0 AF:3/1 ]

Sun Aug 22 01:02:53 2010 Local Options hash (VER=V4): '94012f71'

Sun Aug 22 01:02:53 2010 Expected Remote Options hash (VER=V4): 'f2dba00b'

Sun Aug 22 01:02:53 2010 UDPv4 link local: [undef]

Sun Aug 22 01:02:53 2010 UDPv4 link remote: xxx.xxx.xxx.xxx:1723

Sun Aug 22 01:02:54 2010 VERIFY OK: depth=1, /C=US/ST=xxxx/L=xxxxx/O=xxxxxxxxx/emailAddress=xxxx@xxx-xxxx.com

Sun Aug 22 01:02:54 2010 VERIFY OK: depth=0, /C=US/ST=Indiana/L=Valparaiso/O=Gol

den_Technologies/OU=Office/CN=xxxx/emailAddress=xxxx@xxxx-xxxx.com

Sun Aug 22 01:02:54 2010 Data Channel Encrypt: Cipher 'DES-CBC' initialized with

64 bit key

Sun Aug 22 01:02:54 2010 Data Channel Encrypt: Using 160 bit message hash 'SHA1'

for HMAC authentication

Sun Aug 22 01:02:54 2010 Data Channel Decrypt: Cipher 'DES-CBC' initialized with

64 bit key

Sun Aug 22 01:02:54 2010 Data Channel Decrypt: Using 160 bit message hash 'SHA1'

for HMAC authentication

Sun Aug 22 01:02:54 2010 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES2

56-SHA, 2048 bit RSA

Sun Aug 22 01:02:54 2010 [gtvpn] Peer Connection Initiated with xxx.xxx.xxx.xxx:1723

Sun Aug 22 01:02:57 2010 TUN/TAP device tun0 opened

Sun Aug 22 01:02:57 2010 /system/xbin/bb/ifconfig tun0 xxx.xxx.xxx.178 pointopoi

nt xxx.xxx.xxx.177 mtu 1500

route: SIOCADDRT: File exists

Sun Aug 22 01:02:57 2010 ERROR: Linux route add command failed: external program

exited with error status: 1

route: SIOCADDRT: File exists

Sun Aug 22 01:02:57 2010 ERROR: Linux route add command failed: external program

exited with error status: 1

route: SIOCADDRT: File exists

Sun Aug 22 01:02:57 2010 ERROR: Linux route add command failed: external program

exited with error status: 1

Sun Aug 22 01:02:57 2010 Initialization Sequence Completed​

Any help would be great appreciated, and if I should ask elsewhere please let me know.

Thanks