don't clear the mangle table in the default firewall script
[openwrt.git] / openwrt / package / base-files / default / etc / init.d / S45firewall
index c998601..8c67d82 100755 (executable)
@@ -5,13 +5,13 @@ ${FAILSAFE:+exit}
 
 . /etc/functions.sh
 . /etc/network.overrides
-[ -e /etc/config/network ] && . /etc/config/network
+[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
 
 WAN=$(nvram get wan_ifname)
 LAN=$(nvram get lan_ifname)
 
 ## CLEAR TABLES
-for T in filter nat mangle; do
+for T in filter nat; do
   iptables -t $T -F
   iptables -t $T -X
 done
This page took 0.022699 seconds and 4 git commands to generate.