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

Added ipset-persistent compatibility #73

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

Conversation

PaulGuijt
Copy link

With ipset-persistent, part of netfilter-persistent, the ipset is loaded earlier in the startup proces.
The script in /etc/network/if-up.d can be removed.

With ipset-persistent, part of netfilter-persistent, the ipset is loaded earlier in the startup proces. 
The script in /etc/network/if-up.d can be removed.
@slynobody
Copy link

slynobody commented Jul 3, 2022

how will a good use-case might look like to migrate the solution to nftables?

@ann0see
Copy link

ann0see commented Jul 8, 2022

Probably? Didn’t Debian move to nftables? At least the script doesn’t work for me on Debian 11…
Another question: is there any activity on another fork? This repo seems dead. (At least there are some open PRs)

@joe-at-startupmedia
Copy link

joe-at-startupmedia commented Jul 14, 2022

I'd recommend opening up a new issue for this as nftable compatibility doesn't quite pertain to ipset-persistent compatibility. [Edit: it appears issues have been disabled on this repo]

In any case, ipset and family has been deprecated on several distros including RHEL9.
https://access.redhat.com/solutions/6739041

iptables has been deprecated in Debian 10:
"NOTE: Debian 10 Buster and later use the nftables framework by default. [...] nftables is the default and recommended firewalling framework in Debian, and it replaces the old iptables (and related) tools."
https://wiki.debian.org/nftables

Alternatively since ipset version 7.12 you can use the ipset-translate utility which allows you to translate your existing ipset file to nftables.
https://patchwork.ozlabs.org/project/netfilter-devel/patch/20210601113152.20761-1-pablo@netfilter.org/

@leshniak
Copy link

I've made an nftables version, if someone wants it - https://github.com/leshniak/nft-blacklist

@ann0see
Copy link

ann0see commented Aug 25, 2022

Great! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants