PPTP VPN on FreeBSD 6.2

Prerequisites:

FreeBSD (Base + Autoconf, Automake, Bash and GCC)
Kernel Options
IPFW

PopTop PPTP VPN Server on FreeBSD

# Install PopTop from FreeBSD Ports
cd /usr/ports/net/poptop
make install clean

# Edit pptpd.conf
vi /etc/pptpd.conf

# Edit ppp.conf
vi /etc/ppp/ppp.conf

# Edit secure
vi /etc/ppp/secure

# Edit ppp.secret
vi /etc/ppp/ppp.secret

# Ensure IP Forwarding is enabled
sysctl net.inet.ip.forwarding=1

# Edit /etc/rc.conf file
vi /etc/rc.conf


# Start pptpd via command line (Or start via Webmin)
/usr/local/etc/rc.d/pptpd start

# Verify that it start successfully (Look for: tcp 0 0 0.0.0.0:1723 0.0.0.0:* LISTEN)
netstat -a -n
sockstat -4
tail -f /var/log/messages


# Remember: PPTP uses tcp port 1723 and protocol 47 (GRE) - Make sure your firewall supports this setup

 

# More needed... like configuration... section not yet completed! 5/19/2007