Puppet Class: nftables::rules::out::wireguard

Defined in:
manifests/rules/out/wireguard.pp

Summary

manage out wireguard

Overview

Parameters:

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

    specify wireguard ports



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

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