I recently installed Ubuntu Linux on a home server (I hate that word, but it best describes what it is, so). Anyway, I’d like to be able to create a VPN network between my home server and my MacbookPro, which might be anywhere in the world.
This first part of the tutorial describes how to setup a VPN server in Ubuntu.
First, install the
pptpd offers a
PPTP-type VPN which is
supported by Microsoft and other network vendors. This is also the easiest to
sudo apt-get install pptpd
Next up, edit
sudo vi /etc/pptp.conf. At the bottom add the following lines:
localip 192.168.1.10 remoteip 192.168.1.230-239
localip references the IP of my home server. The
configures which IPs remote clients may use when the connect through VPN to my
network. In this case I reserve 10 IP address: 192.168.1.230 through
With that out of the way, let’s tell
PPTP which users to allow. Edit
/etc/ppp/chap-secrets, just like you did before using
# client server secret IP Address ariejan pptpd somepassword *
That’s all! Yes, seriously. Just restart the
pptpd daemon and you’re good to
Now, go and watch my PPTP VPN setup for Mac OS X Snow Leopard
Note: This was tested on Ubuntu 10.10-amd64
Want to keep reading and learn more? I've got you
covered with a hand picked selection of awesome books.