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

migrate from iptables to nftables #34

Open
NRGLine4Sec opened this issue Jun 4, 2020 · 5 comments
Open

migrate from iptables to nftables #34

NRGLine4Sec opened this issue Jun 4, 2020 · 5 comments

Comments

@NRGLine4Sec
Copy link

It is in your roadmap to migrate to nftables ?
And thanks for working on Opensnitch !

@gustavo-iniguez-goya
Copy link
Owner

Hi NRGLine4Sec,

Not for now, but I guess it's one of the next logical steps.

@q2dg
Copy link

q2dg commented Dec 5, 2020

Nftables is already used by default in Ubuntu and Fedora among others. So iptables's countdown has started

@NRGLine4Sec
Copy link
Author

Maybe, it could be more interessant to migrate to bpfilter (powered by BPF) :
Why is the kernel community replacing iptables with BPF? — Cilium
BPF comes to firewalls [LWN.net]

@gustavo-iniguez-goya
Copy link
Owner

gustavo-iniguez-goya commented Dec 7, 2020

Yes, that's the future (/present). The only problem is that it's not available in all kernels/environments, and not all the features are supported.

So iptables won't be deleted for now. We only use 1 iptables rule, so the performance is not a problem in this case.
However if we wanted to add lists of IPs/domains to block, then yes, we should use nftables/XDP.

For that purpose ipset is another option, well supported in all kernels, and with netlink support, which is a plus for not depending on external binaries.
http://ipset.netfilter.org/index.html
https://github.com/firehol/blocklist-ipsets
https://iplists.firehol.org/

@NRGLine4Sec
Copy link
Author

Thank you @gustavo-iniguez-goya for your quick response.
I don't know about ipset, I will take a look into it.

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

No branches or pull requests

3 participants