And BanIP has already left iptables is moving on to nftables right now.
There are others too, for example opennds and nodogsplash and possibly coovachilli, where populating ipsets is an option that provides additional functionality.
So is opennds and I heard mwan3 was being worked on.
The problem is that outside OpenWrt, iptables et al seems to be universally transparently supported, leaving little incentive for package developers to convert.
The issue I have is that dropping ipset support from dnsmasq-full was not announced in any way likely to be seen. I only found out after many hours of debugging trying to determine why ipsets had stopped working.
Looking at the commit linked above by @hnyman it seems that proper ipset support in dnsmasq was dropped as a consequence of keeping compatibility with legacy fw3 ipset config in the new fw4.
Now not withstanding that this is generally a "good thing" from the typical inexpert user point of view, it has the consequences we see here. In my opinion, the change should have been to introduce "nftsets" into the config, allowing ipset support to be left enabled in dnsmasq-full.
Now we are left with the confusing apparent compatibility of fw4 with genuine ipsets, where in fact it uses nftsets internally. But this is just my opinion - in the long term, it probably does not matter.
Perhaps we also need an interim dnsmasq-completely-full package version
There is always the ipset-dns package. It has fallen into the unmaintained category since the addition of ipsets into dnasmasq-full way back in ~2017, but I wonder if it still works.....
Not sure if they are in the same boat,
pbr can operate in nft/nft set or iptables/ipset mode, so it can provide same functionality without ipset.
I argued for the same: https://github.com/openwrt/openwrt/pull/11073#issuecomment-1291196588, you can also see the response below.
Mmm. Not invented here syndrome?
I wrote another paragraph but thought better of it and deleted it again.
For crowdsec-firewall-bouncer a new version is coming (PR just accepted) which does not use ipset any more.
Help me understand this. Consider I'm a noob here, please
I am using OpenWRT with dnsmaq-full and MWAN3 in my setup. the purpose I use MWAN3 is that I have two WAN connections that I want to route traffic based on two basic rules. I am using IPSets
I have a 4G WAN connection and I only want to route social media traffic on this connection whilst I route everything else on my Fibre link.
this has been working fine for several months now. But two weeks back I updated OWRT to the latest version and after reading this thread, I am confused about whether MWAN3 is properly working or not. By the looks of it it does, Some traffic flows through the 4G connection. But I am worried if IPSETS isn't supported anymore, what actions should I take?
really appreciate your support, advice
TL;DR If you were using ipsets populated by Dnsmasq:
- On OpenWrt, it will no longer work.
- If you are on any other flavour of Linux it will continue to work just fine.
It should work with nftables too.
so if i revert back to the previous version of OWRT should it work?
The point here is that the ability of dnasmasq to automatically populate an ipset has been removed from dnsmasq-full (only here in OpenWrt and not other flavours of Linux).
So unfortunately auto-populating an ipset by dnsmasq does not now work at all.
Any packages that use this functionality will have problems, possibly even causing them to fail.
This was done apparently to enable a simple "emulation" of the old ipset support from fw3 in fw4, allowing old fw3 ipset configs to be used unchanged in fw4, with no consideration for packages that use dnsmasq to populate their own ipsets.
There is an argument that all packages that use iptables should be immediately migrated to nftables or become defunct, but that is outside the scope of this thread.....
Thank you for this thread. I've been working on an x64 setup of openwrt to replace pfsense for a week. This is the last piece to match feature for feature for my setup and I as banging my head against a wall on this.
I'm hoping this is resolved soon. I can't wait to move openwrt from the lab to production.
The problem here isn't so much that this has happened. The real problem is that this happens without any discussion with stakeholders. The change just happened, boom, no open discussion, no consultation as to whether this will hurt users. Decision made, change made, no announcement, just suddenly broken packages that users have to debug. This isn't the way an open source community is supposed to work.
This is beyond the fact that nftrables, yes ten years old that it may be, still isn't prime-time ready and the major distributions have every compatibility layer still in place for very, very good reasons.
There is no problem with migrating from iptables to nftables.
All the compatability tools exist to help.
But the decision was made to deliberately break those tools by default, ie
- Introducing the nasty hack of iptables-zz-legacy as the default instead of iptables-nft
- Deliberately breaking ipset auto-population with the excuse that "the word ipset just means a set of ip addresses".
- There are other changes along the same lines but I will not mention them here for now.
These things were done apparently ignoring the certainty that some packages would be broken.
It could be argued that this would force effected packages to be updated and that could be a good thing, but I have not found any discussion of this anywhere.