openwrt pptpd start 报错validation filed
生活随笔
收集整理的這篇文章主要介紹了
openwrt pptpd start 报错validation filed
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
大概是配置文件直接復制粘帖導致有看不見的奇怪字符串,老老實實修改好配置文件不留奇怪空格,就不報這個錯了。配置文件使用uci解析的,pptpd的配置文件在/etc/config/pptpd文件中,內容如下,
config service 'pptpd' option enabled '1' option localip '192.168.0.1' option remoteip '192.168.0.2-30' option nat '1' option internet '1' #list dns '192.168.1.1' #list dns '10.10.0.21' option mppe '1'config login option enabled '1' option username 'user2' option password 'dfsaf' option ipaddress '192.168.0.2'/etc/init.d/pptpd restart
/etc/init.d/pptpd start
都可以開啟pptpd服務器了
netstat -antp
查看1723端口有沒有開,開了就是運行了。
關于sh out of range 可看https://forum.openwrt.org/t/default-config-file-for-pptpd-lacks-logwtmp-option/4795
######/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———————————————— 版權聲明:本文為CSDN博主「d9394952」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。 原文鏈接:https://blog.csdn.net/d9394952/article/details/87868803?
總結
以上是生活随笔為你收集整理的openwrt pptpd start 报错validation filed的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android 6g 有必要吗,手机6g
- 下一篇: 南宁计算机等级考试报名点,2018年下半