Hi, I am a scripting newbie, so be nice.
I have a UDP video flow that I want to monitor the average incoming bitrate via comparing the byte counters between 2 periods. I am using Firewall NAT rule to set up a rule to route the incoming packets from the Internet to my device within the private address space.
NAT Rule
4 ;;; Video
chain=dstnat action=dst-nat to-addresses=192.168.1.180 to-ports=2020 protocol=udp src-address=1.1.1.0/25 in-interface-list=WAN dst-port=2020 log=no log-prefix=“”
(IP addresses changed for security)
This works and I see the video flow on my device. All good so far.
However, I do not see the byte or packet counters incrementing:
ip firewall nat print stats where comment=“Video”
Columns: CHAIN, ACTION, BYTES, PACKETS
CHAIN ACTION BYTES PACKETS
;;; Video
4 dstnat dst-nat 0 0
As a work around I added a Firewall Filter rule that accepts the video flow. This should not be required as the NAT rule should be processed first. The good thing is that stats are produced.
;;; Video
chain=forward action=accept protocol=udp src-address=1.1.1.0/25 dst-port=2020 log=no log-prefix=“”
When I run the following command, I get an output and I can see the counter incrementing:
ip firewall filter print stats where comment=“Video”
Columns: CHAIN, ACTION, BYTES, PACKETS
CHAIN ACTION BYTES PACKETS
;;; Video
3 forward accept 12 373 104 172 021
Any thoughts on this. Is this a bug?
Thanks
Pete