For When You Can't Have The Real Thing
[ start | index | login ]
start > Fedora > Server > 27 > pptp VPN Client

pptp VPN Client

Created by dave. Last edited by dave, 225 days ago. Viewed 261 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
(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.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt