2. config pptpd
-----------------------------------
vi /etc/pptpd.conf
#debug
option /etc/ppp/options.pptpd
localip 192.168.10.1
remoteip 192.168.10.2-99
speed 1152000
stimeout 10
#localip & remoteip are not needed, ip management is done by pppd
--------------------------------------------
vi /etc/ppp/options.pptpd
auth
name "pptp-server"
lcp-echo-failure 3
lcp-echo-interval 60
default-asyncmap
mtu 1482
mru 1482
nobsdcomp
nodeflate
#noproxyarp
#nomppc
chapms-strip-domain
# Otherwise, your chap-secret file will have to include "DOMAIN\\user" instead of user.
mppe required,no40,no56,stateless
require-mschap-v2
refuse-chap
refuse-mschap
refuse-eap
refuse-pap
ms-dns 192.168.1.1
#plugin radius.so
#radius-config-file /etc/radius.conf
-----------------------------------------------------------
最後修改你pptp用戶名及密碼,格式: username空格*空格password空格*