Puppet Class: nftables::rules::wireguard

Defined in:
manifests/rules/wireguard.pp

Summary

manage in wireguard

Overview

Parameters:

  • ports (Array[Stdlib::Port,1]) (defaults to: [51820])

    wiregueard port



3
4
5
6
7
8
9
10
# File 'manifests/rules/wireguard.pp', line 3

class nftables::rules::wireguard (
  Array[Stdlib::Port,1] $ports = [51820],
) {
  nftables::rule {
    'default_in-wireguard':
      content => "udp dport {${join($ports,', ')}} accept",
  }
}