2025-01-30 16:11:12 +01:00
|
|
|
class net::nftables {
|
|
|
|
$nftables_rules = lookup('sunet::nftables::allow::rules', Hash, 'deep', {})
|
2025-01-30 16:05:39 +01:00
|
|
|
|
2025-01-30 16:11:12 +01:00
|
|
|
$nftables_rules.each |$name, $params| {
|
|
|
|
sunet::nftables::allow { $name:
|
|
|
|
* => $params,
|
|
|
|
}
|
2025-01-30 16:05:39 +01:00
|
|
|
}
|
2025-01-30 16:11:12 +01:00
|
|
|
|
2025-01-30 16:05:39 +01:00
|
|
|
}
|