TL;DR: ISP box in bridge mode behind a UDM Pro Max. The ISP's Android TV app took ~12 s per channel change. A packet capture showed the ISP box trying to open a TCP connection back to the TV, and the UDM dropping it. A source-restricted port forward fixed it: 11.5 s down to 37 ms.
Setup: French ISP Free, Freebox Server in bridge mode, UDM Pro Max (Network 11), TCL Google TV on Ethernet running Free's TV app (OQEE). My original install is in this video (French): https://www.youtube.com/watch?v=4JlqF4_1a-8&list=PLNY9XBGmGyGiFbjmaUe0kLpvS4RXMicQC&index=2
What the capture showed during one channel change
LAN side:
TV -> 212.27.38.253:554 OPTIONS 200 OK
TV -> 212.27.38.253:554 DESCRIBE 200 OK
TV -> 212.27.38.253:554 SETUP Transport: FBXAVPTCP;client_port=36381
... no RTSP reply, TV gives up after 3.0 s, retries 3 times
WAN side, 4 ms after the SETUP:
212.27.38.253 -> <WAN IP>:36381 SYN (retransmitted, never answered)
FBXAVPTCP is a vendor transport: the box connects back to the client on the port the client announced. Behind NAT that inbound SYN has nowhere to go, so the app waits 3 × 3 s and then falls back. 212.27.38.253 is the ISP box itself (0.2 ms away, same MAC as the WAN gateway).
Control test: an Apple TV on the same network sends nothing to the box when changing channels, and it never had the problem.
Fix
Policy Table -> Create New Policy -> Port Forwarding:
- Protocol: TCP only
- From: Limited ->
212.27.38.253 - WAN port and forward port:
32768-60999 - Forward IP: the TV (give it a fixed IP)
If a port in that range is already used (e.g. 51820 for WireGuard), UniFi rejects the range. Write it as 32768-51819,51821-60999.
Result: 37 ms between tearing down one channel and PLAY 200 on the next. One attempt instead of three.
Limit: one forward = one TV, because every client picks a random port from the same ephemeral range. For a second Android TV I added a firewall Reject (not Block) on TCP 554 from that TV to the box, so the app gets an immediate refusal and falls back right away instead of timing out.
Zone-based firewall gotcha: the rule's Source Zone must be the zone that actually contains the TV's network. Mine pointed at the wrong zone and silently never matched (hit counter stayed at 0).
Posting in case it helps anyone running an ISP box in bridge mode behind UniFi with a "call me back" style streaming protocol.