How to set up a PPTP VPN connection between Linux and Windows XP

Point-to-Point Tunneling Protocol (PPTP) is a VPN tunneling protocol based on a client and server model. Microsoft Windows comes with a built-in PPTP client software, and so PPTP VPN is popular among Windows-running computers. PPTP server and client software is also available on Linux platform.

Set Up a PPTP VPN Server on Linux

First, install a PPTP VPN daemon software called pptpd.

To install pptpd on Ubuntu or Debian:

$ sudo apt-get install pptpd

To install pptpd on CentOS, RHEL or Fedora:

$ sudo yum install ppp -y

$ wget (for 32-bit system)
$ wget (for 64-bit system)
$ sudo rpm -Uhv

Next, go ahead and enable IP forwarding.

Now configure pptpd by adding "localip" (VPN server's IP address) and "remoteip" (VPN client's IP addresses) in /etc/pptpd.conf. In this example, the potential IP address of a VPN client is or any IP address between and

$ sudo vi /etc/pptpd.conf

Configure local DNS servers in /etc/ppp/pptpd-options. For example, you could add public DNS servers provided by Google.

$ sudo vi /etc/ppp/pptpd-options

Configure user authentication using CHAP in /etc/ppp/chap-secrets. In this example, "alice" is a client's user name, "pptpd" is server, "dfs" is secret, and "*" represents the allowed IP addresses of clients. In this case, any IP address is allowed.

$ sudo vi /etc/ppp/chap-secrets
alice pptpd dfs *

Restart pptpd daemon:

$ sudo /etc/init.d/pptpd restart (Debian or Ubuntu)
$ sudo service pptpd restart (CentOS, RHEL or Fedora)

Optionally, if the VPN server is behind a proxy, you need to set up port forwarding on tcp port 1723, which is used for VPN control channel.

Set Up a PPTP VPN Client on Windows XP

Create a virtual private network connection.

Go to "Properties", choose "Security" tab, and mark "Advanced (custom settings)". In the custom settings, choose "Maximum strength encryption (disconnect if server declines)". If you do not perform this last step, you may get the following error in PPTP VPN server side (in /var/log/syslog).

GRE: Bad checksum from pppd" error on the PPTP VPN server side

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

3 thoughts on “How to set up a PPTP VPN connection between Linux and Windows XP

  1. Thanks for sharing this such a great information! I really appreciate your work. I shared this awesome PPTP VPN information to my all facebook and twitter friends because this link helps for everyone.

Leave a comment

Your email address will not be published. Required fields are marked *

Current ye@r *