Resetting Packet Counts and you can Aggregate Size
If you wish to obvious, or no, the fresh new package and byte surfaces for the laws and regulations, utilize the -Z option. Nonetheless they reset when the a restart happens. That is helpful if you’d like to see if your own host gets this new travelers which fits your current rules.
To pay off the brand new surfaces for everybody statutes within the a particular chain, make use of the -Z alternative and you can establish this new chain. Such as, to pay off the Type in chain surfaces work with it command:
Should you want to clear the brand new surfaces to possess a particular laws, establish this new strings title therefore the code number. Instance, to no the new counters toward earliest code throughout the Type in chain, work at that it:
Now you know how to reset the new iptables packet and you can byte counters, let’s go through the a couple measures that can be used so you can delete them.
Removing Regulations by Requirements
One way so you’re able to delete iptables laws and regulations is through rule specs. To do this, you could potentially work at this new iptables demand towards -D alternative followed by the latest code specs. Continue reading Flushing All of the Regulations, Removing Most of the Chains, and you can Acknowledging All