Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / manifests / rules / dns.pp @ 30462da1

Historique | Voir | Annoter | Télécharger (282 octets)

1
# manage in dns
2
class nftables::rules::dns(
3
  Array[Integer,1]
4
    $ports = [53],
5
) {
6
  nftables::rule{
7
    'default_in-dns_tcp':
8
      content => "tcp dport {${join($ports,', ')}} accept";
9
    'default_in-dns_udp':
10
      content => "udp dport {${join($ports,', ')}} accept";
11
  }
12
}