Step 1: Installing and setting up PPTPD on Ubuntu Server
sudo apt-get install pptpd
Next it's time to configure your settings on your pptpd server with the file '''/etc/pptpd.conf'''
sudo nano /etc/pptpd.conf
Find the bottom lines that say
or something like that. We need to uncomment these lines, and change the ip addresses so they look something like this
The localip should be the address your router assigns to your server (make sure that your server receives a static ip), while the remoteip should be a range within your routers assignment range, but out of the normal assignment range
i.e. my local ip is 192.168.0.100 whereas my router assigns ip addresses between the ranges of 192.168.0.1-101, so i would set up my configuration like
the remote ip is outside of my routers normal range, but still within the total range.
Step 2: Find your DNS
sudo nano /etc/resolv.conf
You should see an ip address there, write it down. Now we need to let pptpd use that DNS. Edit the file pptpd-options
sudo nano /etc/ppp/pptpd-options
and find the lines
uncomment these lines, and replace the ip 10.0.0.1 with the ip address you wrote down earlier so it should look something like