Friends, how will be a script to automatically reset all NAT counters?
Thank you for your answers.
EL DONCITO.
/ip firewall nat reset-counters-all
The solution is IP filter???Code: Select all/ip filter nat reset-counters-all
/system scheduler
add interval=1d name=NAT_reset_counters policy=read,write start-date=mar/25/2022 start-time=23:59:59 \
on-event="/ip firewall nat reset-counters-all"
/system scheduler
add interval=1d name=NAT_reset_counters_on_RST_comment policy=read,write start-date=mar/25/2022 start-time=23:59:59 \
on-event="/ip firewall nat reset-counters [find where comment~\"RST\"]"
/system scheduler
add interval=1d name=NAT_reset_counters_on_not_KP_comment policy=read,write start-date=mar/25/2022 start-time=23:59:59 \
on-event="/ip firewall nat reset-counters [find where !(comment~\"KP\")]"
/ip firewall raw reset-counters [find where comment~"IPSec"]
/ip firewall raw reset-counters [find where src-address-list="BlacklistIPSEC"]
This option does NOT workCode: Select all/ip firewall raw reset-counters [find where src-address-list="BlacklistIPSEC"]
:put [/ip firewall raw find where src-address-list="BlacklistIPSEC"]
I tested the following:What you obtain with:one (or more) index number like *3f1,*84a"?Code: Select all:put [/ip firewall raw find where src-address-list="BlacklistIPSEC"]
For me on v6 work.
:put [/ip firewall raw find where src-address-list="BlacklistIPSEC"]
:put [/ip firewall raw reset-counters [/ip firewall raw find where src-address-list="BlacklistIPSEC"]]
Thanks!