Hello.
pptpd.postconf script do not working for me. If i start this script manually all ok, but if it start automatically files pptpd.conf, ip-up or ip-down dosen't modifed. How can i fix it?
pptpd.postconf :
log:
pptpd.postconf script do not working for me. If i start this script manually all ok, but if it start automatically files pptpd.conf, ip-up or ip-down dosen't modifed. How can i fix it?
pptpd.postconf :
Code:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_insert "if [ \"\$PEERNAME\" = \"rk1\" ]; then" "iptables -D INPUT -i \$1 -j ACCEPT; iptables -I INPUT -s 192.168.111.6 -j ACCEPT" /tmp/pptpd/ip-up
pc_insert "if [ \"\$PEERNAME\" = \"rk1\" ]; then" "iptables -D FORWARD -i \$1 -j ACCEPT; iptables -I FORWARD 2 -s 192.168.111.6 -j ACCEPT" /tmp/pptpd/ip-up
pc_append "if [ \"\$PEERNAME\" = \"rk1\" ]; then; iptables -D INPUT -s 192.168.111.6 -j ACCEPT; iptables -D FORWARD -s 192.168.111.6 -j ACCEPT; fi" /tmp/pptpd/ip-down
log:
Code:
Sep 6 00:05:58 custom script: Running /jffs/scripts/pptpd.postconf (args: /tmp/pptpd/pptpd.conf)
Sep 6 00:05:58 pptpd[1772]: MGR: Config file not found!