![]() |
openvpn connection problems
Hi, I've been trying to use openvpn & applet for a while now with no luck, I've tried everything mentioned in this thread : http://talk.maemo.org/showthread.php?t=37559 but to no avail, so I hope someone can help me out here .
I have Openvpn running on a remote server, successfully connected to it using openvpn-gui on my windows machine, I've installed openvpn/applet on the n900, downloaded the files I needed from the server (linux server, downloaded files through gftp directly to the n900), now when I import the client.ovpn using the applet it detects all the files (key,cert...etc) but if I try to connect I get a "starting connection" message and nothing happens (applet shows no active connections), if I try the test button sometimes it shows a white log window that stays empty and sometimes even the window doesn't show up . I've tried copy/paste the contents of the files into new leafpad files and saved them on the n900 (to avoid unicode problems), removed all lines with # from the client.ovpn file, still no luck when running the follwing command in terminal : openvpn --connect client.ovpn I get the following error : options error : unrecognized option or missing parameter(s) in [CMD-LINE]:1: connect (2.1.1) Any help would be much appreciated, atm I use ssh/tsocks combo to surf the net, but it's a bit too much everytime I need to connect, since I can't use direct internet in my country atm due to fear of bigBrother monitoring everything (living in S.Y.R.I.A) and openvpn would really simplify things for me p.s : some nokia repos are blocked here, so the first time i tried to install openvpn through app manager it wasn't able to find "bash" and refused to install, I fired FAPman with tsocks through SSH, removed openvpn, and reinstalled it with bash 3, not sure if this is of any relation, also in the /etc/openvpn directory i found a maemo-update-resolvconf file that starts with #!/bin/bash , could this be of any relation to my problem ? Thanks in advance |
Re: openvpn connection problems
1 Attachment(s)
Maybe that you have some parameter in the client.ovpn that the version installed cannot understand?
I have compiled the latest openvpn 2.2.1 with the same parameters of previous version present in the N900's repo. If you wanna try, here it is.. ;) |
Re: openvpn connection problems
here are the contents of my .ovpn file, i've checked it against other files posted by users here and other forums and couldn't find any difference, but maybe i missed something :
client dev tun remote servername.com 1194 proto udp resolv-retry infinite nobind ;user nobody ;group nogroup persist-key persist-tun ;mute-replay-warnings ca ca.crt cert ticktock666.crt key ticktock666.key tls-auth tls-auth.key 1 ns-cert-type server comp-lzo verb 9 mute 20 i will test your openvpn version, i'm using the one from the repos atm eidt : i've downloaded the zip file and extracted it on n900 and got a file named "openvpn" , renamed it to openvpn.deb and tried to open it with app manager but it says file is corrupted and won't install ? what am i doing wrong ? |
Re: openvpn connection problems
This zip contains the binary program of openvpn 2.2.1. Nothing more, nothing less.
Unzip it and run ./openvpn --config client.ovpn. Verified and perfectly working. |
Re: openvpn connection problems
Quote:
Code:
openvpn --config client.ovpn |
Re: openvpn connection problems
Yes thanks!...Just corrected the post
(i was almost sleeping...:rolleyes:..) Quote:
|
Re: openvpn connection problems
ok, I've extracted the zip file, navigated to the directory with the "openvpn" file in terminal and ran the command, now I get a new error message :
options error : in [CMD-LINE]:1: error opening configuration file client.ovpn how can I replace the openvpn version on the n900 (2.1.1) with the one you provided ? can I copy the binay file from zip somewhere to directly overwrite the older version ? I've noticed the (2.1.1) |
Re: openvpn connection problems
Code:
which openvpn /Estel |
Re: openvpn connection problems
@ticktock666
to find where is the installed openvpn binary: dpkg -L openvpn | grep bin If you can't find it, put the binary i attached previously in the same folder containing certicates and config file ( for example client.ovpn) and run ./openvpn --config client.ovpn |
Re: openvpn connection problems
finally got a response from openvpn, i removed all connections from the applet and delete the files from /etc/openvpn , then navigated to the folder where i kept the my .ovpn file through terminal and ran the command : openvpn --config client.ovpn , this got ovpn running in terminal , but it would not connect due to some "tls handshake error", could this be due to some isp block ? should i test with other udp/tcp ports ?
here's the log from running openvpn in terminal : Code:
Nokia-N900:/home/user/MyDocs/unseen/vpn# openvpn --config client.ovpn |
Re: openvpn connection problems
You are still using openvpn 2.2.0...
Anyway it seems to be a problem with you certificates. "Handshake failed." Is very clear. Your key is not correct. I suggest you to follow some of the openvpn how to for the creation of the certificates and try again... |
Re: openvpn connection problems
i've tried to replace the openvpn file with the one you provided but i got a "permission denied" error when i tried to run the command in terminal, i tried to chmod x the file to make it excutable but it gave me an error that file does'nt exist, so i switched back to the installed version
i will try to delete the files from the servr and recreate them to see if this helps |
Re: openvpn connection problems
So i recreated the files on the server and downloaded them again, using terminal it seems things are working nice, but the applet was still not working, so i added a connection using applet, then went to /etc/openvpn , deleted the files and directly copied the files i got from the server there, now finally everything is working
thank you xes for all your help and time :) , and everyone else who tried to help |
Re: openvpn connection problems
openvpn 2.3.2 .... to be tested
|
Re: openvpn connection problems
Changelog?
|
Re: openvpn connection problems
Quote:
Of course, thank you for your work no matter what - not that I'm ungrateful or something - but, it's quite "sad", that such important program sits somewhere hidden, and I stumble upon it by pure luck. It reminds me SDR programs, that are still waiting for their extras-devel debut, despite being confirmed as really working (and doing it nice) by many people :rolleyes: /Estel |
Re: openvpn connection problems
@Estel
openvpn 2.3.2 should be available in extras soon. About complaints, evaluate just 2 words: free contribution |
Re: openvpn connection problems
Thanks. As for sidenote, I hope I've elaborated myself clear enough - I'm very grateful for what you've done anyway, it's just that effort spent on submitting fruits of your hard work into repos, seems to be negligibly small, compared to gain. At least from my POV, your mileage may wary - I'm not demanding anything, just expressed above without all the sugar-coating in words, which I'm not fan of ;)
cheers, /Estel |
All times are GMT. The time now is 23:59. |
vBulletin® Version 3.8.8