Skip to content

Commit

Permalink
add icinga2 rule for outgoing traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHoenscheid committed Sep 15, 2024
1 parent e338551 commit 4dc9451
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions manifests/rules/out/icinga2.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# allow outgoing icinga2
# @param ports icinga2 ports
class nftables::rules::out::icinga2 (
Array[Stdlib::Port,1] $ports = [5665],
) {
nftables::rule {
'default_out-icinga2':
content => "tcp dport {${join($ports,', ')}} accept",
}
}

0 comments on commit 4dc9451

Please sign in to comment.