Hey, The issue with PPTP on the WAN side (at least as experienced with my ISP) is that when the tunnel disconnects or times-out, if the keep-alive option is set to true the pppd process would fire up another instance of the pptp connection script to bring up the tunnel again, although it seems that there is a conflict since (if debugging log is enabled) it is shown that the pptp client is timing-out on LCP connection requests.
For this reason I have added a script to /etc/ppp/ip-down.d/ to kill all connections, and if keep-alive option is set to true then to bring up the wan interface again. I have written it just a couple of minutes ago so it hasn't been tested but I am guessing the syntax is the only issue with it, if any so please review and apply the patch for the next build. r...@openwrt:/etc/ppp# cat /etc/ppp/ip-down.d/shutdown-pptp.sh #!/bin/sh # # WAN PPTP connection handling script # # 20th December, 2008. # Liran Tal <liran....@gmail.com> . /etc/functions.sh config_load network config_get proto wan proto if [ "$proto" = "pptp" ]; then killall pptp; killall pppd; kill -9 `cat /var/run/ppp0.pid`; fi config_get redial wan ppp_redial if [ "$redial" = "persist" ]; then /sbin/ifup wan; fi Jeremy, I'd appreciate if you could push this to SVN, thanks. Regards, Liran Tal. _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel