Puppet Class: nftables::rules::tor

Defined in:
manifests/rules/tor.pp

Summary

manage in tor

Overview

Parameters:

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

    ports for tor



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

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