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
748
0
0
How to connect to a PPTP VPN? - Image 1

Introduction

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

Prerequisites:

· 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)

Configuration:

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)

$ USERNAME PPTP $ PASSWORD *

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

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

pty "pptp $ SERVER -nolaunchpppd"

name $ DOMAIN \\ $ USERNAME

remotename PPTP

require-mpeg-128

file /etc/ppp/options.pptp

ipparam $ TUNNEL

persist

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.



How to connect to a PPTP VPN? - Image 1

Introduction

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

Prerequisites:

· 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)

Configuration:

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)

$ USERNAME PPTP $ PASSWORD *

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

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

pty "pptp $ SERVER -nolaunchpppd"

name $ DOMAIN \\ $ USERNAME

remotename PPTP

require-mpeg-128

file /etc/ppp/options.pptp

ipparam $ TUNNEL

persist

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.

Important:
  • We hope the conversations that take place on MyTechLogy.com 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
REDHERRING
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

Back to Top