Discussion:
How to keep the gathered iptables info?
Sthu Deus
2011-01-10 10:40:49 UTC
Permalink
Good day.


I want my iptables statistics, like the one I see w/

/sbin/iptables -nvL

survive reboot so that to the accumulated info the new one will be
just added . How I can achieve this?

And another question - OT: when necessary, how I can reset the
statistics? - The accumulated info? - I can reset all the rules, but it
does not touch the statistics.


Thank You for Your time.
Drunkard Zhang
2011-01-10 11:22:47 UTC
Permalink
Post by Sthu Deus
Good day.
I want my iptables statistics, like the one I see w/
/sbin/iptables -nvL
survive reboot so that to the accumulated info the new one will be
just added . How I can achieve this?
iptables-save -c

"man iptables-save" to get more info.
Post by Sthu Deus
And another question - OT: when necessary, how I can reset the
statistics? - The accumulated info? - I can reset all the rules, but it
does not touch the statistics.
iptables -Z

"man iptables" for more info.

Loading...