From a88692b74d2fcb561de02ac81fd595c6d0d0f75d Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 6 May 2013 12:34:16 +0100 Subject: [PATCH] telecaster.m4: Rate-limit incoming ICP. --- telecaster.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/telecaster.m4 b/telecaster.m4 index 4e3763d..dd278b8 100644 --- a/telecaster.m4 +++ b/telecaster.m4 @@ -32,8 +32,10 @@ allowservices inbound tcp \ ftp ftp_data \ rsync \ http https squid -allowservices inbound udp \ - icp + +run iptables -A inbound -j ACCEPT \ + -p udp --destination-port $port_icp \ + -m limit --limit 10/second --limit-burst 100 ## Other interesting things. dnsresolver inbound -- 2.11.0