Browse Source

firewall: prevent ip6tables -t nat rules (#10265)

SVN-Revision: 28535
Jo-Philipp Wich 14 years ago
parent
commit
204bf6e5fe
2 changed files with 3 additions and 2 deletions
  1. 1 1
      package/firewall/Makefile
  2. 2 1
      package/firewall/files/lib/fw.sh

+ 1 - 1
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
 

+ 2 - 1
package/firewall/files/lib/fw.sh

@@ -74,7 +74,8 @@ fw__exec() { # <action> <family> <table> <chain> <target> <position> { <rules> }
 			fw__rc $(($? & 1))
 			return
 		fi
-		fw__rc 0
+		[ "$app" != ip6tables ] || [ "$tab" != nat ]
+		fw__rc $?
 	}
 
 	fw__err() {