]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/roles/manifests/sip.pp
try concatenation
[dsa-puppet.git] / modules / roles / manifests / sip.pp
index 4133b77c934dbc64b980ac748e5e7e67a211be29..b2700307ce055864477a5d12eb808f5a637ce1f6 100644 (file)
@@ -1,22 +1,72 @@
 class roles::sip {
-       @ferm::rule { 'sip-ws':
+       include concat::setup
+
+       ssl::service { 'www.debian.org':
+               # TODO notify concat
+       }
+
+       # TODO concatate in the ssl module?
+       concat { '/etc/ssl/debian/certs/www.debian.org-chained.crt':
+       }
+       concat::fragment { '/etc/ssl/debian/certs/www.debian.org.crt':
+               target      => '/etc/ssl/debian/certs/www.debian.org-chained.crt',
+               source      => 'file:///etc/ssl/debian/certs/www.debian.org.crt',
+               order       => 00,
+       }
+       concat::fragment { '/etc/ssl/debian/certs/www.debian.org.crt-chain':
+               target      => '/etc/ssl/debian/certs/www.debian.org-chained.crt',
+               source      => 'file:///etc/ssl/debian/certs/www.debian.org.crt-chain',
+               order       => 99,
+       }
+
+       @ferm::rule { 'dsa-sip-ws-ip4':
                domain      => 'ip',
-               description => 'SIP over WebSocket (for WebRTC)',
-               rule        => 'proto tcp mod state state (NEW) dport (443)'
+               description => 'SIP connections (WebSocket; for WebRTC)',
+               rule        => 'proto tcp dport (443) ACCEPT'
        }
-       @ferm::rule { 'sip':
+       @ferm::rule { 'dsa-sip-ws-ip6':
+               domain      => 'ip6',
+               description => 'SIP connections (WebSocket; for WebRTC)',
+               rule        => 'proto tcp dport (443) ACCEPT'
+       }
+       @ferm::rule { 'dsa-sip-tls-ip4':
                domain      => 'ip',
                description => 'SIP connections (TLS)',
-               rule        => 'proto tcp mod state state (NEW) dport (5061)'
+               rule        => 'proto tcp dport (5061) ACCEPT'
+       }
+       @ferm::rule { 'dsa-sip-tls-ip6':
+               domain      => 'ip6',
+               description => 'SIP connections (TLS)',
+               rule        => 'proto tcp dport (5061) ACCEPT'
        }
-       @ferm::rule { 'turn':
+       @ferm::rule { 'dsa-turn-ip4':
+               domain      => 'ip',
+               description => 'TURN connections',
+               rule        => 'proto udp dport (3478) ACCEPT'
+       }
+       @ferm::rule { 'dsa-turn-ip6':
+               domain      => 'ip6',
+               description => 'TURN connections',
+               rule        => 'proto udp dport (3478) ACCEPT'
+       }
+       @ferm::rule { 'dsa-turn-tls-ip4':
                domain      => 'ip',
                description => 'TURN connections (TLS)',
-               rule        => 'proto tcp mod state state (NEW) dport (5349)'
+               rule        => 'proto tcp dport (5349) ACCEPT'
        }
-       @ferm::rule { 'rtp':
+       @ferm::rule { 'dsa-turn-tls-ip6':
+               domain      => 'ip6',
+               description => 'TURN connections (TLS)',
+               rule        => 'proto tcp dport (5349) ACCEPT'
+       }
+       @ferm::rule { 'dsa-rtp-ip4':
                domain      => 'ip',
                description => 'RTP streams',
-               rule        => 'proto udp mod state state (NEW) dport (49152:65535)'
+               rule        => 'proto udp dport (49152:65535) ACCEPT'
+       }
+       @ferm::rule { 'dsa-rtp-ip6':
+               domain      => 'ip6',
+               description => 'RTP streams',
+               rule        => 'proto udp dport (49152:65535) ACCEPT'
        }
 }