firewall: don't filter IPv4 ICMP types (#10928)

SVN-Revision: 30363
master
Jo-Philipp Wich 13 years ago
parent a543eeb0aa
commit 5609ad736e
  1. 2
      package/firewall/Makefile
  2. 5
      package/firewall/files/lib/fw.sh

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=firewall
PKG_VERSION:=2
PKG_RELEASE:=44
PKG_RELEASE:=45
include $(INCLUDE_DIR)/package.mk

@ -275,10 +275,7 @@ fw_check_icmptype4() {
export FW_ICMP4_TYPES=$(
iptables -p icmp -h 2>/dev/null | \
sed -n -e '/^Valid ICMP Types:/ {
n; :r;
/router-advertisement/d;
/router-solicitation/d;
s/[()]/ /g; s/[[:space:]]\+/\n/g; p; n; b r
n; :r; s/[()]/ /g; s/[[:space:]]\+/\n/g; p; n; b r
}' | sort -u
)

Loading…
Cancel
Save