Active Topics

 



Notices


Reply
Thread Tools
Posts: 6 | Thanked: 2 times | Joined on Apr 2011
#1
Iīve a little problem with my N900 and OpenVPN. If i try to establish a VPN connection i get the error "socket.connetc() faild". If i try to establish the connection manually via console with my config, can i see the whole error (same as i see in my syslog file):
options error: unrecognized options or missing parameter(s) in /etc/openvpn/Home.ovpn:1: client
if i change the order for example "client" with "dev tap" i get the same error just with "dev" instead of client (Home.ovpn:1: dev) and so on.

Home.ovpn:
Code:
client
dev tap
;dev tun
;dev-node MyTap
;proto tcp
proto udp
remote <my ip> 1194
;remote-random
;resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
pkcs12 N900.p12
ns-cert-type server
;tls-auth ta.key 1
;cipher x
comp-lzo
verb 3
redirect-gateway
;mute 20

Last edited by Badevil; 2011-04-10 at 12:01.
 
Posts: 151 | Thanked: 93 times | Joined on Sep 2009 @ sofia, bulgaria
#2
check that your config file is not DOS format.

cat -ve /etc/openvpn/Home.ovpn
 
Posts: 4 | Thanked: 1 time | Joined on Feb 2010
#3
How do you edit the config file? Maybe there is something wrong with the line end (CR + LF instead of CR).

What happens, if you add lines on top of the file with a local editor like vi?
 
Posts: 151 | Thanked: 93 times | Joined on Sep 2009 @ sofia, bulgaria
#4
what is Code: in the first line?
 
Posts: 6 | Thanked: 2 times | Joined on Apr 2011
#5
Originally Posted by lidow View Post
check that your config file is not DOS format.

cat -ve /etc/openvpn/Home.ovpn
cat -ve isnīt possible :-(

Originally Posted by lidow
what is Code: in the first line?
Just the [code] tag, now it should be correct, sry.

Originally Posted by kaeptn
How do you edit the config file? Maybe there is something wrong with the line end (CR + LF instead of CR).

What happens, if you add lines on top of the file with a local editor like vi?
In vim everything is still looking fine.

With PR 1.2 there was no problem with the same config, iīve this problem since PR 1.3. I get also the same error if the first line is a comment or a single "#" he says to anything error .

debugging isnīt possible because of this error he doesnīt start the initialisation of VPN.
 
Posts: 4 | Thanked: 1 time | Joined on Feb 2010
#6
Can you enter the openvpn command manually in a console with all your configuration as argument:
openvpn --client --dev tap ...
Maybe we can find out more from the resulting messages.

You have to be root for that.

Last edited by kaeptn; 2011-04-03 at 19:31. Reason: Addition
 
Posts: 6 | Thanked: 2 times | Joined on Apr 2011
#7
Originally Posted by kaeptn View Post
Can you enter the openvpn command manually in a console with all your configuration as argument:
openvpn --client --dev tap ...
Maybe we can find out more from the resulting messages.

You have to be root for that.
Iīve tried by console and everything is fine... Configfile still donīt working...
 
Posts: 4 | Thanked: 1 time | Joined on Feb 2010
#8
OK, so we know now for sure, the problem has to be the config file itself or the GUI.

Please try this as root:

openvpn --config /etc/openvpn/Home.conf

If this is working, there is something wrong with the GUI.
If this fails, then I have to start guessing. Things you could try:
- get hexdump to the phone or the config file to the PC and look into the file with a hexeditor
- create a complete new file with vi on the phone
- chmod 644 /etc/openvpn/Home.conf
- chown root:root /etc/openvpn/Home.conf
- renaming Home.conf to something like home.conf
 
Posts: 6 | Thanked: 2 times | Joined on Apr 2011
#9
Originally Posted by kaeptn View Post
OK, so we know now for sure, the problem has to be the config file itself or the GUI.

Please try this as root:

openvpn --config /etc/openvpn/Home.conf

If this is working, there is something wrong with the GUI.
If this fails, then I have to start guessing. Things you could try:
- get hexdump to the phone or the config file to the PC and look into the file with a hexeditor
- create a complete new file with vi on the phone
- chmod 644 /etc/openvpn/Home.conf
- chown root:root /etc/openvpn/Home.conf
- renaming Home.conf to something like home.conf
Iīve created now a new file with vim on my N900 and what should i say... itīs work with the applet and redirect gateway pushed by my server also. Iīm so happy and no reconnects. Iīve a stable great connection and i love it. Thank you very much kaeptn!
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:06.