From 9e369291b66f2d991ed6043aafc435e7624f9b55 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 14 Jun 2021 16:46:00 +0200 Subject: [PATCH] exit_ip: add rate limit to v6 nd values were provided by awlnx --- roles/exit_ip/templates/rules.v6.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/exit_ip/templates/rules.v6.j2 b/roles/exit_ip/templates/rules.v6.j2 index 158a650..155a479 100644 --- a/roles/exit_ip/templates/rules.v6.j2 +++ b/roles/exit_ip/templates/rules.v6.j2 @@ -6,4 +6,6 @@ :FORWARD ACCEPT [0:0] -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu :OUTPUT ACCEPT [0:0] +-A OUTPUT -o br-{{ site_code }} -p icmpv6 --icmpv6-type 135 -m limit --limit 200/sec -j ACCEPT +-A OUTPUT -o br-{{ site_code }} -p icmpv6 --icmpv6-type 135 -j DROP COMMIT