You can enable PPP via the Farbyte VPS Control Panel..
After it has been enabled, login into your VPS and type:
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:
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:
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:
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:
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
iptables-restore < /etc/iptables-up.rules
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:
To enable it, type in the command: