puppet-prod/modules/firewall/manifests/rules/in/consul.pp
Ben Vincent ce12303576 feat: add firewall module
- add nftables/ipset modules
- add custom firewall module
2024-11-03 03:32:20 +11:00

11 lines
236 B
Puppet

class firewall::rules::in::consul (
Array[Stdlib::Port] $ports = [8300,8301,8302,8500,8503,8600],
) {
$ports.each |$port| {
nftables::rule { "default_in-consul_${port}":
content => "tcp dport ${port} accept",
}
}
}