12 lines
254 B
Puppet
12 lines
254 B
Puppet
class firewall::rules::out::ntp (
|
|
String $ipset = 'ntp',
|
|
Array[Stdlib::Port] $ports = [123],
|
|
) {
|
|
|
|
$ports.each |$port| {
|
|
nftables::rule { "default_out-ntp_udp_${port}":
|
|
content => "udp dport ${port} ip daddr @${ipset} accept",
|
|
}
|
|
}
|
|
}
|