How do I configure iptables to defeat multi-port problem of RTSP ?
I'm running a web camera on Raspian using VLC to encapsulate an H.264 video stream into RTSP. The problem is that VLC's flavor of RTSP dynamically chooses a pair (N and N-1, where N is even) of UDP ports for the audio and video in response to a tcp connection request. This dynamic assignment of UDP ports stops anyone from accessing the video stream from the Internet unless there's only one camera and it is put in a DMZ in my router.
Can someone tell me how to configure iptables on the web camera so that whatever UDP port VLC happens to choose gets mapped to a single external UDP port ? I don't use audio, so it would be sufficient to map many internal UDP ports into a single external port. I thought the multiport rule might help me, but I don't know how to set it up for this.
Thank you in advance.
|