Révision a98c98d4
Add in/out rules for Tor
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