[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bytes counter with iptables



* galaeasy.005608@mail.galactica.it (galaeasy.005608@mail.galactica.it) [010726 11:07]:
> Hi to all!
> 
> I have a question about packets & bytes counter made with iptables:
> 
> my problem is that when I reboot my firewall i lost all the counters stored with iptables.
> 
> Can I prevent this ?

see iptables-save and iptables-restore (included in the iptables
package), specifically the -c command-line option. You may need to
modify the way your rules are created, but once you do you will be
able to restore all of your firewall rules *and counters* across a
reboot. See the manpages for details.

Vineet

Attachment: pgpgBwt5F1Hna.pgp
Description: PGP signature


Reply to: