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 | aa43abb8d10f5cb52d1607415cf2be30f888a19c (patch) | |
tree | 22098d734b0cafb0f81d3adad388be91ad93f5dd /package/firewall/files/lib/fw.sh | |
parent | 31aac3c47e6ef76b97281a75c29fe46ddfa39d32 (diff) | |
download | master-187ad058-aa43abb8d10f5cb52d1607415cf2be30f888a19c.tar.gz master-187ad058-aa43abb8d10f5cb52d1607415cf2be30f888a19c.tar.bz2 master-187ad058-aa43abb8d10f5cb52d1607415cf2be30f888a19c.zip |
[package] 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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27500 3c298f89-4303-0410-b956-a3cf2f4a3e73
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" |