Add support for NCs Talk app with own stun/turn server.
This commit is contained in:
@ -1769,6 +1769,35 @@ else
|
||||
fi
|
||||
|
||||
|
||||
# ---
|
||||
# - TURN Service (for NC Talk App)
|
||||
# ---
|
||||
|
||||
echononl "\t\tTURN Service (for NC Talk App) both: udp and tcp"
|
||||
|
||||
if [[ ${#nc_turn_server_ip_arr[@]} -gt 0 ]] || [[ ${#forward_nc_turn_server_ip_arr[@]} -gt 0 ]] ; then
|
||||
|
||||
if [[ ${#nc_turn_server_ip_arr[@]} -gt 0 ]] ; then
|
||||
for _ip in ${nc_turn_server_ip_arr[@]} ; do
|
||||
$ip6t -A INPUT -p tcp -d $_ip -m multiport --dports $nc_turn_ports -m state --state NEW -j ACCEPT
|
||||
$ip6t -A INPUT -p udp -d $_ip -m multiport --dports $nc_turn_ports -m state --state NEW -j ACCEPT
|
||||
done
|
||||
fi
|
||||
|
||||
if [[ ${#forward_nc_turn_server_ip_arr[@]} -gt 0 ]] && $kernel_forward_between_interfaces ; then
|
||||
for _ip in ${forward_nc_turn_server_ip_arr[@]} ; do
|
||||
$ip6t -A FORWARD -p tcp -d $_ip -m multiport --dports $nc_turn_ports -m state --state NEW -j ACCEPT
|
||||
$ip6t -A FORWARD -p udp -d $_ip -m multiport --dports $nc_turn_ports -m state --state NEW -j ACCEPT
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
echo_done
|
||||
else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
|
||||
# ---
|
||||
# - Jitsi Video Conferencing Service
|
||||
# ---
|
||||
|
Reference in New Issue
Block a user