Add support for speedtest. fix error txp/udp ports out.

This commit is contained in:
2023-12-07 22:37:04 +01:00
parent 3052da6795
commit 358a81cce9
5 changed files with 64 additions and 52 deletions

View File

@ -5090,15 +5090,15 @@ fi
# ---
# - Special TCP Ports OUT
# - Collected TCP Ports OUT
# ---
echononl "\t\tSpecial TCP Ports OUT"
echononl "\t\tCollected TCP Ports OUT"
if [[ ${#tcp_out_port_arr[@]} -gt 0 ]] ; then
if [[ ${#out_tcp_port_arr[@]} -gt 0 ]] ; then
for _dev in ${ext_if_arr[@]} ; do
for _port in ${tcp_out_port_arr[@]} ; do
for _port in ${out_tcp_port_arr[@]} ; do
$ipt -A OUTPUT -o $_dev -p tcp --dport $_port -m state --state NEW -j ACCEPT
if $kernel_activate_forwarding ; then
$ipt -A FORWARD -o $_dev -p tcp --dport $_port -m state --state NEW -j ACCEPT
@ -5113,15 +5113,15 @@ fi
# ---
# - Special UDP Ports OUT
# - Collected UDP Ports OUT
# ---
echononl "\t\tSpecial UDP Ports OUT"
echononl "\t\tCollected UDP Ports OUT"
if [[ ${#udp_out_port_arr[@]} -gt 0 ]] ; then
if [[ ${#out_udp_port_arr[@]} -gt 0 ]] ; then
for _dev in ${ext_if_arr[@]} ; do
for _port in ${udp_out_port_arr[@]} ; do
for _port in ${out_udp_port_arr[@]} ; do
$ipt -A OUTPUT -o $_dev -p udp --dport $_port -m state --state NEW -j ACCEPT
if $kernel_activate_forwarding ; then
$ipt -A FORWARD -o $_dev -p udp --dport $_port -m state --state NEW -j ACCEPT