Setting up a PPTP VPN in Linux
PPTP or PopTop is a vpn implementation that is rather similar to OpenVPN. The difference is that PPTP is quite a bit less secure than OpenVPN, as it is not encrypted. That said, if you need quick VPN solution that’s easy and hassle free to set up, PPTP is the obvious choice.
The test system here is Debian 6.0 Squeeze (x64). The basic steps are the same; just use your own distro’s package manager instead.
We first need to get the software itself installed. This can be achieved using the following command:
sudo apt-get install pptpd
That will install the PPTP daemon and some of its dependencies. Wait for it to finish, it shouldn’t take long.
After that, we just need to configure it a bit. The default PPTP configuration file is located at /etc/pptpd.conf. This may vary according to your distro, the debian package also specifies /etc/ppp/pptpd-options
Let’s get down to configuring the server, shall we? Open up pptpd.conf in your favorite text editor. We only need to add two lines to it, they’re as follows:
The Local IP is the IP address of the server, remoteip specifies the IPs the vpn will assign its clients. Feel free to change them around as seen fit.
Next, move onto /etc/ppp/pptpd-options. This file defines some global settings for the pptp server to use. I’m pasting mine below, configure it as needed.
Be sure to change the ms-dns directive to your router or server’s dns server. Only thing left now is to configure the users who can use the VPN. This is done by editing the /etc/ppp/chap-secrets file.
This is what the default template looks like:
# client server secret IP addresses
user * password *
Specify your users according to that format and you’re almost done. Only one thing needs to be done now, that is giving the pptp server a restart.
With that, your pptp server setup is complete. If you run into any problems, take a look at /var/log/syslog. Whatever went wrong will be logged there.
You can connect to this VPN server from almost any VPN client that exists. PPTP is very common nowadays.
Thanks to convexity for this Post
Like us on Facebook
We need your assistance to stay live
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Install Power Commands 0.1.5 On Ubuntu 14.04/13.10/12.10/12.04 : Power Commands, power management application created by the Atareao team , this app helps users to...0 comments |
- Install Uget Download Manager In Ubuntu, Fedora, Debian : uGet is a very light-weight and powerful open source download manager. On March 4th, 2014 Uget Do...0 comments |
- Install Crashplan backup tool in Linux : CashPlan is an automated backup solution that either uses the CrashPlan Central server or any other ...0 comments |
- Download Elementary OS 'Luna' Official Wallpapers : Hi Guys, Am a great lover of Elementary OS, so I like to move almost everywhere with some its beaut...0 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install Uget Download Manager In Ubuntu, Fedora, Debian
- Download Elementary OS ‘Luna’ Official Wallpapers
- Install Power Commands 0.1.5 On Ubuntu 14.04/13.10/12.10/12.04
- 5 Android Apps that’s Going to Make Running Your Business Less Stressful
- Puppet agent Install Using Script
- Install Corosync and Pacemaker On CentOS 6.5
- Install Fail2Ban On Ubuntu Server 13.04/13.10
- How To Install Google Chrome in Fedora 20, 19, 18
- How to surf using Tor Browser Bundle
- New Games got Greenlit on Linux by Steam Today!
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .