I am attempting to account for the network usage of a Chromecast.
I created a firewall rule that matches the Chromecast's MAC address and adds that IP address to an address list.
Code: Select all
/ip firewall filter add action=add-src-to-address-list address-list=chromecast address-list-timeout=none-dynamic chain=forward comment="Track Chromecast usage" out-interface=ether1-WAN src-mac-address=54:60:09:45:88:42
This works, and adds 172.16.44.193 (the verified internal IP address) to the address list, corresponding to that Chromecast's MAC address.
The reason I need the address list is because the Firewall Filter allows for Src MAC Address but does not allow for Dst MAC Address. So fine, I use the rule above to create the address list with an IP that I can match against. This way whenever the IP address of the Chromecast changes, I can continue to account for its usage.
Unfortunately no matter what I do, whether using Filter or Mangle, I cannot get more than a trickle of usage matched. The most it ever shows is around 100 kbps in a 1-second interval; and most often far less. I am testing this by sending a 4k stream to the Chromecast, and I can see an 8 Mbps throughput in Torch.
As I said above, I have tried Filter and Mangle, and I have used dst-address-list, with no other parameters (not even an interface or protocol), with all the chains (prerouting, postrouting, forwarding), and nothing changes. I have Fast Forward and Fast Path disabled, and have Use IP Firewall enabled on the bridge, just to be safe.
The other oddity is that when I Torch the Wi-Fi interface, the internal IP address (172.16.44.193) shows up as a Src Address for the 8 Mbps throughput. I would have expected this to be the Dst Address. Given that, I tried using src-address-list instead, and that didn't help. I have also tried using the exact IP address in both src-address and dst-address, and still nothing.
I've made sure the Filter or Mangle rule is at the top of the list, too.
This has to be something simple I'm just missing... Any ideas?