How to configure PPTP on your VPS

You can enable PPP via the Farbyte VPS Control Panel..

After it has been enabled, login into your VPS and type:
cat /dev/ppp

If the ppp has been enabled successfully, the command will return something like:
cat: /dev/ppp: No such device or address

If it is not, the command will say something like Permission denied. In this case you may need to reboot the VPS. If that doesn't work, please contact Support.

Now login into your VPS and install ppp server.

For example, on Ubuntu:

apt-get install pptpd

Edit the /etc/pptpd.conf

Uncomment the localip and remoteip lines and change them to something like this:

localip
remoteip 10.66.7.1-100

Edit the /etc/ppp/pptpd-options

Uncomment the ms-dns and change it to OpenDNS or any DNS servers that you would like to use:

ms-dns 208.67.222.222
ms-dns 208.67.220.220

Now add new chap secrets in /etc/ppp/chap-secrets

If you have not changed the name in /etc/ppp/pptpd-options, add in an account with the following format:

usernamepptpdpasswordallow-address

Example: paul     pptpd     changeme     *

After you had done with configuring the pptpd server, you will need to setup your firewall to make it work with the internet.

Firewall settings, type in the command to send the NAT to route traffic to your external IP:

iptables -t nat -A POSTROUTING -j SNAT --to-source

To save the command:

iptables-save

To enable it at boot-time, we need to save our current iptables to be loaded on boot time. Here is a script to do that, you will just need to copy and paste it in your SSH console:

iptables-save > /etc/iptables-up.rules
cat > /etc/network/if-pre-up.d/iptablesload <<end
#!/bin/sh
iptables-restore < /etc/iptables-up.rules
END
chmod +x /etc/network/if-pre-up.d/iptablesload

Next, enable FORWARDING. Enabling forwarding, makes the entire network available to us when we are connected to the VPN server and not just as a local client connected to the VPN server. If you don't enable forwarding, you will not be able to browse the web through the connected VPN connection. If your intention is to surf or connect to a UK server to watch TV show on BBC.co.uk, you will need to enable forwarding.

To enable FORWARDING, you will need to edit /etc/sysctl.conf and find net.ipv4.ip_forward to have it uncommented:

net.ipv4.ip_forward=1

To enable it, type in the command:

sysctl -p

  • 85 Users Found This Useful
Was this answer helpful?

Related Articles

Can I Upgrade VPS Resources and Options

You can upgrade your VPS resources and options by: Logging into farbyte.uk Click the VPS you...

Where Are The Support Boundaries With Unmanaged VPS?

Our unmanaged VPS support responsibility covers the following: Initially ensuring the VPS is...

Do Farbyte Block Ports To VPS?

We do not block outgoing ports from your VPS. However, some commonly abused bot / hacker...

How Can I Change My OpenVZ VPS Package?

Please ensure your current VPS is using less disk storage than the package you wish to change to...

Can I create a swap file with OpenVZ VPS?

It is not possible to create a swap file within a VPS when using our OpenVZ VPS.However, at...