PPTP VPN Client
(2018-04-30)
Setting A PPTP VPN Client
You have to set the firewall to accept GRE tunnel traffic:
# firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p gre -j ACCEPT
# firewall-cmd --permanent --direct --add-rule ipv6 filter INPUT 0 -p gre -j ACCEPT
# firewall-cmd --reload
Now you can set the VPN itself:
# pptpsetup --create $CONNECTIONNAME --server $SERVERNAME --username $USER --password $MYPASS --encrypt --start
You probably need to set up some routes so you can now get at the networks you are connected to.
To kill the connection, kill the running pptp.
Later on you need to start the tunnel again:
# pptp call $CONNECTIONNAME
...and you have to re-setup your routes again.