ipset -- loading hash tables

Shell scripts are slow, when they have to iterate over a huge amount of data. Is there a way to load ipset data to/from files so that it can be loaded quickly into the memory when the system re-starts?

2 Replies

Looks like ipset has a save and restore functionality: http://ipset.netfilter.org/ipset.man.html

Probably wouldn't be difficult to use that.

Duh, of course it would. –- I mean that it works.

Thanks

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct