OPNsense Forum

English Forums => General Discussion => Topic started by: fsebera on June 25, 2021, 07:39:35 PM

Title: How to clear interface rule counters
Post by: fsebera on June 25, 2021, 07:39:35 PM
Hi,

Is there a way to clear the Inspect hit counters on the interface firewall rules.

Firewall
   Rules
     LAN
       Inspect

I see there is a way to reset session states (Firewall, Diag, States reset) but this is a production environment and definitely don't wanna perform that action.

Thanks
Frank
Title: Re: How to clear interface rule counters
Post by: juere on June 26, 2021, 07:24:35 PM
How about clicking Firewall -> Aliases -> Apply ?

According to the explanation found under Firewall -> Diagnostics -> States Reset this should leave the state tables intact and for me it does reset the inspect counters  :)
Title: Re: How to clear interface rule counters
Post by: fsebera on July 02, 2021, 04:52:04 PM
Ok I have it figure out.

Firewall:
   Rules:
       LAN
            (i)        <----------- if you click on this icon, it will toggle the current logging state. On is (blue) or off is (gray). Then top right of screen "Apply" changes.

Remember if you make this change you may want to change (i) back to original setting.

Now all rule counters -- LAN and WAN -- will be reset to 0.

If you have a busy firewall, the counters should increase quickly.
Thanks
Frank