PPTP SERVER

Introduction
This is a very basic down and dirty guide to get a VPN server up and running in no less than 5 minutes.

Install the server
First off we need to emerge the pptpd server.

Configure the Server
Right, so first of we need to edit the file /etc/pptpd.conf, we need to define our local IP for the server, as well as the IP range for the VPN to use.

/etc/pptpd.conf

Now we need to create a pptpd-options file

And make it look something like (please note 0.0.0.0 should be replaced with your actual DNS server IP)

/etc/ppp/pptpd-options

Now we need to setup some users, edit the file /etc/ppp/chap-secrets, for this example the username would be "foo" with the password "bar" accessible from any IP, to specify an IP for a user, replace * with the IP address/range.

/etc/ppp/chap-secrets

Now, the final change we need to make is to allow packet forwarding, edit /etc/sysctl.conf.

Currently it will read

/etc/sysctl.conf

Change the 0 to a 1 to allow packet forwarding /etc/sysctl.conf

Then apply the changes

Now all thats left to-do is start the pptpd deamon and log in!