14 lines
341 B
Puppet
14 lines
341 B
Puppet
class firewall::rules::in::cobbler (
|
|
Array[Stdlib::Port] $ports = [25150,25151],
|
|
Array[Enum['tcp','udp']] $protocols = ['udp','tcp'],
|
|
) {
|
|
|
|
$ports.each |$port| {
|
|
$protocols.each |$proto| {
|
|
nftables::rule { "default_in-cobbler_${proto}_${port}":
|
|
content => "${proto} dport ${port} accept",
|
|
}
|
|
}
|
|
}
|
|
}
|