fender.m4: Provide NTP service to untrusted clients.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 15 Jun 2016 00:18:52 +0000 (01:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 15 Jun 2016 00:19:16 +0000 (01:19 +0100)
e.g., national, which has been languishing...

fender.m4

index b9ce79f..5f9597d 100644 (file)
--- a/fender.m4
+++ b/fender.m4
@@ -33,6 +33,14 @@ 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.
+iptables -A inbound -p udp -j ACCEPT \
+       --source-port 123 --destination-port 123 \
+       -s 172.29.198.0/23
+ip6tables -A inbound -p udp -j ACCEPT \
+       --source-port 123 --destination-port 123 \
+       -s 2001:470:9740::/48
+
 ## Guaranteed black hole.  Put this at the very front of the chain.
 run iptables -I INPUT -d 212.13.198.78 -j DROP
 run ip6tables -I INPUT -d 2001:ba8:0:1d9::ffff -j DROP