openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.03k stars 3.5k forks source link

fail2ban still depends on iptables #25163

Closed peci1 closed 1 month ago

peci1 commented 1 month ago

Maintainer: @erdoukki Environment: git

Description: fail2ban still depends on iptables instead of firewall4.

It seems there are nftables configs installed with it, so it should be easy to switch the dependency. However, downstream users will need to manually re-specify their actions.

BKPepe commented 1 month ago

Several packages, including fail2ban are still using iptables for various reasons:

This issue is somehow duplicated to https://github.com/openwrt/packages/issues/16818, where you can find a list of packages that are still using iptables, and as you can see, it is a quite a shortlist. Any help is appreciated.

peci1 commented 2 days ago

I think the problem is just the declared dependency. fail2ban already provides nftables-based actions. So the only thing that is needed (AFAIK) is to drop the iptables dependency in OpenWRT. Is this a good way to proceed? Should I prepare a PR?