Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
On this page you will find the steps for installing and configuring a Kurento Media Server environment.
Table of Contents |
---|
Image Added
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.
Install kurento media server
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
Configure 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
Info |
---|
These ports are the same ports that you have to open in your firewall inbound rules |
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
Info |
---|
It's possible to use a public STUN as reported in the example or, if present, you can specify an internal STUN server; always keep in mind that Kurento’s IP must be enabled to reach your STUN server. |
externalAddress=15.237.148.189
Info |
---|
Specify your public IP address; this IP must be communicated to our staff in order to enable inbound stream on our firewalls. |