X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/08926d25f80fecabb4ef2b3f1e63b3a361ecdb59..8670c87d52da8c68fa8fb99ff1d4976d4a72675a:/ibanez.m4 diff --git a/ibanez.m4 b/ibanez.m4 index c8083e9..4d6d24e 100644 --- a/ibanez.m4 +++ b/ibanez.m4 @@ -22,40 +22,26 @@ ### 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) - -###-------------------------------------------------------------------------- -### Network interfaces. - -m4_divert(44)m4_dnl -## Interface definitions. -if_dmz=br-dmz -if_trusted=br-unsafe -if_safe=$if_dmz,$if_trusted -if_untrusted=$if_dmz,$if_trusted -if_vpn=$if_dmz,$if_trusted -if_iodine=$if_dmz,$if_trusted -if_its_mz=$if_dmz,$if_trusted -if_its_pi=$if_dmz,$if_trusted - -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:470:9740::/48 + m4_divert(-1) ###----- That's all, folks --------------------------------------------------