Re: How to keep the gathered iptables info?

Drunkard Zhang <[email protected]>
Newsgroups gmane.linux.debian.devel.firewall
Message-ID <[email protected]>
2011/1/10 Sthu Deus <[email protected]>:
> 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.

> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.