From: Jo-Philipp Wich Date: Sun, 23 Oct 2011 12:25:57 +0000 (+0000) Subject: firewall: prevent ip6tables -t nat rules (#10265) X-Git-Tag: reboot~15808 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=204bf6e5fef681cf4658edb9223ce1fa2a079ace;p=openwrt%2Fstaging%2Fblogic.git firewall: prevent ip6tables -t nat rules (#10265) SVN-Revision: 28535 --- diff --git a/package/firewall/Makefile b/package/firewall/Makefile index 8ce0295ee54e..637d0ecccb8b 100644 --- a/package/firewall/Makefile +++ b/package/firewall/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=firewall PKG_VERSION:=2 -PKG_RELEASE:=38 +PKG_RELEASE:=39 include $(INCLUDE_DIR)/package.mk diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh index a8a791149478..7922d222f8da 100644 --- a/package/firewall/files/lib/fw.sh +++ b/package/firewall/files/lib/fw.sh @@ -74,7 +74,8 @@ fw__exec() { # { } fw__rc $(($? & 1)) return fi - fw__rc 0 + [ "$app" != ip6tables ] || [ "$tab" != nat ] + fw__rc $? } fw__err() {