Monday, September 14, 2009

Nietzsche: VPN Server

Nietzsche is up and running as a VPN server!

I used pptpd. Nietzsche is running Xubuntu Hardy Heron.


Install

sudo apt-get install pptpd

Add Users

sudo vim /etc/ppp/chap-secrets
The format is:
username    pptpd     password

Edit pptpd.conf

sudo vim /etc/pptpd.conf
Add lines similar to these
localip 192.168.1.72
remoteip 192.168.1.200-253
localip is the IP for the VPN server. remoteip are the IPs that will be given to the VPN clients. I'm using unused IPs.

Edit pptpd-options

sudo vim /etc/ppp/pptpd-options
 uncomment #ms-dns 10.0.0.1. Change 10.0.0.1 to your DNS server or router

Edit sysctl

sudo vim /etc/sysctl.conf
Add the following lines
net.ipv4.conf.default.forwarding=1
net.ipv4.conf.all.forwarding=1

Restart

sudo /etc/init.d/pptpd restart
Your server should be up and running.

0 comments:

Post a Comment