root / manifests / rules / out / mdns.pp @ f9de4dee
Historique | Voir | Annoter | Télécharger (463 octets)
1 | 6b350264 | Tim Meusel | # |
---|---|---|---|
2 | # @summary allow outgoing multicast DNS |
||
3 | # |
||
4 | # @param ipv4 Allow mdns over IPv4 |
||
5 | # @param ipv6 Allow mdns over IPv6 |
||
6 | # |
||
7 | class nftables::rules::out::mdns ( |
||
8 | Boolean $ipv4 = true, |
||
9 | Boolean $ipv6 = true, |
||
10 | ) { |
||
11 | if $ipv4 { |
||
12 | nftables::rule { 'default_out-mdns_v4': |
||
13 | content => 'ip daddr 224.0.0.251 udp dport 5353 accept', |
||
14 | } |
||
15 | } |
||
16 | if $ipv6 { |
||
17 | nftables::rule { 'default_out-mdns_v6': |
||
18 | content => 'ip6 daddr ff02::fb udp dport 5353 accept', |
||
19 | } |
||
20 | } |
||
21 | } |