Modify gaming rules.
This commit is contained in:
@ -540,6 +540,11 @@ done
|
||||
declare -a out_udp_port_arr=()
|
||||
declare -a out_tcp_port_arr=()
|
||||
|
||||
# Servives local ports
|
||||
#
|
||||
declare -a out_udp_local_port_arr=()
|
||||
declare -a out_tcp_local_port_arr=()
|
||||
|
||||
# ---
|
||||
# - DNS out only
|
||||
# ---
|
||||
@ -1429,17 +1434,87 @@ done
|
||||
# ---
|
||||
# Gaming
|
||||
# ---
|
||||
if $allow_game_xbox_one_out \
|
||||
|
||||
if $allow_game_steam_out \
|
||||
|| $allow_game_call_of_duty \
|
||||
|| $allow_game_xbox_one_out \
|
||||
|| $allow_game_xbox_360_out \
|
||||
|| $allow_game_ps3_out \
|
||||
|| $allow_game_ps4_out \
|
||||
|| $allow_game_fifa21_out ; then
|
||||
|
||||
|
||||
allow_gaming_out=true
|
||||
else
|
||||
allow_gaming_out=false
|
||||
fi
|
||||
|
||||
|
||||
# Games local ports
|
||||
#
|
||||
declare -a game_ports_local_udp_arr=()
|
||||
if $allow_game_steam_out ; then
|
||||
IFS=',' ; for _port in $standard_game_steam_udp_local_ports ; do
|
||||
|
||||
if containsElement "${_port}" "${out_udp_local_port_arr[@]}" ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_udp_local_port_arr+=("$_port")
|
||||
|
||||
game_ports_local_udp_arr+=("$_port")
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
|
||||
if $allow_game_call_of_duty ; then
|
||||
IFS=',' ; for _port in $standard_game_call_of_duty_udp_local_ports ; do
|
||||
|
||||
if containsElement "${_port}" "${out_udp_local_port_arr[@]}" ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_udp_local_port_arr+=("$_port")
|
||||
|
||||
game_ports_local_udp_arr+=("$_port")
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
|
||||
declare -a game_ports_local_tcp_arr=()
|
||||
if $allow_game_steam_out ; then
|
||||
IFS=',' ; for _port in $standard_game_steam_tcplocal_ports ; do
|
||||
|
||||
if containsElement "${_port}" "${out_tcp_local_port_arr[@]}" ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_local_port_arr+=("$_port")
|
||||
|
||||
game_ports_local_tcp_arr+=("$_port")
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Games (remote) ports
|
||||
#
|
||||
declare -a game_ports_udp_arr=()
|
||||
if $allow_gaming_out ; then
|
||||
IFS=',' ; for _port in $standard_game_universell_udp ; do
|
||||
|
||||
if containsElement "${_port}" "${out_udp_port_arr[@]}" ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
game_ports_udp_arr+=("$_port")
|
||||
|
||||
out_udp_port_arr+=("$_port")
|
||||
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $allow_game_xbox_360_out ; then
|
||||
IFS=',' ; for _port in $standard_game_xbox_one_udp_ports ; do
|
||||
|
||||
@ -1565,6 +1640,21 @@ fi
|
||||
|
||||
|
||||
declare -a game_ports_tcp_arr=()
|
||||
if $allow_gaming_out ; then
|
||||
IFS=',' ; for _port in $standard_game_universell_tcp ; do
|
||||
|
||||
if containsElement "${_port}" "${out_tcp_port_arr[@]}" ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
game_ports_tcp_arr+=("$_port")
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
|
||||
done
|
||||
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $allow_game_xbox_360_out ; then
|
||||
IFS=',' ; for _port in $standard_game_xbox_one_tcp_ports ; do
|
||||
|
||||
|
Reference in New Issue
Block a user