maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Openvpn Applet (https://talk.maemo.org/showthread.php?t=20921)

alaaji 2008-09-04 13:47

Re: Openvpn Applet
 
1 Attachment(s)
I've attached a copy of what my *.conf file looks like. I just edited out the sensitive info.

mikkov 2008-09-04 16:08

Re: Openvpn Applet
 
Seems to work for me. You could try to disable openvpn-applet and then enable it (or reboot).

Home applets don't seem to automatically restart after updating. I have to see if there is something that I could do about it for the next update.

alaaji 2008-09-05 08:54

Re: Openvpn Applet
 
Quote:

Originally Posted by mikkov (Post 220853)
Seems to work for me. You could try to disable openvpn-applet and then enable it (or reboot).

Home applets don't seem to automatically restart after updating. I have to see if there is something that I could do about it for the next update.

Thanks! That did the trick. I appreciate all of your help. :D

n810max 2008-09-06 05:56

Re: Openvpn Applet
 
Why does the openvpn-applet work when i choose open option>test but not when i click client>start on n810 (assuming my config is client.conf)


I have been struggling for days to make it work.


The open option>test works but you cannot leave the openvpn-applet debug window, apparently the window is modal. Thus, you cannot do anything on the tablet while the debug window is open.


However, I can ping the vpn ip from another computer which shows the tunnel is up.


Even when I run it from the xterm /etc/init.d/openvpn start the vpn fails (FAILED)

When I ran openvpn --config /etc/openvpn/client.conf, I get Assertion Failed error message.

It seems vpn only works with the openvpn-applet option test mode.

Hope you could help me.


Thanks in advance,

n810max 2008-09-06 06:03

Re: Openvpn Applet
 
mikkov, please disregard my post. While browsing the thread, I stumbled on post #21 at 08-31-2008, 01:45 AM where you suggested to get rid of the verb > 3.
which i did. Now it is working. Thanks to this wonderful thread. I have my openvpn working now.

stangri 2008-09-19 20:25

Re: Openvpn Applet
 
Please forgive a newbie (both in N8x0 and OpenVPN use), but can I somehow make the applet remember the login and password for the OpenVPN connection?

I have imported the configuration I used in Tunnelblik and the CA cert file and when I enter the login and password at the prompt I get the connection, but is it possible to script the login and password somewhere so I wouldn't have to type them all the time?

I'm not in control of my password for OpenVPN and it's a very long sequence with digits and upper case symbols, there's no way I can remember it.

thanks!

mikkov 2008-10-03 22:10

Re: Openvpn Applet
 
This is a little bit late answer but you can define password in openvpn configuration file:

Quote:

--auth-user-pass [up]
Authenticate with server using username/password. up is a file containing username/password on 2 lines (Note: OpenVPN will only read passwords from a file if it has been built with the --enable-password-save configure option, or on Windows by defining ENABLE_PASSWORD_SAVE in config-win32.h).

If up is omitted, username/password will be prompted from the console.

The server configuration must specify an --auth-user-pass-verify script to verify the username/password provided by the client.

Actually I am not sure if extras repo openvpn is built with --enable-password-save option. There is no other method at least for the moment.

see http://openvpn.net/index.php/documen...x-manpage.html

stangri 2008-10-05 12:27

Re: Openvpn Applet
 
Mikko,
thanks that worked fine. I've had the CA cert and the UP filenames in double-quotes, as soon as I removed them it just worked.

PS. Also thanks for porting FreeCIV, BOS Wars :).

jgombos 2008-11-27 22:24

Re: Openvpn Applet
 
It won't import the configuration.

openVPN works from the CLI just fine, but it seems the applet can't handle the configuration. The applet parses the config file, and automatically populates the filenames for the certificates (although it fails to grab the ta.key). Then I tap "import selected" and it just brings me to an empty dialog box, with no indication about what the problem is. This is the config file I'm feeding it:
Code:

float
remote xxx.xxx.xxx.xxx xxxx
dev tun
persist-key
persist-tun
proto udp
pull
route-method exe
route-delay 2
nobind
tun-mtu xxxx
comp-lzo
auth-user-pass pwauth
auth xxxxxxxxxxxxxx
cipher xxxxxxxxxxxxxxx
tls-cipher xxxxxxxxxxxxxxxxxxx
tls-client
client
tls-auth ta.key 1
ns-cert-type server
ca ca.crt
cert client.crt
key client.key
keepalive 10 60
resolv-retry xxxxxxx
verb 1
log openvpn.log

Is there a way to manually force a file import? Eg. can I just drop them in a folder and edit a configuration file for the applet itself?

mikkov 2008-11-27 22:31

Thanks for the report. I will try to investigate this problem later.

Until I fix the problem you can copy configuration files directly to /etc/openvpn directory. Applet should see the .conf or .ovpn file from there.


All times are GMT. The time now is 10:16.

vBulletin® Version 3.8.8