Moving from ipset to nftables
Jump to navigation
Jump to search
If you are moving from iptables to nftables and you used ipset, some considerations should be taken into account.
- There are no translation/compat tools right now to help in the task. This may change in the future.
- ipset uses explicit set types, like hash:net,port,net which you need to translate to nftables native data types (like ipv4_addr . inet_service . ipv4_addr)
- nftables support mappings and dictionaries, so you could take actions directly from matching elements in the set.
In most cases, direct equivalencies can be found of ipset features. In most cases, it worth evaluating nftables native features to benefit from them when migrating from ipset to nftables.