Build up a PPTP server

1. apt-get install pptpd

2. set username pptpd password “*” into /etc/ppp/chap-secrets

3. set the following iptables rules

iptables -A INPUT -p gre -j ACCEPT
iptables -A INPUT -p tcp –dport 1723 -j ACCEPT
iptables -t nat -A POSTROUTING -s xxx.xxx.xxx.0/24 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

Leave a Reply