Hey,
the firewall/router is allowing connections between both of the vm and the bbb server on every service via their external static ip addresses (tested with https, ssh etc.). I tested the stun server functionality by executing "stun EXTERNAL_HOSTNAME_OF_TURNSERVER" on the bbb machine which resulted in this:
STUN client version 0.97
Primary: Dependent Mapping, random port, no hairpin
Return value is 0x000018
Is this maybe part of the problem? Executing "stun INTERNAL_IP" leads to the following output:
STUN client version 0.97
Primary: Independent Mapping, Independent Filter, preserves ports, will hairpin
Return value is 0x000003
According to WebRTC client logs the stun server part of coturn is working flawlessly though.
I haven't used the turn option of bbb-install.sh, but configured the
turn-stun-servers.xml manually exactly like you posted. However, I
substituted the according ports 443 to 3478 and 5349 to match my coturn
config, of course.
The reason I didn't open a thread at "bigbluebutton-setup" at first is that my admin transferred the coturn server to a non-natted public host for testing. Result: Without changing any config on the BBB server (except exchanging the hostname of the coturn server of course) it could use the TURN server functionality of coturn perfectly, BBB was running as it should.
I attached the output of "turnutils_uclient -v EXTERNAL_HOSTNAME_OF_TURNSERVER" in both cases, running it on a test client from home (so completely externally from the server network). The only difference I can see ist that the given relay address in one case is the public static IP of the turnserver, in the other case it is the local IP of the turnserver in the natted network. Should I be worried about the not transferred packages?
Thanks in advance!
Philipp
With external ip mapping of turnserver in turnserver.conf:
root@HOSTNAME:~# turnutils_uclient -v -W SECRET EXTERNAL_TURNSERVER_HOSTNAME
0: IPv4. Connected from: LOCAL_IP_OF_TEST_CLIENT:45193
0: IPv4. Connected to: EXTERNAL_IP_OF_TURNSERVER:3478
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: success
0: IPv4. Received relay addr: EXTERNAL_IP_OF_TURNSERVER:55322
0: clnet_allocate: rtv=842173284937230865
0: refresh sent
0: refresh response received:
0: success
0: IPv4. Connected from: LOCAL_IP_OF_TEST_CLIENT:38827
0: IPv4. Connected to: EXTERNAL_IP_OF_TURNSERVER:3478
0: IPv4. Connected from: LOCAL_IP_OF_TEST_CLIENT:39758
0: IPv4. Connected to: EXTERNAL_IP_OF_TURNSERVER:3478
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: success
0: IPv4. Received relay addr: EXTERNAL_IP_OF_TURNSERVER:55323
0: clnet_allocate: rtv=0
0: refresh sent
0: refresh response received:
0: success
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: success
0: IPv4. Received relay addr: EXTERNAL_IP_OF_TURNSERVER:63550
0: clnet_allocate: rtv=1341045736506650642
0: refresh sent
0: refresh response received:
0: success
0: channel bind sent
0: cb response received:
0: success: 0x6615
0: channel bind sent
0: cb response received:
0: success: 0x6615
0: channel bind sent
0: cb response received:
0: success: 0x491e
0: channel bind sent
0: cb response received:
0: success: 0x491e
0: channel bind sent
0: cb response received:
0: success: 0x6dd5
0: Total connect time is 0
1: start_mclient: msz=2, tot_send_msgs=0, tot_recv_msgs=0, tot_send_bytes ~ 0, tot_recv_bytes ~ 0
2: start_mclient: msz=2, tot_send_msgs=5, tot_recv_msgs=0, tot_send_bytes ~ 500, tot_recv_bytes ~ 0
3: start_mclient: msz=2, tot_send_msgs=5, tot_recv_msgs=0, tot_send_bytes ~ 500, tot_recv_bytes ~ 0
4: start_mclient: msz=2, tot_send_msgs=5, tot_recv_msgs=0, tot_send_bytes ~ 500, tot_recv_bytes ~ 0
5: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
6: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
7: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
8: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
9: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
10: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
11: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
11: done, connection 0x7f2842950010 closed.
12: start_mclient: msz=1, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
12: start_mclient: msz=1, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
14: start_mclient: msz=1, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
14: done, connection 0x7f284292f010 closed.
14: start_mclient: tot_send_msgs=10, tot_recv_msgs=0
14: start_mclient: tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
14: Total transmit time is 14
14: Total lost packets 10 (100.000000%), total send dropped 0 (0.000000%)
14: Average round trip delay 0.000000 ms; min = 4294967295 ms, max = 0 ms
14: Average jitter -nan ms; min = 4294967295 ms, max = 0 ms
With external ip mapping of turnserver in turnserver.conf:
0: IPv4. Connected from: LOCAL_IP_OF_TEST_CLIENT:51239
0: IPv4. Connected to: EXTERNAL_IP_OF_TURNSERVER:3478
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: success
0: IPv4. Received relay addr: LOCAL_IP_OF_TURNSERVER_IN_NETWORK_BEHIND_NAT:55456
0: clnet_allocate: rtv=13778300869919701620
0: refresh sent
0: refresh response received:
0: success
0: IPv4. Connected from: 192.168.1.10:44659
0: IPv4. Connected to: EXTERNAL_IP_OF_TURNSERVER:3478
0: IPv4. Connected from: 192.168.1.10:53107
0: IPv4. Connected to: EXTERNAL_IP_OF_TURNSERVER:3478
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: success
0: IPv4. Received relay addr: LOCAL_IP_OF_TURNSERVER_IN_NETWORK_BEHIND_NAT:55457
0: clnet_allocate: rtv=0
0: refresh sent
0: refresh response received:
0: success
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: success
0: IPv4. Received relay addr: LOCAL_IP_OF_TURNSERVER_IN_NETWORK_BEHIND_NAT:64116
0: clnet_allocate: rtv=12497462629213989747
0: refresh sent
0: refresh response received:
0: success
0: channel bind sent
0: cb response received:
0: success: 0x48d2
0: channel bind sent
0: cb response received:
0: success: 0x48d2
0: channel bind sent
0: cb response received:
0: success: 0x4504
0: channel bind sent
0: cb response received:
0: success: 0x4504
0: channel bind sent
0: cb response received:
0: success: 0x6933
0: Total connect time is 0
1: start_mclient: msz=2, tot_send_msgs=0, tot_recv_msgs=0, tot_send_bytes ~ 0, tot_recv_bytes ~ 0
2: start_mclient: msz=2, tot_send_msgs=0, tot_recv_msgs=0, tot_send_bytes ~ 0, tot_recv_bytes ~ 0
3: start_mclient: msz=2, tot_send_msgs=0, tot_recv_msgs=0, tot_send_bytes ~ 0, tot_recv_bytes ~ 0
4: start_mclient: msz=2, tot_send_msgs=5, tot_recv_msgs=0, tot_send_bytes ~ 500, tot_recv_bytes ~ 0
5: start_mclient: msz=2, tot_send_msgs=5, tot_recv_msgs=0, tot_send_bytes ~ 500, tot_recv_bytes ~ 0
6: start_mclient: msz=2, tot_send_msgs=5, tot_recv_msgs=0, tot_send_bytes ~ 500, tot_recv_bytes ~ 0
7: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
8: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
9: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
10: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
11: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
12: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
13: start_mclient: msz=2, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
13: done, connection 0x7f636b9a4010 closed.
14: start_mclient: msz=1, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
15: start_mclient: msz=1, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
16: start_mclient: msz=1, tot_send_msgs=10, tot_recv_msgs=0, tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
16: done, connection 0x7f636b983010 closed.
16: start_mclient: tot_send_msgs=10, tot_recv_msgs=0
16: start_mclient: tot_send_bytes ~ 1000, tot_recv_bytes ~ 0
16: Total transmit time is 16
16: Total lost packets 10 (100.000000%), total send dropped 0 (0.000000%)
16: Average round trip delay 0.000000 ms; min = 4294967295 ms, max = 0 ms
16: Average jitter -nan ms; min = 4294967295 ms, max = 0 ms