openwrt 之 pptp client 配置
配置三个步骤:
1. 配置内核参数
2. 配置防火墙
3. 配置pptp接口
# 配置内核参数
sysctl net.netfilter.nf_conntrack_helper=1
/etc/init.d/sysctl restart
# 配置防火墙
uci rename firewall.@zone[0]="lan"
uci rename firewall.@zone[1]="wan"
uci del_list firewall.wan.network="vpn"
uci add_list firewall.wan.network="vpn"
uci commit firewall
/etc/init.d/firewall restart
# Configure network 配置network
uci -q delete network.vpn
uci set network.vpn="interface"
uci set network.vpn.proto="pptp"
uci set network.vpn.server="192.168.10.111"
uci set network.vpn.username="test"
uci set network.vpn.password="1234"
uci set network..ipv6="1"
uci commit network
/etc/init.d/network restart
注意: pptp network配置文件中server, username, password配置为自己参数即可