nftables sets with timeouts
Dynamic nftables sets with a timeout keep short-lived state in the firewall without a userspace daemon.
Dynamic sets with a timeout are a neat way to keep short-lived state in the firewall without a userspace daemon.
set seen { type ipv4_addr; flags dynamic, timeout; timeout 1h; }
Elements expire on their own; nft list set shows the remaining time.