Closed bastelfreak closed 1 month ago
we can have sets of IP addresses in nftables, no?
e.g. ip daddr { 192.168.5.1, 192.168.5.2, 192.168.5.3 }
is legal. couldn't we just concatenate those?
yes nftables supports sets. I just had no time to implement it to cast arrays into sets (and if someone else want's to do that, that would be awesome).
Hi, I'm currently switching from our ferm module to nftables. The ferm module has the big advantage that I can pass an array of IPv4 and IPv6 addresses as source and destination and it will create proper rules. That's not possible with nftables::simplerule and I think it would be a big advantage. I poked a bit around in the template but I'm not really sure about the best way to implement this. Maybe someone else has an idea. At least passing and array of Ipv4 or IPv6 addresses would help.
Example with ferm from our wireguard module:
https://github.com/voxpupuli/puppet-wireguard/blob/a69ae4a30b8afe4b86b3f84d5f0262553a453944/manifests/interface.pp#L127-L140
and now with nftables: