summaryrefslogtreecommitdiff
path: root/package/firewall/files/lib/fw.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-23 12:25:57 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-23 12:25:57 +0000
commit204bf6e5fef681cf4658edb9223ce1fa2a079ace (patch)
treec68d82b6134a4537e411824ff27d20ab2fc2202f /package/firewall/files/lib/fw.sh
parent69df551be3c39d96f87d34855dd98a19fb650a93 (diff)
downloadmtk-20170518-204bf6e5fef681cf4658edb9223ce1fa2a079ace.zip
mtk-20170518-204bf6e5fef681cf4658edb9223ce1fa2a079ace.tar.gz
mtk-20170518-204bf6e5fef681cf4658edb9223ce1fa2a079ace.tar.bz2
firewall: prevent ip6tables -t nat rules (#10265)
SVN-Revision: 28535
Diffstat (limited to 'package/firewall/files/lib/fw.sh')
-rw-r--r--package/firewall/files/lib/fw.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh
index a8a7911..7922d22 100644
--- a/package/firewall/files/lib/fw.sh
+++ b/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() {