#configure mpd users
set user admin password ### 设置 mpd 的访问帐号及密码,通过 telnet 或 web 访问时需要此帐号
#set user foo1 bar1
#configure the console
set console self 127.0.0.1 5005
set console open
#configure the web server
set web self 0.0.0.0 5006
set web open
#Mpd as a PPTP server compatible with Microsoft Dial-Up Networking clients.
#Suppose you have a private Office LAN numbered 192.168.1.0/24 and the
#machine running mpd is at 192.168.1.1, and also has an externally visible
#IP address of 1.2.3.4.
#We want to allow a client to connect to 1.2.3.4 from out on the Internet
#via PPTP. We will assign that client the address 192.168.1.50 and proxy-ARP
#for that address, so the virtual PPP link will be numbered 192.168.1.1 local
#and 192.168.1.50 remote. From the client machine's perspective, it will
#appear as if it is actually on the 192.168.1.0/24 network, even though in
#reality it is somewhere far away out on the Internet.
#
#Our DNS server is at 192.168.1.3 and our NBNS (WINS server) is at 192.168.1.4.
#If you don't have an NBNS server, leave that line out.
#Define dynamic IP address pool.
set ippool add pool1 172.16.0.100 172.16.0.199 # 此处是配置vpn客户端分配的ip地址池
#Create clonable bundle template named B
create bundle template B
set iface enable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
#Specify IP address pool for dynamic assigment.
set ipcp ranges 172.16.0.1/32 ippool pool1 # 此处是配置vpn客户端分配的ip地址的网关
set ipcp dns 218.108.248.200 ### 设置 dns
#set ipcp nbns 192.168.1.4 ###如果你用不到 wins 的话,可以注释掉这块,
#The five lines below enable Microsoft Point-to-Point encryption
#(MPPE) using the ng_mppc(8) netgraph node type.
set bundle enable compression
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless
#Create clonable link template named L
create link template L pptp
#Set bundle template to use
set link action bundle B
#Multilink adds some overhead, but gives full 1500 MTU.
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap eap
set link enable chap
#We can use use RADIUS authentication/accounting by including
#another config section with label 'radius'.
#load radius
set link keep-alive 10 60
#We reducing link mtu to avoid GRE packet fragmentation.
set link mtu 1460
#Configure PPTP
set pptp self 202.101.8.18 ###设置 pptp 的监听 ip 地址,也就是你的网卡的 IP 地址
#Allow to accept calls
set link enable incoming
好了,that's all。