Created
November 30, 2017 12:23
-
-
Save defcyy/3f0f3f8f6665e1b9a44bd1afbb11cff6 to your computer and use it in GitHub Desktop.
pptp vpn setup for ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install -y pptp-linux | |
# create pptp connection | |
sudo pptpsetup --create ${vpn_name} --server ${server} --username ${username} --password ${password} --start | |
# start exists pptp peer | |
sudo pon ${vpn_name} debug dump logfd 2 nodetach | |
# add route table | |
sudo route add -net ${network} dev ppp0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment