X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/1ee6211dcd0063197621004e6c7073bd801b8efe..d8e50664d13e3ad4818841f514970380e4e78e55:/ibanez.m4 diff --git a/ibanez.m4 b/ibanez.m4 index 384bd17..617200b 100644 --- a/ibanez.m4 +++ b/ibanez.m4 @@ -22,34 +22,29 @@ ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ###-------------------------------------------------------------------------- -### Config settings. - -## This host isn't a router. -setconf(forward, 0) - -###-------------------------------------------------------------------------- -### Network interfaces. - -m4_divert(44)m4_dnl -## Interface definitions. -if_untrusted=br0 -if_trusted=br0 -if_vpn=br0 -if_iodine=br0 -if_its_mz=br0 -if_its_pi=br0 - -m4_divert(-1) -###-------------------------------------------------------------------------- ### ibanez-specific rules. -m4_divert(82)m4_dnl +m4_divert(86)m4_dnl ## Externally visible services. allowservices inbound tcp \ - ssh + 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. +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:ba8:1d9::/48 +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 --------------------------------------------------