Resetting Packet Counts and you will Aggregate Proportions
Should you want to obvious, otherwise zero, the new packet and you may byte surfaces for your legislation, use the -Z option. They also reset in the event that an excellent restart takes place. That is of good use if you want to find out if your servers is receiving the new guests that fits your existing statutes.
To clear the new surfaces for everybody laws and regulations from inside the a certain chain, make use of the -Z alternative and you may establish new strings. Such as, to pay off the fresh new Type in chain counters run which order:
If you would like clear brand new surfaces to have a particular laws, identify the brand new chain identity and the signal count. Instance, to help you zero the newest surfaces into earliest signal from the Enter in strings, run it:
Now you know how to reset the newest iptables packet and you can byte counters, let’s look at the a couple procedures which you can use so you can delete her or him.
Removing Legislation because of the Specification
One-way so you’re able to erase iptables statutes is by code requirements. To accomplish this, you could work at brand new iptables order on -D choice accompanied by the brand new signal specs. When you need to erase regulations using this method, you can use new output of your guidelines list, iptables -S , for the majority help. Continue lendo →