A script that makes it easy to connect Network Manager to a VPN Gate
networkmanager-openvpn
)networkmanager-strongswan
networkmanager-l2tp
)This script is developed on Arch Linux and test on Arch Linux and Ubuntu.
In previous versions, there were some GNU dependencies.
If you don't use the GUI, you don't need to install kdialog and zenity.
Clone the git repository and run nm-vpngate
git clone https://github.com/Hayao0819/nm-vpngate.git
bash nm-vpngate/nm-vpngate
By installing it, you can use global configuration files, Systemd Unit, etc.
yay -S nm-vpngate-git
git clone https://github.com/Hayao0819/nm-vpngate.git
cd nm-vpngate/
sudo make install
See nm-vpngate -h
for normal command usage.
If you want to use systemd service to connect VPN Gate automatically, run it to enable service.
sudo systemctl enable nm-vpngate
Read the comments in nm-vpngate.conf
to use advanced settings such as filters.
All settings can be changed in the configuration file.
These are the directories used by nm-vpngate.
Some of these can be changed in the configuration file.
(DIR) ~/.nm-vpngate/
Script saves openvpn config to the directory
(DIR) /tmp/nm-vpngate.${UID} Script saves temporary data.
(FILE) /tmp/nm-vpngate.${UID}/servers Script saves the cache to the file
(FILE) /tmp/nm-vpngate.${UID}/connected Script saves the name of the last VPN you connected to
(FILE) /etc/nm-vpngate.conf ~/.nm-vpngate.conf ~/.config/nm-vpngate.conf
Script loads config from them