root / manifests / rules / wireguard.pp @ 9d1ee648
Historique | Voir | Annoter | Télécharger (256 octets)
1 | 09cba182 | Steve Traylen | # @summary manage in wireguard |
---|---|---|---|
2 | # @param ports wiregueard port |
||
3 | 11bf7237 | Steve Traylen | class nftables::rules::wireguard ( |
4 | 94a80621 | Steve Traylen | Array[Stdlib::Port,1] $ports = [51820], |
5 | ca24c673 | tr | ) { |
6 | 11bf7237 | Steve Traylen | nftables::rule { |
7 | ca24c673 | tr | 'default_in-wireguard': |
8 | content => "udp dport {${join($ports,', ')}} accept", |
||
9 | } |
||
10 | } |