Projet

Général

Profil

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

root / manifests / rules / wireguard.pp @ c2e342b2

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

1
# @summary manage in wireguard
2
# @param ports wiregueard port
3
class nftables::rules::wireguard (
4
  Array[Stdlib::Port,1] $ports = [51820],
5
) {
6
  nftables::rule {
7
    'default_in-wireguard':
8
      content => "udp dport {${join($ports,', ')}} accept",
9
  }
10
}