Please advise on firewall port openings #3167
Replies: 2 comments
-
I would like to add, that you also need to open the potential ports, a configured STUN/TURN server might provide. This is for instance configurable, if you drive your own TURN server (e.g. COTURN). If MediaMTX runs on a AWS instance, for instance, it doesn't publish the public instance address for port 8889, but some local VM address in the AWS world. This will not work. So, here your STUN/TURN server comes into the play. If the remote is taking the delivered public UDP addresses and ports serious, then it will try to do ICE establishments on these addresses/ports. This will fail, if the server firewall is not open in this range. |
Beta Was this translation helpful? Give feedback.
-
Hello, every protocol supported by the server has its own port list and can be used regardless of the fact that ports belonging to other protocols are open or not. I strongly discourage opening all ports indiscriminately, since exposing ports belonging to protocols or features that you're not using or are not familiar with might cause security issues. Open the ports of the services you are actively using only. The port list can be found:
|
Beta Was this translation helpful? Give feedback.
-
Question
Hi everybody,
Thank you for the amazing project! And great documentation!
The only thing I'm missing is a list of all ports that need to be opened in iptables/nftables (local firewall on a server) and on an external firewall between LANs (assuming the server is on a different LAN than a client connecting the server).
Looking at the documentation and sample https://github.com/bluenviron/mediamtx/blob/main/mediamtx.yml and assuming I didn't change any ports from the default values:
These are the ports I think need to be opened:
Beta Was this translation helpful? Give feedback.
All reactions