Hi Openvidu Team!
First of all, thanks a lot for building up this great project.
Here are some questions related to the KMS & Coturn initial set up in the Openvidu On premise deployment with subnet segregation (only coturn and nginx proxy in DMZ zone wtih public internet access while the rest inSF zonewith limited intra VPC network access).
1.KMS docker container - environment variable settings
Docker Hub - kurento/kurento-media-server
STUN/TURN server: KMS_STUN_IP, KMS_STUN_PORT, KMS_TURN_URL
RTP port bindings: KMS_MIN_PORT, KMS_MAX_PORT
For the CE version, if I set up the above variables in docker-compose with VPC intra network settings (e.g., private IP Address instead of public IP address for Coturn server, changing the KMS port ranges & Coturn port ), will these variables be overwritten by the openvidu server when they are setting up the connections?
For the PRO version, I find that the KMS is controlled by the Media Node Controlloer. Is it still possible to configure environment variables to KMS through the Media Node Controlloer docker contianer? If not possible, any suggestions on how to pass environment variables to the KMS docker container? I am using the customerized KMS image from my team and also need to pass addtional environment variables.
2.KMS and Coturn - port range settings
2.1 From the Openvidu documents for on-premise deployment, there are differeces of the port ranges between CE and PRO.
CE
Coturn: 57001 - 65535 TCP+UDP
KMS: 40000 - 57000 TCP+UDPPRO
OpenVidu Server Pro Node
Coturn: 40000 - 65535 TCP+UDP
Media Nodes
KMS: 40000 - 65535 TCP+UDP
For the PRO version, when I checked the docker-compose file for Coturn, actually it sitll sets MIN_PORT=57001, MAX_PORT=65535. Is it true that the port ranges settings for Coturn
and KMS are actually still the same as the CE version?
2.2 Port Range setting rules between KMS and Coturn
Kurento Doc 6.14.0 #frequently-asked-questions
- According to the above information from Kurento Doc 6.14.0, is it really required that Coturn and KMS are using the same set of ports?
- Any advice or attention points on how to change the point ranges of KMS and Coturn. For example, for coturn, 3478 stay untouched but port range changes to 57001 - 60000 TCP+UDP. Anything needs to be changed in the KMS or Openvidu server side to match up to the new Coturn port ranges? Or are all these port ranges actually independent among the KMS and Coturn?
3. Coturn port range’s protocol settings
For Openvidu On premise deployment with subnet segregation, only coturn and nginx proxy are in DMZ zone wtih public internet access while the rest are in the SF zonewith limited intra VPC network access.
Due to the security concern of exposing a wide range of TCP+UDP ports to public for Coturn, we are planning to make the following changes based on turnserver · coturn/coturn Wiki · GitHub.
Coturn with ssl certificate.
3478 DTLS + TLSV1_2; no tcp,udp,tls,tlsv1,tlsv1_1
57001 - 65535 UDP
Refering to Kurento’s WebRtcEndpoint.conf.ini, KMS is working on udp protocol by default for Media traffic. So, just want to double confirm with you guys that any potient concern or issue may occur with Openvidu Server and KMS if I only enable Coturn with above protocols.