X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/65157ef12a8118a41bf16f73e2c03ba1bc9da7a3..4e6ddce407aa82ee2726cb6419050799f228dabd:/openwrt/package/base-files/default/etc/init.d/S45firewall diff --git a/openwrt/package/base-files/default/etc/init.d/S45firewall b/openwrt/package/base-files/default/etc/init.d/S45firewall index c9986011a..8c67d82b1 100755 --- a/openwrt/package/base-files/default/etc/init.d/S45firewall +++ b/openwrt/package/base-files/default/etc/init.d/S45firewall @@ -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