aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files/lib/fw.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-06 22:10:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-06 22:10:46 +0000
commitdd4934a943d4de4fd4a85620889276bc0c8bdcc5 (patch)
tree955f4b7e063e835b43d38e694232e28cd423d18e /package/firewall/files/lib/fw.sh
parent302347e4d45ef075007817e1c53732b0a348ac9b (diff)
downloadupstream-dd4934a943d4de4fd4a85620889276bc0c8bdcc5.tar.gz
upstream-dd4934a943d4de4fd4a85620889276bc0c8bdcc5.tar.bz2
upstream-dd4934a943d4de4fd4a85620889276bc0c8bdcc5.zip
firewall: - solve scoping issues when multiple values are used, thanks Daniel Dickinson - ignore src_port/dest_port for proto icmp rules, ignore icmp_type for non-icmp rules - properly handle icmp when proto is given in numerical form (1, 58) - support negated icmp types
SVN-Revision: 27500
Diffstat (limited to 'package/firewall/files/lib/fw.sh')
-rw-r--r--package/firewall/files/lib/fw.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh
index 647bcd6a54..a13eb7eb13 100644
--- a/package/firewall/files/lib/fw.sh
+++ b/package/firewall/files/lib/fw.sh
@@ -166,7 +166,7 @@ fw__exec() { # <action> <family> <table> <chain> <target> <position> { <rules> }
while [ $# -gt 1 ]; do
# special parameter handling
case "$1:$2" in
- -p:icmp*|--protocol:icmp*)
+ -p:icmp*|-p:1|-p:58|--protocol:icmp*|--protocol:1|--protocol:58)
[ "$app" = ip6tables ] && \
cmdline="$cmdline -p icmpv6" || \
cmdline="$cmdline -p icmp"