Everything seems OK. I would try first without iptables, with all ports open. When you have openmeetings running smoothly then you can go closing ports.

El 27/4/20 a las 22:59, kaffeesurrogat escribió:

On 27/04/2020 22:35, Juan Antonio Moreno Carmona wrote:
Ok, well. You have installed coturn, then look for a file named
turnserver.con. It can be in /etc/turnserver.conf or
/etc/turnserver/turnserver.conf.

You must edit this file but before tell me if you have found it.
ok what i did:

  what i did:

1) i installed coturn
2) edited /etc/default/coturn
TURNSERVER_ENABLED=1
3) mkdir -p /var/log/turnserver
and
chown -R kurento /var/log/turnserver
4) openssl rand -hex 32
5) vi /etc/turnserver.conf
use-auth-secret
static-auth-secret=MYOPENSSLHASH
user=kurento:MYNEWPASSW
realm=kurent.org
log-file=/var/log/turnserver/turn.log
6)  vi /etc/default/kurento-media-serve
DAEMON_USER="kurento"
7) vi
/opt/open504/webapps/openmeetings/WEB-INF/classes/applicationContext.xml

<bean id="kurentoHandler"
class="org.apache.openmeetings.core.remote.KurentoHandler"
init-method="init" destroy-method="destroy"
                         p:kurentoWsUrl="ws://127.0.0.1:8888/kurento"
                         p:checkTimeout="10000"
                         p:watchThreadCount="10"
                         p:turnUrl="MYPUPIP:3478"
                         p:turnUser="kurento:MYNEWPASSW"
                         p:turnSecret="MYOPENSSLHASH"
                         p:turnMode="rest"
                         p:turnTtl="60"
                         p:objCheckTimeout="200"
                         p:flowoutTimeout="5"
                         />

8) chown -R kurento /opt/open504
9) vi /etc/systemd/system/multi-user.target.wants/openmeetings.service

User=kurento
Group=nogroup


Checked if user changed: ps aux | grep java

kurento  30582  2.5  6.5 14674172 2209696 ?    Sl   22:03   1:14
/usr/lib/jvm/java-11-openjdk-amd64/bin/java

10) restart coturn checked status

sudo systemctl status coturn
coturn.service - LSB: coturn TURN Server
    Loaded: loaded (/etc/init.d/coturn; generated)
    Active: active (running) since Mon 2020-04-27 21:58:45 CEST; 53min ago
      Docs: man:systemd-sysv-generator(8)
     Tasks: 75 (limit: 165)
    CGroup: /system.slice/coturn.service
            └─30214 /usr/bin/turnserver -c /etc/turnserver.conf -o -v

11) restarted kurento checked status

sudo systemctl status korento-media-service

kurento-media-server.service - LSB: Kurento Media Server daemon
    Loaded: loaded (/etc/init.d/kurento-media-server; generated)
    Active: active (running) since Mon 2020-04-27 21:59:53 CEST; 53min ago
      Docs: man:systemd-sysv-generator(8)
     Tasks: 24 (limit: 165)
    CGroup: /system.slice/kurento-media-server.service
            └─30317 /usr/bin/kurento-media-server


12)  restarted openmeetings checked status

sudo systemctl status openmeetings.service
● openmeetings.service - Apache OpenMeetings server
    Loaded: loaded (/etc/systemd/system/openmeetings.service; enabled;
vendor preset: enabled)
    Active: active (running) since Mon 2020-04-27 22:03:09 CEST; 50min ago
   Process: 30542 ExecStop=/opt/open504/bin/shutdown.sh (code=exited,
status=1/FAILURE)
   Process: 30575 ExecStart=/opt/open504/bin/startup.sh (code=exited,
status=0/SUCCESS)
  Main PID: 30582 (java)
     Tasks: 105 (limit: 165)
    CGroup: /system.slice/openmeetings.service
            └─30582 /usr/lib/jvm/java-11-openjdk-amd64

