X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fferm%2Ftemplates%2Fdefs.conf.erb;h=78a200fd21a9a693d93e2a57971102b7260af138;hb=e6fdff95906ed66fdf80994e43ac500fa0d9311f;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..78a200fd2 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| @@ -174,7 +178,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 +194,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