[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] mrdindon:
So close ... but not working... I need help :)

I cant figure it out !!

I have a openvpn server at home, I'm using it from my pc, my iphone and other devices.... but I cant make it work from my sgn...

Here is the output... if someone can help me it would be very appreciated...

(I removed IP and certificates..)

Galaxy Note rooted, Openvpn installed, Openvpn Installer installed..

Openvpn Installer setup:

/system/xbin/openvpn

/system/bin/openvpn

Openvpn gui setup :

-Load tun kernel on

Tun module settings :

--insmod

--tun

-Use vpn dns server

script security level: built-in only

When I use the gui, I go a little bit further since the tun device appears in netcfg... but in shell it doesn't but I can pipe the output to show you...

but first, my config file :

hidden.ovpn:

setenv FORWARD_COMPATIBLE 1

client

server-poll-timeout 4

nobind

remote hidden 1194 udp

remote hidden 443 tcp

dev tun

dev-type tun

ns-cert-type server

reneg-sec 604800

sndbuf 100000

rcvbuf 100000

comp-lzo no

verb 3

setenv PUSH_PEER_INFO

<ca>

-----BEGIN CERTIFICATE-----

hidden

-----END CERTIFICATE-----

</ca>

<cert>

-----BEGIN CERTIFICATE-----

hidden

-----END CERTIFICATE-----

</cert>

<key>

-----BEGIN RSA PRIVATE KEY-----

hidden

-----END RSA PRIVATE KEY-----

</key>

key-direction 1

<tls-auth>

-----BEGIN OpenVPN Static key V1-----

hidden

-----END OpenVPN Static key V1-----

</tls-auth>

_________________________________________

Now when I try to connect from the shell using that command :

openvpn /sdcard/openvpn/hidden.ovpn

I get :

Wed Dec 21 07:15:03 2011 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Feb 2 2010

Wed Dec 21 07:15:03 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables

Wed Dec 21 07:15:03 2011 Control Channel Authentication: tls-auth using INLINE static key file

Wed Dec 21 07:15:03 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication

Wed Dec 21 07:15:03 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication

Wed Dec 21 07:15:03 2011 LZO compression initialized

Wed Dec 21 07:15:03 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]

Wed Dec 21 07:15:03 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]

Wed Dec 21 07:15:03 2011 Local Options hash (VER=V4): '504e774e'

Wed Dec 21 07:15:03 2011 Expected Remote Options hash (VER=V4): '14168603'

Wed Dec 21 07:15:03 2011 Socket Buffers: R=[110592->200000] S=[110592->200000]

Wed Dec 21 07:15:03 2011 UDPv4 link local: [undef]

Wed Dec 21 07:15:03 2011 UDPv4 link remote: HIDDEN:1194

Wed Dec 21 07:15:04 2011 TLS: Initial packet from HIDDEN:1194, sid=27565849 b8e5c82f

Wed Dec 21 07:15:04 2011 VERIFY OK: depth=1, /CN=OpenVPN_CA

Wed Dec 21 07:15:04 2011 VERIFY OK: nsCertType=SERVER

Wed Dec 21 07:15:04 2011 VERIFY OK: depth=0, /CN=OpenVPN_Server

Wed Dec 21 07:15:05 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key

Wed Dec 21 07:15:05 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Wed Dec 21 07:15:05 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key

Wed Dec 21 07:15:05 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication

Wed Dec 21 07:15:05 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA

Wed Dec 21 07:15:05 2011 [OpenVPN_Server] Peer Connection Initiated with HIDDEN:1194

Wed Dec 21 07:15:07 2011 SENT CONTROL [OpenVPN_Server]: 'PUSH_REQUEST' (status=1)

Wed Dec 21 07:15:07 2011 PUSH: Received control message: 'PUSH_REPLY,explicit-exit-notify,topology subnet,route-delay 5 30,dhcp-pre-release,dhcp-renew,dhcp-release,route-metric 101,ping 5,ping-restart 40,redirect-gateway def1,redirect-gateway bypass-dhcp,redirect-gateway autolocal,route-gateway 5.5.8.1,dhcp-option DNS 192.168.1.1,dhcp-option DNS HIDDEN,register-dns,comp-lzo yes,ifconfig 5.5.8.19 255.255.248.0'

Wed Dec 21 07:15:07 2011 Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:4: dhcp-pre-release (2.1.1)

Wed Dec 21 07:15:07 2011 Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:5: dhcp-renew (2.1.1)

Wed Dec 21 07:15:07 2011 Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:6: dhcp-release (2.1.1)

Wed Dec 21 07:15:07 2011 Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:16: register-dns (2.1.1)

Wed Dec 21 07:15:07 2011 OPTIONS IMPORT: timers and/or timeouts modified

Wed Dec 21 07:15:07 2011 OPTIONS IMPORT: explicit notify parm(s) modified

Wed Dec 21 07:15:07 2011 OPTIONS IMPORT: LZO parms modified

Wed Dec 21 07:15:07 2011 OPTIONS IMPORT: --ifconfig/up options modified

Wed Dec 21 07:15:07 2011 OPTIONS IMPORT: route options modified

Wed Dec 21 07:15:07 2011 OPTIONS IMPORT: route-related options modified

Wed Dec 21 07:15:07 2011 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified

Wed Dec 21 07:15:07 2011 ROUTE default_gateway=192.168.0.1

Wed Dec 21 07:15:07 2011 TUN/TAP device tun0 opened

Wed Dec 21 07:15:07 2011 TUN/TAP TX queue length set to 100

Wed Dec 21 07:15:07 2011 /system/xbin/bb/ifconfig tun0 5.5.8.19 netmask 255.255.248.0 mtu 1500 broadcast 5.5.15.255

Wed Dec 21 07:15:07 2011 Linux ifconfig failed: could not execute external program

Wed Dec 21 07:15:07 2011 Exiting

and nothing appears in netcfg :

lo UP 127.0.0.1 255.0.0.0 0x00000049

svnet0 UP 0.0.0.0 0.0.0.0 0x000000d1

usb0 DOWN 0.0.0.0 0.0.0.0 0x00001002

sit0 DOWN 0.0.0.0 0.0.0.0 0x00000080

eth0 UP 192.168.0.3 255.255.255.0 0x00001043

_____________________________________________

When I use the gui,

I can see :

Wait

Auth

Getting Config

Connected to hidden...

There is no traffic showing up.... and when I do netcfg i get :

lo UP 127.0.0.1 255.0.0.0 0x00000049

tun0 DOWN 0.0.0.0 0.0.0.0 0x00001090

svnet0 UP 0.0.0.0 0.0.0.0 0x000000d1

usb0 DOWN 0.0.0.0 0.0.0.0 0x00001002

sit0 DOWN 0.0.0.0 0.0.0.0 0x00000080

eth0 UP 192.168.0.3 255.255.255.0 0x00001043

...the device is there, but down....

I really dont know what to do anymore....

The device talk with my server, I know I'm close.... but I cant find !!!!

Is there anybody that can help me ?