Add support for speedtest. fix error txp/udp ports out.
This commit is contained in:
@ -53,6 +53,10 @@ allow_wg_out=true
|
||||
|
||||
allow_cisco_vpn_out=true
|
||||
|
||||
# speedtest
|
||||
#
|
||||
allow_speedtest=true
|
||||
|
||||
|
||||
# Gaming
|
||||
#
|
||||
|
@ -39,6 +39,10 @@ standard_wg_port=51820
|
||||
standard_whois_port=43
|
||||
standard_xymon_port=1984
|
||||
|
||||
# - speedtest
|
||||
# -
|
||||
standard_speedtest_port=8080
|
||||
|
||||
|
||||
# - Brother (brscan)
|
||||
# -
|
||||
|
@ -572,7 +572,7 @@ out_tcp_port_arr+=("$standard_dns_port")
|
||||
# - SSH out only
|
||||
# ---
|
||||
if $allow_ssh_request_out ; then
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_ssh_port")
|
||||
fi
|
||||
|
||||
# ---
|
||||
@ -818,7 +818,7 @@ if $allow_ntp_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_udp_port_arr+=("$_port")
|
||||
out_udp_port_arr+=("$standard_ntp_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -832,7 +832,7 @@ if $allow_pgpserver_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_pgp_keyserver_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -846,7 +846,7 @@ if $allow_telnet_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_telnet_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -860,7 +860,7 @@ if $allow_whois_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_whois_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -874,7 +874,7 @@ if $allow_cpan_wait_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_cpan_wait_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -888,7 +888,7 @@ if $allow_hbci_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_hbci_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -902,16 +902,7 @@ if $allow_jabber_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
|
||||
fi
|
||||
if $allow_jabber_request_out ; then
|
||||
|
||||
if containsElement "${standard_jabber_port}" "${out_tcp_port_arr[@]}" ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_jabber_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -925,7 +916,7 @@ if $allow_silc_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_silc_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -939,7 +930,7 @@ if $allow_irc_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_irc_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -953,7 +944,7 @@ if $allow_mysql_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_mysql_port")
|
||||
|
||||
fi
|
||||
|
||||
@ -987,7 +978,21 @@ if $allow_remote_console_request_out ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$_port")
|
||||
out_tcp_port_arr+=("$standard_remote_console_port")
|
||||
|
||||
fi
|
||||
|
||||
|
||||
# ---
|
||||
# - Allow speedtest ?
|
||||
# ---
|
||||
if $allow_speedtest ; then
|
||||
|
||||
if containsElement "${standard_speedtest_port}" "${out_tcp_port_arr[@]}" ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
out_tcp_port_arr+=("$standard_speedtest_port")
|
||||
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user