PPTPd VPN - Debian

Utworzono: 14 grudzień 2015

apt-get install pptpd

/etc/pptpd.conf

localip 172.17.17.17

remoteip 172.17.17.26-30

/etc/ppp/pptpd-options

name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 8.8.8.8
proxyarp
nodefaultroute
lock
nobsdcomp
mtu 1490
mru 1490

 

/etc/ppp/chap-secrets

login <tab> pptpd <tab> secretPassword <tab>*

/etc/sysctl.conf

net.ipv4.ip_forward=1

 

sysctl -p

firewall

# PPTPd
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i ppp0 -o eth0 -j ACCEPT

 

Debug

pptpd -d -f -c /etc/pptpd.conf