I am dealing with the same issue. I upgraded my Flint2 firmware to OpenWRT v24. The firewall rules are either stock or implemented using LUCI, except for one. Following the "iptables overview" link in the warning banner, looks like there is one rule showing traffic "match-set GL_MAC_BLOCK src". However, this does not correspond to anything in the /etc/config/firewall.
Since you must have been coming from the stock (gl-inet) firmware, you should reset to defaults. The vendor fork has options and syntax that is not compatible with official openwrt.
Ruleset looks sane on surface though (no fool-cone, just offloads enabled)
What is in
ubus call system board
nft list ruleset | grep xt
iptables-nft-save # if command does not exist ignore
ip6tabes-nft-save # dito
iptables-legacy-save # dito
ip6tables-legacy-save # ddd
OK, there it is - rule not from fw4 uses ipset.
Save config
reset to defaults
Type back wifi and network
unzip archive
copy /etc/config/firewall as is.
Lines such as this have no meaning in the official OpenWrt firmware. Like I said before, the settings from the GL-inet version of the firmware are not compatible with official OpenWrt. Simply reset to defaults and configure from scratch.
In this case, the next step is to simply rebuild from scratch. There is no use trying to 'fix' the issues with importing the GL-inet configs into OpenWrt as many of them are meaningless without their underlying changes to the firmware and/or other config elements (that also don't work on OpenWrt).
(This was a rule that could be made in fw3, but this is because fw3 exposed the iptables CLI "extra arguments" - as I believe they were called. But alas, it did not expose ipsets yet.)
Hahaha...ohhhhhh @brada4 , I have bricked this thing and locked myself out so many times trying to get it setup, I must've done the reset, unzip, copy back in config more than 20 times. This legacy rules thing is always there. Fixing one messed up rule does seem much simpler that rebuilding the OS. I'd give it a try, if I knew what you meant by fw4 check
Rebuilding from scratch is a bit daunting, but if there's not a simpler fix, then I'm already in this deep, why not? The promise of full UCI command line syntax would be nice, trying to navigate the GL-iNet BusyBox subset is a constant game of not found
Yeah, very sloppy and bad form. Given that the rest of the config needs to be recreated, what is it in the gl-inet firewall that you believe is worth "saving" that is not covered by the existing default OpenWrt config and/or easily added when configuring fresh? Keep in mind, it's more work to extract a single file and move it over than to just use the defaults.
...what a mess! So I did this - backup config, install sysupgrade. I can happily report that the legacy firewall warning banner has disappeared. However, trying to unzip the backup bricks the router, requiring a full reset.
So now I have an absolutely barebones OpenWRT install, with a blank slate for configs.
To top it off, can't even start installing packages because even okpg update fails
I guess I'll return back to this thread for firewall troubleshooting after I figure out how to fix all the other new problems.
You actively chose to ignore the sane advice of resetting to OpenWrt factory defaults and NOT restoring an incompatible and known-broken config backup. At this point you're left with two new-old options, either doing the reset properly this time or ignoring advice and meddling with it yourself (read, not here, we ain't interested in that self-inflicted pain; at least so far I haven't heard of any specific config that's so crucial to your well-being to justify this dance).
The firewall config is only one of the configs that are incompatible and actively harmful here (wireless and network will be next, among others(!)), you cannot move between OEM (and proprietary vendor drivers) and OpenWrt without a full reset and reconfiguring from scratch. Which is simpler and quicker than trying to find and fix all incompatible issues (and then still missing some crucial ones).
@slh , respectfully, I did not actively choose to ignore anything. I carefully read and considered each piece of advice provided, and then actively searched for and studied additional literature (in the official documentation) to try to do everything as best as I could. At this point, I have followed the instructions in the official OpenWRT guide to do a full sysupgrade 3 times (two methods, attended and not--then repeating the not after trying to unzip the backup), and then again following the official GL-iNET guide.
As far as specific configs - I want a functional firewall. Today's mission started out just trying to figure out why some devices that should be blocked at the MAC address level were still sending out DNS requests, which led to investigating the legacy banner, and now here I am trying to figure out how to rebuild an unfamiliar OS from scratch.