On this page you will find the steps for installing and configuring a Kurento Media Server environment.
Requirements
Hardware Requirements
Minimum hardware requirements are:
- 2 cores - CPU
- 4GB di RAM
- 40GB di HDD
Software Requirements
Recommended operating system is Ubuntu Linux 18.04 LTS Server.
Network Requirements
On your firewall you will have to enable these ports in order to have your Kurento Media Server working:
INBOUND
- 8888/TCP
- 50000-65000/UDP (RTP stream)
For security reasons, port 8888/TCP has to be opened specifying IP 35.180.105.193 as source address, that corresponds to our API server IP address.
Regarding RTP stream ports, you have to open these ports to any (0.0.0.0/0) or, if users connects from a VPN or specific IP, just open that IP address source.
OUTBOUND
- 50000-65000/UDP (RTP stream)
Outbound stream needs to comprehend in its destination networks same networks specified as source on inbound rule; this rule can be opened to “any” without causing any security issue.
Once you install operating system, run the following commands in order to install Kurento:
- sudo apt-get update && sudo apt-get install --no-install-recommends --yes gnupg
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83
- source /etc/upstream-release/lsb-release 2>/dev/null || source /etc/lsb-release
- sudo tee "/etc/apt/sources.list.d/kurento.list" >/dev/null <<EOF
# Kurento Media Server - Release packages
deb [arch=amd64] http://ubuntu.openvidu.io/6.14.0 $DISTRIB_CODENAME kms6
EOF
- sudo apt-get update && sudo apt-get install --no-install-recommends --yes kurento-media-server
- sudo service kurento-media-server start
- sudo systemctl enable kurento-media-server
Here you find the file path and changes to apply.
In order to configure RTP stream ports you have to modify the file:
/etc/kurento/modules/kurento/BaseRtpEndpoint.conf.ini
Modify minPort and maxPort rows entering selected RTP range, for example:
minPort=50000
maxPort=65000
In order to configure STUN and external address, modify file:
/etc/kurento/modules/kurento/WebRtcEndopoint.conf.ini
Modify stunServerAddress and stunServerAddress values indicating selected parameters, for example:
stunServerAddress=stun.l.google.com
stunServerPort=1932
externalAddress=15.237.148.189