X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/78af294cd1005453cf8b7a0dda4593ba101b345e..HEAD:/fender.m4 diff --git a/fender.m4 b/fender.m4 index 05354bd..ebabf07 100644 --- a/fender.m4 +++ b/fender.m4 @@ -24,7 +24,7 @@ ###-------------------------------------------------------------------------- ### fender-specific rules. -m4_divert(82)m4_dnl +m4_divert(86)m4_dnl ## Externally visible services. allowservices inbound tcp \ ssh \ @@ -33,5 +33,13 @@ allowservices inbound tcp \ ## We have to provide NTP service. The guests sync to our clock. ntpclient inbound $ntp_servers +## Provide NTP service to untrusted clients. +run ip46tables -A inbound-untrusted -p udp -j ACCEPT \ + --source-port 123 --destination-port 123 + +## Guaranteed black hole. Put this at the very front of the chain. +run iptables -I INPUT -d 217.169.12.78 -j DROP +run ip6tables -I INPUT -d 2001:8b0:c92:fff::ffff -j DROP + m4_divert(-1) ###----- That's all, folks --------------------------------------------------