fix some error concerning game ports.
This commit is contained in:
@ -16,6 +16,16 @@ IFS=',' ; for _port in $standard_http_ports ; do
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
|
||||
# ---
|
||||
# - Standard mail user prts
|
||||
# ---
|
||||
declare -a standard_mailuser_port_arr
|
||||
CUR_IFS="$IFS"
|
||||
IFS=',' ; for _port in $standard_mailuser_ports ; do
|
||||
standard_mailuser_port_arr+=("${_port}")
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
|
||||
|
||||
# ---
|
||||
# - Masquerade TCP Connections
|
||||
@ -784,70 +794,70 @@ fi
|
||||
declare -a game_ports_udp_arr
|
||||
if $allow_game_xbox_360_out ; then
|
||||
IFS=',' ; for _port in $standard_game_xbox_one_udp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_udp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_udp_arr+==("$_port")
|
||||
game_ports_udp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $standard_game_xbox_one_udp_ports ; then
|
||||
if $allow_game_xbox_one_out ; then
|
||||
IFS=',' ; for _port in $standard_game_xbox_one_udp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_udp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_udp_arr+==("$_port")
|
||||
game_ports_udp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $standard_game_ps3_udp_ports ; then
|
||||
if $allow_game_ps3_out ; then
|
||||
IFS=',' ; for _port in $standard_game_ps3_udp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_udp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_udp_arr+==("$_port")
|
||||
game_ports_udp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $standard_game_ps4_udp_ports ; then
|
||||
if $allow_game_ps4_out ; then
|
||||
IFS=',' ; for _port in $standard_game_ps4_udp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_udp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_udp_arr+==("$_port")
|
||||
game_ports_udp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $standard_game_fifa21_udp_ports ; then
|
||||
if $allow_game_fifa21_out ; then
|
||||
IFS=',' ; for _port in $standard_game_fifa21_udp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_udp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_udp_arr+==("$_port")
|
||||
game_ports_udp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
@ -858,80 +868,90 @@ allow_stun_turn_service_out allow_stun_turn_service_out
|
||||
declare -a game_ports_tcp_arr
|
||||
if $allow_game_xbox_360_out ; then
|
||||
IFS=',' ; for _port in $standard_game_xbox_one_tcp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif $allow_http_request_out && containsElement "${_port}" "${standard_http_port_arr[@]}" ; then
|
||||
continue
|
||||
elif $allow_mail_request_out && containsElement "${_port}" "${standard_mailuser_port_arr[@]}" ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_tcp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_tcp_arr+==("$_port")
|
||||
game_ports_tcp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $standard_game_xbox_one_tcp_ports ; then
|
||||
if $allow_game_xbox_one_out ; then
|
||||
IFS=',' ; for _port in $standard_game_xbox_one_tcp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif $allow_http_request_out && containsElement "${_port}" "${standard_http_port_arr[@]}" ; then
|
||||
continue
|
||||
elif $allow_mail_request_out && containsElement "${_port}" "${standard_mailuser_port_arr[@]}" ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_tcp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_tcp_arr+==("$_port")
|
||||
game_ports_tcp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $standard_game_ps3_tcp_ports ; then
|
||||
if $allow_game_ps3_out ; then
|
||||
IFS=',' ; for _port in $standard_game_ps3_tcp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif $allow_http_request_out && containsElement "${_port}" "${standard_http_port_arr[@]}" ; then
|
||||
continue
|
||||
elif $allow_mail_request_out && containsElement "${_port}" "${standard_mailuser_port_arr[@]}" ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_tcp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_tcp_arr+==("$_port")
|
||||
game_ports_tcp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $standard_game_ps4_tcp_ports ; then
|
||||
if $allow_game_ps4_out ; then
|
||||
IFS=',' ; for _port in $standard_game_ps4_tcp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif $allow_http_request_out && containsElement "${_port}" "${standard_http_port_arr[@]}" ; then
|
||||
continue
|
||||
elif $allow_mail_request_out && containsElement "${_port}" "${standard_mailuser_port_arr[@]}" ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_tcp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_tcp_arr+==("$_port")
|
||||
game_ports_tcp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
fi
|
||||
if $standard_game_fifa21_tcp_ports ; then
|
||||
if $allow_game_fifa21_out ; then
|
||||
IFS=',' ; for _port in $standard_game_fifa21_tcp_ports ; do
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr}" ; then
|
||||
if $allow_stun_turn_service_out && containsElement "${_port}" "${standard_turn_service_port_arr[@]}" ; then
|
||||
continue
|
||||
elif [[ "$_port" = "$standard_dns_port" ]] ; then
|
||||
continue
|
||||
elif $allow_http_request_out && containsElement "${_port}" "${standard_http_port_arr[@]}" ; then
|
||||
continue
|
||||
elif $allow_mail_request_out && containsElement "${_port}" "${standard_mailuser_port_arr[@]}" ; then
|
||||
continue
|
||||
elif containsElement "${_port}" "${game_ports_tcp_arr[@]}" ; then
|
||||
continue
|
||||
else
|
||||
game_ports_tcp_arr+==("$_port")
|
||||
game_ports_tcp_arr+=("$_port")
|
||||
fi
|
||||
done
|
||||
IFS="$CUR_IFS"
|
||||
|
Reference in New Issue
Block a user