[cc lang="bash"]
\$ apt-get install pptpd bcrelay
\$ vi /etc/pptpd.conf
\$ vi /etc/ppp/pptpd-options
\$ vi /etc/ppp/chap-secrets
\$ /etc/init.d/pptpd restart
\$ netstat -tulnp | grep pptpd
[/cc]
/etc/pptpd.conf
[cc lang="bash"]
listen 10.20.30.40
option /etc/ppp/pptpd-options
logwtmp
localip 192.168.20.1
remoteip 192.168.20.101-200
[/cc]
/etc/ppp/pptpd-options
[cc lang="bash"]
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
nodefaultroute
lock
nobsdcomp
[/cc]
/etc/ppp/chap-secrets
[cc lang="bash"]
# Secrets for authentication using CHAP
# client server secret IP addresses
test pptpd test *
[/cc]