4 ancina,zandonai,zelenka: {
9 chopin,franck,gluck,kaufmann,kassia,klecker,lobos,merikanto,morricone,raff,ravel,ries,rietz,saens,schein,senfl,stabile,steffani,valente,villa,wieck: {
15 chopin,franck,gluck,kassia,klecker,lobos,morricone,ravel,raff,ries,rietz,saens,schein,steffani,valente,villa,wieck: {
22 @ferm::rule { "dsa-udd-stunnel":
23 description => "port 8080 for udd stunnel",
24 rule => "&SERVICE_RANGE(tcp, http-alt, ( 192.25.206.16 70.103.162.29 217.196.43.134 ))"
29 @ferm::rule { "dsa-dhcp":
30 description => "Allow dhcp access",
31 rule => "&SERVICE(udp, 67)"
33 @ferm::rule { "dsa-tftp":
34 description => "Allow tftp access",
35 rule => "&SERVICE(udp, 69)"
39 @ferm::rule { "dsa-puppet":
40 description => "Allow puppet access",
41 rule => "&SERVICE_RANGE(tcp, 8140, \$HOST_DEBIAN_V4)"
43 @ferm::rule { "dsa-puppet-v6":
45 description => "Allow puppet access",
46 rule => "&SERVICE_RANGE(tcp, 8140, \$HOST_DEBIAN_V6)"
50 @ferm::rule { "dsa-powell-v6-tunnel":
51 description => "Allow powell to use V6 tunnel broker",
52 rule => "proto ipv6 saddr 212.227.117.6 jump ACCEPT"
54 @ferm::rule { "dsa-powell-btseed":
56 description => "Allow powell to seed BT",
57 rule => "proto tcp dport 8000:8100 jump ACCEPT"
59 @ferm::rule { "dsa-powell-rsync":
60 description => "Hoster wants to sync from here, and why not",
61 rule => "&SERVICE_RANGE(tcp, rsync, ( 195.20.242.90 192.25.206.33 82.195.75.106 206.12.19.118 ))"
65 @ferm::rule { "dsa-syslog":
66 description => "Allow syslog access",
67 rule => "&SERVICE_RANGE(tcp, 5140, \$HOST_DEBIAN_V4)"
69 @ferm::rule { "dsa-syslog-v6":
71 description => "Allow syslog access",
72 rule => "&SERVICE_RANGE(tcp, 5140, \$HOST_DEBIAN_V6)"
76 @ferm::rule { "dsa-hkp":
78 description => "Allow hkp access",
79 rule => "&SERVICE(tcp, 11371)"
85 description => "Allow smtp access",
86 rule => "&SERVICE(tcp, 25)"
90 @ferm::rule { "dsa-bind":
92 description => "Allow nameserver access",
93 rule => "&TCP_UDP_SERVICE(53)"
95 @ferm::rule { "dsa-finger":
97 description => "Allow finger access",
98 rule => "&SERVICE(tcp, 79)"
100 @ferm::rule { "dsa-ldap":
101 domain => "(ip ip6)",
102 description => "Allow ldap access",
103 rule => "&SERVICE(tcp, 389)"
105 @ferm::rule { "dsa-ldaps":
106 domain => "(ip ip6)",
107 description => "Allow ldaps access",
108 rule => "&SERVICE(tcp, 636)"
116 case $hostname { rautavaara,luchesi: {
117 @ferm::rule { "dsa-to-kfreebsd":
118 description => "Traffic routed to kfreebsd hosts",
119 chain => 'to-kfreebsd',
120 rule => 'proto icmp ACCEPT;
121 source ($FREEBSD_SSH_ACCESS $HOST_NAGIOS_V4) proto tcp dport 22 ACCEPT;
122 source ($HOST_MAILRELAY_V4 $HOST_NAGIOS_V4) proto tcp dport 25 ACCEPT;
123 source ($HOST_MUNIN_V4 $HOST_NAGIOS_V4) proto tcp dport 4949 ACCEPT;
124 source ($HOST_NAGIOS_V4) proto tcp dport 5666 ACCEPT;
125 source ($HOST_NAGIOS_V4) proto udp dport ntp ACCEPT;
128 @ferm::rule { "dsa-from-kfreebsd":
129 description => "Traffic routed from kfreebsd vlan/bridge",
130 chain => 'from-kfreebsd',
131 rule => 'proto icmp ACCEPT;
132 proto tcp dport (21 22 80 53 443) ACCEPT;
133 proto udp dport (53 123) ACCEPT;
134 proto tcp dport 8140 daddr 82.195.75.104 ACCEPT; # puppethost
135 proto tcp dport 5140 daddr 82.195.75.98 ACCEPT; # loghost
136 proto tcp dport (25 submission) daddr ($HOST_MAILRELAY_V4) ACCEPT;
142 @ferm::rule { "dsa-routing":
143 description => "forward chain",
146 def $ADDRESS_FASCH=194.177.211.201;
147 def $ADDRESS_FIELD=194.177.211.210;
148 def $FREEBSD_HOSTS=($ADDRESS_FASCH $ADDRESS_FIELD);
151 mod state state (ESTABLISHED RELATED) ACCEPT;
152 interface vlan11 outerface eth0 jump from-kfreebsd;
153 interface eth0 destination ($FREEBSD_HOSTS) jump to-kfreebsd;
154 ULOG ulog-prefix "REJECT FORWARD: ";
155 REJECT reject-with icmp-admin-prohibited;
160 @ferm::rule { "dsa-routing":
161 description => "forward chain",
164 def $ADDRESS_FANO=206.12.19.110;
165 def $ADDRESS_FINZI=206.12.19.111;
166 def $FREEBSD_HOSTS=($ADDRESS_FANO $ADDRESS_FINZI);
169 mod state state (ESTABLISHED RELATED) ACCEPT;
170 interface br0 outerface br0 ACCEPT;
172 interface br2 outerface br0 jump from-kfreebsd;
173 interface br0 destination ($FREEBSD_HOSTS) jump to-kfreebsd;
174 ULOG ulog-prefix "REJECT FORWARD: ";
175 REJECT reject-with icmp-admin-prohibited;
183 # vim:set sts=4 ts=4:
184 # vim:set shiftwidth=4: