From b1aa8a8fb8cb0ed0f9ce5e1c4bb83951f8873e83 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Wed, 30 Oct 2024 14:04:58 +0100 Subject: [PATCH] Open fw to test source --- manifests/lb.pp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/manifests/lb.pp b/manifests/lb.pp index 355e994..99d9c36 100644 --- a/manifests/lb.pp +++ b/manifests/lb.pp @@ -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}", + } + } }