chiark / gitweb /
fender.m4, ibanez.m4, vampire.m4: Invoke `footables' via `run'.
[firewall] / ibanez.m4
index e50b56cc683a1f35bc3a28dd09dff754bbc1d7f8..d70b46e8dd6b546c873771ebcb840cd699bb7b9c 100644 (file)
--- a/ibanez.m4
+++ b/ibanez.m4
 ### along with this program; if not, write to the Free Software Foundation,
 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-###--------------------------------------------------------------------------
-### Config settings.
-
-## This host isn't a router.
-setconf(forward, 0)
-
-## This host is involved in a routing asymmetry.
-setconf(rp_filter, 0)
-setconf(log_martians, 0)
-
 ###--------------------------------------------------------------------------
 ### ibanez-specific rules.
 
-m4_divert(84)m4_dnl
+m4_divert(86)m4_dnl
 ## Externally visible services.
 allowservices inbound tcp \
        ssh \
        ident
+allowservices inbound udp \
+       udpkey
 
 ## We have to provide NTP service.  The guests sync to our clock.
 ntpclient inbound $ntp_servers
 
+## Provide NTP service to untrusted clients.
+run iptables -A inbound -p udp -j ACCEPT \
+       --source-port 123 --destination-port 123 \
+       -s 172.29.198.0/23
+run ip6tables -A inbound -p udp -j ACCEPT \
+       --source-port 123 --destination-port 123 \
+       -s 2001:ba8:1d9::/48
+run ip6tables -A inbound -p udp -j ACCEPT \
+       --source-port 123 --destination-port 123 \
+       -s 2001:8b0:c92::/48
+
 m4_divert(-1)
 ###----- That's all, folks --------------------------------------------------