diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-23 12:25:57 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-23 12:25:57 +0000 |
commit | 3dfbfb9eeb3c8d154f80111cdadc4a45d154727c (patch) | |
tree | 72f5657c80f55119548200943e428b1a363973d9 /package/firewall/files | |
parent | d9ac523b000536698ba5be5a9d8b69f6e356f1d3 (diff) | |
download | upstream-3dfbfb9eeb3c8d154f80111cdadc4a45d154727c.tar.gz upstream-3dfbfb9eeb3c8d154f80111cdadc4a45d154727c.tar.bz2 upstream-3dfbfb9eeb3c8d154f80111cdadc4a45d154727c.zip |
[package] firewall: prevent ip6tables -t nat rules (#10265)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28535 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall/files')
-rw-r--r-- | package/firewall/files/lib/fw.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh index a8a7911494..7922d222f8 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() { |