X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fferm%2Ftemplates%2Fdefs.conf.erb;h=bb0a4f62eea8c36a7cd4f9894f3a9e08da68a88a;hb=68c43332bd8e3538bceeba05dd9fd90fc8f92a51;hp=ae637fe048a24751dea825a0569e44c738010ac6;hpb=98e2801edd59d7ffe82d2fe8bda10727d3079263;p=mirror%2Fdsa-puppet.git diff --git a/modules/ferm/templates/defs.conf.erb b/modules/ferm/templates/defs.conf.erb index ae637fe04..bb0a4f62e 100644 --- a/modules/ferm/templates/defs.conf.erb +++ b/modules/ferm/templates/defs.conf.erb @@ -15,6 +15,10 @@ proto (tcp udp) mod state state (NEW) dport $port ACCEPT; } +@def &TCP_UDP_SERVICE_RANGE($port, $srange) = { + proto (tcp udp) mod state state (NEW) dport $port @subchain "$port" { saddr ($srange) ACCEPT; }" +} + @def $HOST_MAILRELAY_V4 = (<%= mailrelay = [] localinfo.keys.sort.each do |node| @@ -164,6 +168,7 @@ @def $HOST_DEBIAN = ($HOST_DEBIAN_V4 $HOST_DEBIAN_V6); @def $sgran = (91.103.132.24/29 85.158.45.51/32); +@def $sgran = ($sgran 94.195.192.0/19); # Temporarily on O2 ADSL @def $weasel = (); @def $weasel = ($weasel 86.59.118.144/28); # debian@sil @def $weasel = ($weasel 86.59.21.32/29); # anguilla1 @@ -174,7 +179,7 @@ @def $zobel = ($zobel 87.139.82.80/32); # exit.credativ.com @def $zobel = ($zobel 87.193.134.192/27); # credativ qsc @def $zobel = ($zobel 78.47.2.104/29); # baldur, bragi, saga -@def $luca = (); +@def $luca = (64.71.152.109); @def $DSA_IPS = ($sgran $weasel $zobel $luca); @def $sgran6 = (2001:4b10:100b::/48); @@ -190,13 +195,11 @@ @def $luca6 = (); @def $DSA_V6_IPS = ($sgran6 $weasel6 $zobel6 $luca6); -@def $USER_kibi = (); -@def $USER_kibi = ($USER_kibi 90.80.97.98); # gruyere.kerlabs.com -@def $USER_kibi = ($USER_kibi 88.164.242.219); # home.ikibiki.org -@def $USER_kibi = ($USER_kibi 82.244.158.68); # @parents' +@def $USER_christoph = (); +@def $USER_christoph = ($USER_christoph 212.114.250.148/31); @def $USER_aurel32 = (); @def $USER_aurel32 = ($USER_aurel32 88.191.126.93); # hall.aurel32.net @def $USER_aurel32 = ($USER_aurel32 82.232.2.251); # farad.aurel32.net @def $FREEBSD_SSH_ACCESS = (); -@def $FREEBSD_SSH_ACCESS = ($FREEBSD_SSH_ACCESS $DSA_IPS $USER_kibi $USER_aurel32); +@def $FREEBSD_SSH_ACCESS = ($FREEBSD_SSH_ACCESS $DSA_IPS $USER_christoph $USER_aurel32); @def $FREEBSD_SSH_ACCESS = ($FREEBSD_SSH_ACCESS 194.177.211.200); # grieg