Ask Your Question
0

Manage VPN from systemd and GUI

asked 2015-07-19 11:19:21 -0500

takemo gravatar image

I've setup a OpenVPN client in my Fedora 22 workstation with a config file in /etc/openvpn. I've setup systemd to connect the vpn at startup and I've imported the same config file in gnome network manager.

The vpn connection comes up fine at startup, but the problem is that that is not reflected in gnome system menu (top right corner). It shows that vpn connection as being off.

Is there a way to have vpn connection initiated at startup and show up in the correct state in gnome system menu?

edit retag flag offensive close merge delete

Comments

1

How do you start vpn at startup? Using nmcli ?

bit4man gravatar imagebit4man ( 2015-07-21 23:19:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-07-22 03:24:51 -0500

pschindl gravatar image
  1. Run nm-connection-editor
  2. Choose connection in which you want to use this VPN automatically (for example ethernet) and click on 'edit'
  3. In General tab tick 'Automatically connect to VPN when using this connection' and choose your VPN
  4. Save it
  5. If you have another connection where you want to use VPN go to 2
edit flag offensive delete link more

Comments

Thanks. Worked like a charm.

How is it, if the vpn connection breaks down for some reason, will the underlying network connection be inactivated?

takemo gravatar imagetakemo ( 2015-07-23 03:31:15 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-07-19 11:19:21 -0500

Seen: 921 times

Last updated: Jul 19 '15