Open fw to test source

This commit is contained in:
Magnus Andersson 2024-10-30 14:04:58 +01:00
parent 25c7b772c7
commit b1aa8a8fb8
Signed by: mandersson
GPG key ID: 1F7C896B34B28164

View file

@ -1,4 +1,15 @@
class matrix::lb (
) {
$ips = lookup('sourceips', undef, undef, undef)
$ips = lookup('sourceips', undef, undef, undef)
$ips.each | String $ip | {
if $::facts['sunet_nftables_enabled'] == 'yes' {
sunet::nftables::allow { "nft_testip${ip}":
port => 8443,
from => $ip,
}
}
notify { 'test':
message => "Test test test ${ip}",
}
}
}