I have searched the forums, and the internet in general, for a solution to this issue.
I don't know why there is no information on this or why it's so hard to find it, is it technically impossible?
So, I'm serving an RTSP stream and I need to port forward on the firewall the incoming ports to the correct host inside the local network.
The problem is that the ports are always randomly assigned to a range than spans across more than 15000 UDP ports.
Here are a few examples of TCP packets broadcasting the ports to be used in the streaming sessions:
Code: Select all
Transport: RTP/AVP/UDP;unicast;client_port=60746-60747;server_port=55266-55267;ssrc=E3AD4365;mode=play
Transport: RTP/AVP/UDP;unicast;client_port=56000-56001;server_port=60981-60982;ssrc=D499D164;mode=play
Transport: RTP/AVP/UDP;unicast;client_port=52234-52235;server_port=61618-61619;ssrc=FE52B1D0;mode=play
Transport: RTP/AVP/UDP;unicast;client_port=54984-54985;server_port=62476-62477;ssrc=769B8B20;mode=play
I've been able to do the opposite of what I want, which is to set the port range used by the client:
Code: Select all
rtp{dst=127.0.0.1,port=5123
Code: Select all
Transport: RTP/AVP/UDP;unicast;client_port=5122-5123;server_port=61339-61340;ssrc=9F837FC8;mode=play
Any suggestions would be very welcome, thank you.