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