13) Opening ports ....

sudo iptables -A INPUT -p tcp -m tcp --dport 3478 -j ACCEPT
sudo iptables -A INPUT -p udp -m udp --dport 3478 -j ACCEPT
sudo iptables -A INPUT -p tcp -m tcp --dport 5443 -j ACCEPT
sudo iptables -A INPUT -p tcp -m tcp --dport 8888 -j ACCEPT
sudo iptables -A INPUT -p udp --match multiport --dports 49152:65535 -j
ACCEPT
sudo iptables -A OUTPUT -p udp --match multiport --dports 49152:65535 -j
ACCEPT


14) checked if rules are there

  sudo iptables -L .... seems to be right all of them where listed ...

15)  saving the rules .....

!!!!!!!!!!! THAT FAILS !!!!!!!!!!!

sudo service iptables save
iptables: unrecognized service


mmmmmm, didn't find a solution for this ....




El 27/4/20 a las 22:26, kaffeesurrogat escribió:
Yes i installed this thing on VPS, 8 vCores, 32GB of ram ..... ubuntu
18.04

On 27/04/2020 21:59, Juan Antonio Moreno Carmona wrote:
Hi.

I suppose you have Ubuntu installed on your VPS. It is right? Then
install the coturn package. Next you have to edit the files
turnserver.conf and applicationContext.xml and restart cotrun and
openmeetings. You can see more precise instructions in the next
tutorial

https://cwiki.apache.org/confluence/display/OPENMEETINGS/Tutorials+for+installing+OpenMeetings+and+Tools?preview=/27838216/152111934/Installation%20SSL%20certificates%20and%20Coturn%20for%20OpenMeetings%205.0.0-M4%20on%20Ubuntu%2018.04.pdf



Juan Antonio.

El 27/4/20 a las 21:34, kaffeesurrogat escribió:
On 27/04/2020 21:30, kaffeesurrogat wrote:
On 27/04/2020 20:28, ratatouille wrote:
Hello!

Own machine for what? For a STUN-Server? I think it's the best to
run such
| server on the same machine like OM.

are there any instructions for the coturn stuff ...... can send me a
link ? Never did that before .....
is the one from the wiki the best starting point ? I've read quite
a few
instructions, each one is quite good, but it would ease my work to
choose the right one from the beginning.


What OS are you using? I use CentOS 7 with coturn as STUN-Server.
Runs nice.
Its ubuntu 18.04 LTS on a hostet  virtual machine.
8 vCores, 32 Gb ram

many thanks ....



     Andreas

kaffeesurrogat <kaffeesurro...@posteo.de> schrieb am 27.04.20 um
19:47:26 Uhr:

Should I setup my own machine or is it save to use a public one ?

On 27/04/2020 19:41, kaffeesurrogat wrote:
I didn't configure a STUN, is that the problem? Which server do
you
recommend for being in germany ?



On 27/04/2020 19:25, kaffeesurrogat wrote:
Hey everybody,

i just finished a testing session with OM 5.0.4 and two
colleages. It
didn't went well at all.
Quite a few error messages popped up in the middle of the
session,
uploading of docx did not work, giving or withdrawing
permissions to
draw on the white board did fail or failed not.
As my colleages logged in, they showed up twice in the user
panel on the
right sight. I've been the moderator, my colleagues the "users".
After a short while and a couple of disconnections, I could not
re-enter
the room because it was full. I've limited the room capacity to
6 people.


Restarting Openmeetings and KMS reentering the room for all of
us,
cleared the problem for a short while.


The session was ended by a browser message, that the
connection was
lost. I've attached the the logfile from this sessions. You will
find
quite a few messages in there. I don't know, which one is really
important,
thus I send all of them, replacing personal information .....


Many thanks in advance,

kaffeesurrogat

it is quite big, sorry for that ...

Reply via email to