telecaster.m4: Rate-limit incoming ICP.
[firewall] / telecaster.m4
index 716e6b1..dd278b8 100644 (file)
@@ -31,8 +31,11 @@ allowservices inbound tcp \
        ident \
        ftp ftp_data \
        rsync \
-       http https squid \
-       git
+       http https squid
+
+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