It’s probably that the configuration file is directly copied and pasted, resulting in invisible strange strings. If you honestly modify the configuration file without leaving strange spaces, you will not report this error. The configuration file is parsed by UCI. The configuration file of pptpd is in the/etc/config/pptpd file. The content is as follows,
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
Both can open pptpd server now
netstat -antp
Check if port 1723 is open, if it is open, it is running.
For sh out of range, see:
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
Read More:
- openwrt ipv6 nat6 ip6tables [How to Solve]
- [Solved] liquibase.exception.ValidationFailedException: Validation Failed
- [Solved] Error reported: org.springframework.validation.BeanPropertyBindingResult
- WPF path = (validation. Errors) [0]. Errorcontent reports a binding error
- stm32cubeAI “validation on target “ ERROR [How to Solve]
- [Rails 6] How to deal with ActiveRecord :: RecordInvalid: Validation failed:
- Android studio can’t start, running error: warning: crash service did not start
- [Solved] integrated swagger Start Error: Failed to start bean ‘documentationPluginsBootstrapper‘;
- [Solved] Springboot project Create to start Error: APPLICATION FAILED TO START
- [Exception] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
- CDH-hue : Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available
- IDEA Start Tomcat Error: Error running ‘start Tomcat‘: Can‘t find catalina.jar
- Anaconda start error resolution navigator start error
- [Solved] Playbook Start Nginx Error: Unable to start service nginx: Job for nginx.service fd with error code
- When installing zookeeper, you can view the process start, but the status display error: Error contacting service. It is probably not running
- [Solved] Docker Start nginx error: driver failed programming external connectivity on endpoint nginx
- [Solved] ERROR: for jms_koko Cannot start service koko: driver failed programming
- [Solved] Docker Start Error: iptables failed: iptables –wait -t nat -A DOCKER -p tcp -d 0/0 –dport 10241
- OpenCV VideoWriter Failed to Start [How to Solve]
- Oracle Start as DBA Error [How to Solve]