soar / ipset-persistent Goto Github PK
View Code? Open in Web Editor NEWipset-persistent - sysv init script for saving and restoring ipset sets
License: GNU General Public License v2.0
ipset-persistent - sysv init script for saving and restoring ipset sets
License: GNU General Public License v2.0
Hi, I get errors for /etc/init.d/ipset-persistent script.
Debian Jessie OS
XXXXX$ sudo service ipset-persistent save
[....] Saving ipset sets.../etc/init.d/ipset-persistent: 96: [: yes: unexpected operator
done.
But,,,, the sets are saved ! ...
¿?
Another error I think is for parameter IP_SPLIT_CONFIG
Set to yes, only one file is created (sets).
Thanks for the script and sorry for my english.
when i try to write "service ipset-persistent save" it says
* Command ipset not found in PATH - please define it in /etc/default/ipset-persistent
First of all, thank you for your great work.
For Debian 9 and Ubuntu 18.04 where I tested this script, to actually load the service ipset-persistent before iptables tries to load its configuration and then fails because it doesn't find the sets, it is required to change one line in the file /etc/init.d/ipset-persistent
# X-Start-Before: $network iptables-persistent
must be changed to
# X-Start-Before: $network netfilter-persistent
This is because the iptables-persistent service has onther name in these two distributions, it's called netfilter-persistent
I just share this, so maybe this can be of help for others who get stuck with this little issue.
Kind regards, Robert
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.