Projet

Général

Profil

Révision 8227cb1c

ID8227cb1c4504f87d9f6d669bd7bdded546a39b35
Parent cb50fd79
Enfant e73f2e97

Ajouté par tr il y a plus de 4 ans

Manage rule in dns

Voir les différences:

manifests/rules/dns.pp
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
}

Formats disponibles : Unified diff