MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.

I'm not curious

How to connect to a PPTP VPN?

Published on 05 January 18
How to connect to a PPTP VPN? - Image 1


Point-to-Point Tunneling Protocol (PPTP) is a PPP-over-IP encapsulation protocol developed by Microsoft that enables virtual private networks (VPNs) to be established over a public network.

This protocol is supported by almost all platforms including, Windows since the era of 95 to R2 edition, Mac OS X, GNU / Linux, BSD, Cisco IOS, Android, Palm and is extremely simple to set up. However PPTP is far from secure, indeed many security flaws have been found in the implementation of MPPE, the PPP authentication protocol. For this reason, it is strongly discouraged to use PPTP with IPv6 or where confidentiality and data integrity are considered essential.

So here, we’ll see how to connect to a PPTP server under GNU / Linux.

Client installation:

apt-get install pptp-linux


· address (IP or DNS) of the PPTP server ($ SERVER)

· the name you want to give to the tunnel ($ TUNNEL),

· login ($ USERNAME) (can be in the form DOMAIN \ USERNAME)

· password ($ PASSWORD)


Check for the following options in the /etc/ppp/options.pptp file

lock noauth nobsdcomp nodeflate

Add a line to the / etc / ppp / chap-secrets file that handles authentication (be careful the password is stored in clear)


Remember to escape the special characters in the case DOMAIN \\ USERNAME

Create the file / etc / ppp / peers / $ TUNNEL:

pty "pptp $ SERVER -nolaunchpppd"


remotename PPTP


file /etc/ppp/options.pptp

ipparam $ TUNNEL


The option "persist" enables auto reconnection in case of connection loss.

Test the tunnel:

pon $ TUNNEL debug dump logfd 2 nodetach

Start the tunnel:

pon $ TUNNEL

Stop the tunnel:

poff $ TUNNEL

To start the tunnel automatically you can add this to the / etc / network / interfaces file:

auto tunnel

iface tunnel inet ppp

provider $ TUNNEL

Test the auto start:

/etc/init.d/networking restart

That's it, the PPTP VPN connection is now established! You can see it appear in the result of the ipconfig command under the name pppX.

This blog is listed under Networks & IT Infrastructure Community

Post a Comment

Please notify me the replies via email.

  • We hope the conversations that take place on will be constructive and thought-provoking.
  • To ensure the quality of the discussion, our moderators may review/edit the comments for clarity and relevance.
  • Comments that are promotional, mean-spirited, or off-topic may be deleted per the moderators' judgment.
You may also be interested in
Awards & Accolades for MyTechLogy
Winner of
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url