diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-06 22:10:46 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-06 22:10:46 +0000 |
commit | dd4934a943d4de4fd4a85620889276bc0c8bdcc5 (patch) | |
tree | 955f4b7e063e835b43d38e694232e28cd423d18e /package/firewall/files/lib/fw.sh | |
parent | 302347e4d45ef075007817e1c53732b0a348ac9b (diff) | |
download | master-31e0f0ae-dd4934a943d4de4fd4a85620889276bc0c8bdcc5.tar.gz master-31e0f0ae-dd4934a943d4de4fd4a85620889276bc0c8bdcc5.tar.bz2 master-31e0f0ae-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.sh | 2 |
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" |