官方wiki:http://wiki.openwrt.org/doc/howto/vpn.server.pptpd#prerequisites
20190220更新:PPTP VPN协议已经被 IOS 10及以后的版本取消了
前提是用opkg安装的pptpd
#######/etc/config/pptpd######
config service 'pptpd'
option enabled '1'
option localip '192.168.2.1'
option remoteip '192.168.2.20-30'
option nat '1'
option internet '1'
list dns '192.168.125.158'
list dns '218.2.135.1'
option mppe '1'
config login
option username 'admin'
option password 'admin'
option enabled '1'
option ipaddress '*'
config login
option enabled '1'
option username 'test'
option password 'test'
option ipaddress '*'
######/etc/firewall.user###########
iptables -A forwarding_rule -i ppp+ -j ACCEPT ## luci-app-pptpd
iptables -A forwarding_rule -o ppp+ -j ACCEPT ## luci-app-pptpd
iptables -A output_rule -o ppp+ -j ACCEPT ## luci-app-pptpd
iptables -A input_wan_rule -p tcp --dport 1723 -j ACCEPT ## luci-app-pptpd
iptables -A input_wan_rule -p tcp --dport 47 -j ACCEPT ## luci-app-pptpd
iptables -A input_wan_rule -p gre -j ACCEPT ## luci-app-pptpd
iptables -A input_rule -i ppp+ -j ACCEPT ## luci-app-pptpd
这里有luci-app-pptpd.ipk,可以用界面配置和查看在线用户,在trunk版安装完要重启router才见到界面
http://www.right.com.cn/forum/thread-135454-1-1.html