forked from freifunk-franken/firmware
fff-firewall: Flush all installed tables.
With this patch all installed tables are flushed. We no longer have to worry about the modules installed or not. (nat, mangle ...) Signed-off-by: Robert Langhammer <rlanghammer@web.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
09450bc4b5
commit
f8645e494f
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=fff-firewall
|
PKG_NAME:=fff-firewall
|
||||||
PKG_RELEASE:=7
|
PKG_RELEASE:=8
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,5 @@
|
||||||
ebtables -F
|
ebtables -F
|
||||||
ebtables -X
|
ebtables -X
|
||||||
|
|
||||||
iptables -F
|
iptables-save | awk '/^[*]/ { print $1 } /^:[A-Z]+ [^-]/ { print $1 " ACCEPT" ; } /COMMIT/ { print $0; }' | iptables-restore
|
||||||
iptables -X
|
ip6tables-save | awk '/^[*]/ { print $1 } /^:[A-Z]+ [^-]/ { print $1 " ACCEPT" ; } /COMMIT/ { print $0; }' | ip6tables-restore
|
||||||
|
|
||||||
ip6tables -F
|
|
||||||
ip6tables -X
|
|
||||||
|
|
Loading…
Reference in New Issue