You'll need:
- VPN Server IP
- VPN pre-shared key
- VPN user
- VPN password
These parameters will be be given to you by your VPN administrator or will be set when you setup your VPN server (instructions at the bottom of this page).
Follow these instructions and use the above information.
Follow these instructions and use the above information.
-
Checkout this repo locally
-
Go to this directory in a shell
-
Run this command with the above information
sudo bash -x install.sh vpn-connection-1 <VPN server IP> <VPN user> <VPN password> <VPN pre-shared key>
Then to connect and disconnect:
# Connect
sudo l2tp-vpn connect vpn-connection-1
# Disconnect
sudo l2tp-vpn disconnect vpn-connection-1
Run this script after setting the VPN user / password / pre-shared key parameters inside it.
Apache 2.0. See LICENSE for details