3 ssl::service { 'debian.org':
5 notify => Service['repro'],
9 ssl::service { 'sip-ws.debian.org':
10 notify => Service['repro'],
14 dnsextras::tlsa_record{ 'tlsa-xmpp':
16 certfile => "/etc/puppet/modules/ssl/files/servicecerts/www.debian.org.crt",
17 port => [5061, 5222, 5269],
21 @ferm::rule { 'dsa-xmpp-client-ip4':
23 description => 'XMPP connections (client to server)',
24 rule => 'proto tcp dport (5222) ACCEPT'
26 @ferm::rule { 'dsa-xmpp-client-ip6':
28 description => 'XMPP connections (client to server)',
29 rule => 'proto tcp dport (5222) ACCEPT'
31 @ferm::rule { 'dsa-xmpp-server-ip4':
33 description => 'XMPP connections (server to server)',
34 rule => 'proto tcp dport (5269) ACCEPT'
36 @ferm::rule { 'dsa-xmpp-server-ip6':
38 description => 'XMPP connections (server to server)',
39 rule => 'proto tcp dport (5269) ACCEPT'
42 @ferm::rule { 'dsa-sip-ws-ip4':
44 description => 'SIP connections (WebSocket; for WebRTC)',
45 rule => 'proto tcp dport (443) ACCEPT'
47 @ferm::rule { 'dsa-sip-ws-ip6':
49 description => 'SIP connections (WebSocket; for WebRTC)',
50 rule => 'proto tcp dport (443) ACCEPT'
52 @ferm::rule { 'dsa-sip-tls-ip4':
54 description => 'SIP connections (TLS)',
55 rule => 'proto tcp dport (5061) ACCEPT'
57 @ferm::rule { 'dsa-sip-tls-ip6':
59 description => 'SIP connections (TLS)',
60 rule => 'proto tcp dport (5061) ACCEPT'
62 @ferm::rule { 'dsa-turn-ip4':
64 description => 'TURN connections',
65 rule => 'proto udp dport (3478) ACCEPT'
67 @ferm::rule { 'dsa-turn-ip6':
69 description => 'TURN connections',
70 rule => 'proto udp dport (3478) ACCEPT'
72 @ferm::rule { 'dsa-turn-tls-ip4':
74 description => 'TURN connections (TLS)',
75 rule => 'proto tcp dport (5349) ACCEPT'
77 @ferm::rule { 'dsa-turn-tls-ip6':
79 description => 'TURN connections (TLS)',
80 rule => 'proto tcp dport (5349) ACCEPT'
82 @ferm::rule { 'dsa-rtp-ip4':
84 description => 'RTP streams',
85 rule => 'proto udp dport (49152:65535) ACCEPT'
87 @ferm::rule { 'dsa-rtp-ip6':
89 description => 'RTP streams',
90 rule => 'proto udp dport (49152:65535) ACCEPT'
93 file { '/etc/monit/monit.d/50rtc':
101 package { 'freeradius':
104 service { 'freeradius':
107 $radius_password = hkdf('/etc/puppet/secret', "rtc-${::hostname}-radius-password")
108 file { '/etc/freeradius/3.0/sites-available/rtc.debian.org':
109 content => template('roles/rtc/freeradius-rtc.erb'),
113 file { '/etc/freeradius/3.0/sites-enabled/rtc.debian.org':
115 target => '../sites-available/rtc.debian.org',
117 file { '/etc/freeradius/3.0/mods-available/passwd_rtc':
118 source => 'puppet:///modules/roles/rtc/freeradius-mod-passwd-rtc',
122 file { '/etc/freeradius/3.0/mods-enabled/passwd_rtc':
124 target => '../mods-available/passwd_rtc',
126 file { '/etc/repro/radius-servers':
127 content => inline_template('localhost/localhost <%= @radius_password %>'),
130 notify => Service['repro'],
132 file { '/etc/freeradius/3.0/sites-enabled/default':
135 file { '/etc/freeradius/3.0/sites-enabled/inner-tunnel':