Projet

Général

Profil

Révision a98c98d4

IDa98c98d44cd0fa58d4f15ecaca7c2c21e610f05e
Parent 40b19655
Enfant d4de1bfe

Ajouté par tr il y a plus de 4 ans

Add in/out rules for Tor

Voir les différences:

manifests/rules/out/tor.pp
1
# manage out tor
2
class nftables::rules::out::tor {
3
  nftables::filter::chain::rule{
4
    'default_out-tor':
5
      content => 'tcp dport 9001 accept',
6
  }
7
}
manifests/rules/tor.pp
1
# manage in tor
2
class nftables::rules::tor(
3
  Array[Integer,1]
4
    $ports = [9001],
5
) {
6
  nftables::filter::chain::rule{
7
    'default_in-tor':
8
      content => "tcp dport {${join($ports,', ')}} accept",
9
  }
10
}

Formats disponibles : Unified diff