You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose of tallow is to ban specific hosts. This ban should be
enacted as early as possible in the firwall, which is not achieved by
using "iptables -A", which *appends* at the end of the chain.
This patch ensures that the tallow rule is *inserted* at the top of the
INPUT chain, also matching the behavior implemented for firewall-cmd.
Fixes: clearlinux#22 ("iptables rules order")
One of the reasons I never did this originally was that once we hard code rule numbers, they can and absolutely will conflict with other firewall tools. So this change might just break existing deployments.
I'm not super against this, but it will have to be a new cmdline option to switch the behavior in this new way, or a config option.
iptables -t filter -A INPUT -m set --match-set tallow src -j DROP
Does not apply when rules already exists as it insert at bottom.
iptables -I INPUT 1 -m set --match-set tallow src -j DROP
Fix the issue.
The text was updated successfully, but these errors were encountered: