working voip

This commit is contained in:
Michele Guerini Rocco 2021-03-15 00:10:19 +01:00
parent d062eeaca7
commit 7c549f57db
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
3 changed files with 18 additions and 12 deletions

View File

@ -40,8 +40,8 @@
993 # imaps server
25 465 # smtp(s) server
8080 # hubot
3478 # turn server
5349 # turn server
5350 # turn server
3551 # apcups
5001 # iperf server
18080 # monero p2p
@ -51,6 +51,7 @@
firewall.allowedUDPPorts = [
53 # powerdns
1194 # dnscrypt
3478 # turn server
21027 # syncthing discovery
64738 # mumble server
];

View File

@ -72,11 +72,11 @@ in
server_name = config.var.hostname;
# Tell users about our TURN server
turn_uris = [
"turn:${config.var.hostname}:5349?transport=udp"
"turn:${config.var.hostname}:5350?transport=udp"
"turn:${config.var.hostname}:5349?transport=tcp"
"turn:${config.var.hostname}:5350?transport=tcp"
turn_uris = with config.services.coturn; [
"turn:${realm}:${toString listening-port}?transport=udp"
"turn:${realm}:${toString listening-port}?transport=tcp"
"turns:${realm}:${toString tls-listening-port}?transport=udp"
"turns:${realm}:${toString tls-listening-port}?transport=tcp"
];
# Bind on localhost and used a reverse proxy
@ -153,6 +153,7 @@ in
# needed for reliable VoIP.
services.coturn = {
enable = true;
no-cli = true;
# Only allow users vouched for
# by the Matrix server.
@ -173,16 +174,20 @@ in
secure-stun = true;
no-tcp-relay = false;
listening-ips = [ "0.0.0.0" ];
extraConfig = ''
external-ip=${config.var.ipAddress}
cipher-list=HIGH
no-loopback-peers
no-multicast-peers
denied-peer-ip=10.0.0.0-10.255.255.255
denied-peer-ip=192.168.0.0-192.168.255.255
no-tlsv1
no-tlsv1_1
mobility
#denied-peer-ip=10.0.0.0-10.255.255.255
#denied-peer-ip=192.168.0.0-192.168.255.255
allowed-peer-ip=192.168.1.5
user-quota=12
total-quota=1200
#user-quota=12
#total-quota=1200
verbose=true
'';
};

View File

@ -10,7 +10,7 @@
readOnly = true;
default = {
hostname = "maxwell.ydns.eu";
ipAddress = "2.25.5.112";
ipAddress = "2.35.5.112";
};
description = "Global constants.";
};