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

improve script binary location - (update-ipsets no longer update ipsets) #492

Open
FabioPedretti opened this issue Aug 30, 2023 · 0 comments

Comments

@FabioPedretti
Copy link

FabioPedretti commented Aug 30, 2023

This assume update-ipsets is called from crontab.
On Debian 8 update-ipsets properly update ipsets if they are already available.
On Debian 11 and 12 update-ipsets update the lists, but no longer update ipsets, even if they are already available.
update-ipsets is the same file on both systems.

Note that this is due to newer Debian having different binary locations. On Debian 11 crontab uses this PATH: /usr/bin:/bin, while ipset (called from update-ipsets script) was moved to /usr/sbin/ipset. Adding a proper PATH when running update-ipsets from crontab fixes it:
PATH=/usr/sbin:/usr/bin:/sbin:/bin /usr/sbin/update-ipsets

This may eventually be improved in firehol configuration / build, to use proper path matching the system.

@FabioPedretti FabioPedretti changed the title update-ipsets no longer update ipsets improve script binary location - (update-ipsets no longer update ipsets) Feb 21, 2024
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

1 participant