![]() |
[solved] Problem with OpenVPN
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 |
Re: Problem with OpenVPN
check that your config file is not DOS format.
cat -ve /etc/openvpn/Home.ovpn |
Re: Problem with OpenVPN
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? |
Re: Problem with OpenVPN
what is Code: in the first line?
|
Re: Problem with OpenVPN
Quote:
Quote:
Quote:
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 :mad:. debugging isnīt possible because of this error he doesnīt start the initialisation of VPN. |
Re: Problem with OpenVPN
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. |
Re: Problem with OpenVPN
Quote:
|
Re: Problem with OpenVPN
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 |
Re: Problem with OpenVPN
Quote:
|
All times are GMT. The time now is 04:54. |
vBulletin® Version 3.8.8