/vpn-switcher

Bash script to switch VPN with a shortcut

Primary LanguageShellGNU General Public License v3.0GPL-3.0

vpn-switcher

Description

vpn-switcher is a bash script for switching VPN connections under Linux. In order to alternate VPNs, it will connect to the earliest used VPN.

Who can benefit from this script?

This small script will be useful in case you:

  1. Have already configured a number of VPN connections

  2. Need to switch between them, avoiding repetitions

  3. Want to stay off the hassle of clicking each time Turn off VPN > Turn on next VPN

  4. Want to create a custom shortcut to do this

Requirements

  1. nmcli

  2. Saved and working VPN connections

Installation

  1. Download this script

  2. Make it executable

  3. Create a shortcut

In Gnome

Settings > Keyboard > Add custom shortcut

Gnome · Create shortcut