Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert tallow rule in first position #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f00b4r0
Copy link

@f00b4r0 f00b4r0 commented Nov 13, 2022

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: #22 ("iptables rules order")

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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iptables rules order
1 participant