aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-08-14 00:33:29 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-08-14 00:33:29 +0000
commitf1e7045d309e2d88c18de5e41af9e40e801bd7ec (patch)
tree55161204f7ade433023a918d9a2799b2921c1662 /package/firewall/files
parent3aa922d33cf8b0e63925a45a8ae38e2bfcd9a96f (diff)
downloadupstream-f1e7045d309e2d88c18de5e41af9e40e801bd7ec.tar.gz
upstream-f1e7045d309e2d88c18de5e41af9e40e801bd7ec.tar.bz2
upstream-f1e7045d309e2d88c18de5e41af9e40e801bd7ec.zip
firewall: further tune ICMPv6 default rules according to RFC4890 (#9893)
SVN-Revision: 27979
Diffstat (limited to 'package/firewall/files')
-rw-r--r--package/firewall/files/firewall.config16
-rw-r--r--package/firewall/files/reflection.hotplug2
2 files changed, 17 insertions, 1 deletions
diff --git a/package/firewall/files/firewall.config b/package/firewall/files/firewall.config
index b47823fe2d..5a5dfd0186 100644
--- a/package/firewall/files/firewall.config
+++ b/package/firewall/files/firewall.config
@@ -44,6 +44,22 @@ config rule
option target ACCEPT
# Allow essential incoming IPv6 ICMP traffic
+config rule
+ option src wan
+ option proto icmp
+ list icmp_type echo-request
+ list icmp_type destination-unreachable
+ list icmp_type packet-too-big
+ list icmp_type time-exceeded
+ list icmp_type bad-header
+ list icmp_type unknown-header-type
+ list icmp_type router-solicitation
+ list icmp_type neighbour-solicitation
+ option limit 1000/sec
+ option family ipv6
+ option target ACCEPT
+
+# Allow essential forwarded IPv6 ICMP traffic
config rule
option src wan
option dest *
diff --git a/package/firewall/files/reflection.hotplug b/package/firewall/files/reflection.hotplug
index 15e350082a..1feb21075a 100644
--- a/package/firewall/files/reflection.hotplug
+++ b/package/firewall/files/reflection.hotplug
@@ -102,7 +102,7 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
local p
for p in ${proto:-tcp udp}; do
case "$p" in
- tcp|udp)
+ tcp|udp|6|17)
iptables -t nat -A nat_reflection_in \
-s $lanip/$lanmk -d $exthost \
-p $p $extport \