Skip to content

Instantly share code, notes, and snippets.

@defcyy
Created November 30, 2017 12:23
Show Gist options
  • Save defcyy/3f0f3f8f6665e1b9a44bd1afbb11cff6 to your computer and use it in GitHub Desktop.
Save defcyy/3f0f3f8f6665e1b9a44bd1afbb11cff6 to your computer and use it in GitHub Desktop.
pptp vpn setup for ubuntu
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