iptables-save and iptables-restore for performance

Post Reply
Nerigal
Junior Member
Posts: 33
Joined: 17 Jun 2009, 16:15

iptables-save and iptables-restore for performance

Post by Nerigal »

hi,

an other suggestion...

the use of iptables-save and iptables-restore for large rules set in iptables...
iptables-save dump all rules set in a file that iptables use as-is
iptables-restore can only take the dump file and map it back i memory for iptables in one step witch is really good, for example, server reboot.

of course the dump file has to rewrite every time a rules chain in iptables... but i don't think this would be a problem.
this would also permit larger amount of rules manage by a server because the stability is increase with this method.
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Re: iptables-save and iptables-restore for performance

Post by chirpy »

Doing that would have little advantage, if any at all. It would not allow for more rules, nor would it have any affect on stability. You can currently defer csf startup if you want to avoid the overhead on boot time using the LF_QUICKSTART option in csf.conf.
Post Reply