Skip to content

fix: use iptables-nft if nftables is loaded #1500

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

pgalonza
Copy link

It fix some problems when use nftables.

@Nethius Nethius requested a review from outspace March 30, 2025 04:41
@outspace
Copy link
Collaborator

please describe problems that you have with default iptables.

@pgalonza
Copy link
Author

@outspace

The situations I have encountered are because I use a distribution that is not included in the recommended ones, which has nftables by default, but it may come in handy in future versions of amnezia.

  1. When using iptables and iptables together, iptables rules are processed first. And iptables rules cannot be overridden.
  2. If one of the chains in iptables is missing (because it exists in nftables), the rules will not be added.

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.

2 participants