We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

How can I set up OpenVPN with new 2.1.0 UI? [answered]

asked 2017-02-23 21:54:29 +0200

naytsyrhc gravatar image

updated 2017-02-24 06:44:57 +0200

eson gravatar image

I can't figure out, how to set up my openVPN with new UI i 2.1.0. I can't import my settings file (which worked with SecureFishNet prior 2.1.0) and I can't find settings for tls-auth key (not in normal or in advanced settings page). Maybe I'm missing something? Or is that one of the still missing settings as stated in the release notes? Any suggestions are welcome. Is there a way I can give more information for the crashing ui on import of existing settings?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by naytsyrhc
close date 2017-02-24 13:57:06.651429

2 Answers

Sort by » oldest newest most voted
1

answered 2017-02-24 06:39:59 +0200

eson gravatar image

updated 2017-02-24 06:49:36 +0200

You should specify the tls-auth key in your .ovpn config file. Works fine for me.

tls-auth /path/to/*tls.key 1
edit flag offensive delete publish link more

Comments

That's specified there. Still doesn't work. I only get "Problem with connection". Any ideas how ro track down the problem?

naytsyrhc ( 2017-02-24 13:41:07 +0200 )edit

Tried the good old command line and got all required error messages needed to work it out. Thx.

naytsyrhc ( 2017-02-24 13:56:35 +0200 )edit

What command did you use? Is it simply openvpn +options etc in terminal?

Lutwolf ( 2017-03-03 14:45:22 +0200 )edit

openvpn --config <path_to_config_file>

naytsyrhc ( 2017-03-03 15:31:20 +0200 )edit
0

answered 2017-02-23 23:16:45 +0200

cy8aer gravatar image

updated 2017-02-24 10:46:18 +0200

The direct import of your ovpn file in the settings wizzard is broken. But you can set it up by hand:

  • new vpn session
  • select e. g. openvpn
  • do not import the ovpn file, skip instead!
  • define some name of your vpn
  • select the advanced button (it is Fortgeschritten at the bottom button)
  • there you find a field "OpenVPN config file" where you can put the path of your ovpn file.

I am not sure which fields must be filled, I cannot remember if I only set the name, maybe LZO and protocol?? And I am not sure which setting has priority (ovpn file or dialog field).

Then you can start your tunnel.

[update: better description how to set the ovpn file name in the config dialog - not import!]

edit flag offensive delete publish link more

Comments

Sorry to ask: you read my question? I know that the import is broken. But: I can't see any option/setting to input tls-auth key in advanced settings or standard settings page. As I need this for my openvpn config, I seem to be unable to configure it. Unless anyone has an idea that is.

naytsyrhc ( 2017-02-23 23:21:13 +0200 )edit

I did read your question: "I can't import my settings file [with the tls-auth-option in it]". You cannot import the file via wizard, but you can set the file by configuration

Write your ovpn file with the tls-auth-key option in it. Skip import of the file, set the ovpn-file in config dialog. Connect to your tunnel. Upvote me again ;-)

tls-auth is interpreted by the ovpn client (I also set it up in my ovpn file)

cy8aer ( 2017-02-24 10:36:42 +0200 )edit

Thanks for clarifying. I didn't downvote you though. Unfortunately it doesn't work with that either. But I don't get error messages. Do you know where to find logs?

naytsyrhc ( 2017-02-24 13:36:28 +0200 )edit

Worked it out. Messed up the ovpn file. There was a wrong path in it and two wrong options ('user nobody' and 'group nogroup'), After fixing that, everything works. Thank you!

naytsyrhc ( 2017-02-24 13:54:41 +0200 )edit
1

Running openvpn from the CLI works well here. The Sailfish frontend does not ask for a passphrase to use the passphrase protected key in the configuration. But it is still beta, so OK. I re-tested with the passphrase removed from the key and it connects. So it really falls over RSA passphrase protected key files.

Maus ( 2017-03-20 16:42:45 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2017-02-23 21:54:29 +0200

Seen: 693 times

Last updated: Feb 24 '17