Ask Your Question
1

how to autoconnect openvpn on startup

asked 2014-12-14 02:55:33 -0500

ekayalar gravatar image

Hello, I'm using Gnome desktop. I always manually enabled openvpn after system started. Is that easy way exist for that ? KDE networkmanager have a option for that. (I can configure in /etc/openvpn folder using terminal, but lock icon not displayed in panel)

thanks,

edit retag flag offensive close merge delete

Comments

See https://ask.fedoraproject.org/en/ques... for a GUI solution using nm-connection-editor under Gnome.

florian gravatar imageflorian ( 2018-06-25 23:00:57 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-01-23 04:57:35 -0500

Ivan Temchenko gravatar image

Hi, since there is no support for gnome network manager GUI for doing that, I'm using simple bash script for nmcli First, I'm checking if we have full acces to the internet, and then performing the connection. Replace vpn-connection-name with name of your connection.

#!/bin/bash
status=$(nmcli networking connectivity)
if [[ $status == "full" ]]; then
    nmcli connection up vpn-connection-name
fi

And running it in conky every 5 minutes if my wifi connected:

${if_existing /proc/net/route wlp1s0}
${execi 300 /home/jony/.scripts/auto_vpn.sh}

But you can run it on startup or any other desirable way.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-12-14 02:55:33 -0500

Seen: 556 times

Last updated: Dec 14 '14