OpenWrt 18.06 内网PPTP无法拨号的修复

May 10, 2019 | 分类:Linux

安装软件包:

opkg update
opkg install ppp-mod-pptp kmod-nf-nathelper-extra
opkg install luci-proto-ppp
opkg install kmod-ipt-raw

在/etc/firewall.user增加规则:

iptables -t raw -A OUTPUT -p tcp -m tcp --dport 1723 -j CT --helper pptp

重启firewall就可以PPTP拨号了。


OpenWrt 18.0.1请参考此链接:
http://flfq.peuland.com/index.php/2018/08/31/openwrt-pptp-not-work-18-0-1-不能正常工作/

install pptp

opkg update
opkg install ppp-mod-pptp kmod-nf-nathelper-extra
opkg install luci-proto-ppp
opkg install nano
edit /etc/firewall.user

add code
nano /etc/firewall.user
iptables -t raw -A OUTPUT -p tcp -m tcp --dport 1723 -j CT --helper pptp

add crypto support
opkg list |grep kmod-crypto |awk '{print $1}' |xargs opkg install
reboot
Tags: VPN, openwrt, pptp

评论已关闭