Apple Homekit rtsp stream from external (not LAN)

Hello

I use Apple Homekit for two Cameras. Everything works from LAN.
But i get no rtsp stream from outside through the firewall.
Unfortunately the ports are changing every time.
I have a Raspi (Homebridge) which connetcs via plug-in to the cam and establish a rtsp stream to the apple TV (because i connect from outside LAN) - when i am inside in LAN, the stream goes directly to the device (iphone)
Logs from Raspi:
10.10.20.8:554 = IP rtsp CAM
10.10.20.244: Apple TV

Feb 03 09:56:09 hb-raspi homebridge[16971]: -re -i rtsp://10.10.20.8:554/mjpeg.sdp -threads 0 -vcodec h264_omx -an -pix_fmt yuv420p -r 30 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -payload_type 99 -ssrc 1 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params vQ0O6Fvv0LiDD4r5BnjETXRK srtp://10.10.20.244:53625?rtcpport=53625&localrtcpport=53625&pkt_size=1378
Feb 03 09:56:37 hb-raspi homebridge[16971]: -re -i rtsp://10.10.20.8:554/mjpeg.sdp -threads 0 -vcodec h264_omx -an -pix_fmt yuv420p -r 30 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -payload_type 99 -ssrc 1 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params cmhDujGz8oGw9SVuHW/AYMwe srtp://10.10.20.244:58171?rtcpport=58171&localrtcpport=58171&pkt_size=1378
Feb 03 09:57:38 hb-raspi homebridge[16971]: -re -i rtsp://10.10.20.8:554/mjpeg.sdp -threads 0 -vcodec h264_omx -an -pix_fmt yuv420p -r 30 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -payload_type 99 -ssrc 1 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params He+Nn1ttm58vNFTYFphF8A9q srtp://10.10.20.244:60287?rtcpport=60287&localrtcpport=60287&pkt_size=1378
Feb 03 09:57:56 hb-raspi homebridge[16971]: -re -i rtsp://10.10.20.8:554/mjpeg.sdp -threads 0 -vcodec h264_omx -an -pix_fmt yuv420p -r 30 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -payload_type 99 -ssrc 1 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params L0akLcmP0JG5ywKq0CVKDQn5 srtp://10.10.20.244:59444?rtcpport=59444&localrtcpport=59444&pkt_size=1378

AppleTV uses then ports between 16384-16472 for the stream to the external iphone…

How i get this stream through the firewall ???

thx for help, richard

A diagram would help in figuring what you are doing.
If you dont have visio this ones free and good…
https://www.draw.io/

Here a diagramm.
The IPhone initiate a Video Stream (Apple Home App) through the AppleTV to the Raspberry “Homebridge”.
The Raspberry initiate a RTSP Stream on Port 554 of the Cam and redirect it as SRTSP Stream to the AppleTV. From there it should go back to the IPhone (See logs in the previous post).
In LAN everything works, becuse the Raspberry redirects directly to the IPhone IP in the LAN.
The strange is, that sometimes the stream goes through the firewall and sometimes not.
Untitled Diagram.jpg