diff --git a/conf/post_decalrations.conf b/conf/post_decalrations.conf index 37c473d..6c3056e 100644 --- a/conf/post_decalrations.conf +++ b/conf/post_decalrations.conf @@ -878,11 +878,10 @@ fi # --- if $allow_pgpserver_request_out ; then - if containsElement "${standard_pgp_keyserver_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_pgp_keyserver_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_pgp_keyserver_port") fi - out_tcp_port_arr+=("$standard_pgp_keyserver_port") fi @@ -892,11 +891,10 @@ fi # --- if $allow_telnet_request_out ; then - if containsElement "${standard_telnet_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_telnet_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_telnet_port") fi - out_tcp_port_arr+=("$standard_telnet_port") fi @@ -906,11 +904,10 @@ fi # --- if $allow_whois_request_out ; then - if containsElement "${standard_whois_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_whois_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_whois_port") fi - out_tcp_port_arr+=("$standard_whois_port") fi @@ -920,11 +917,10 @@ fi # --- if $allow_cpan_wait_request_out ; then - if containsElement "${standard_cpan_wait_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_cpan_wait_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_cpan_wait_port") fi - out_tcp_port_arr+=("$standard_cpan_wait_port") fi @@ -934,11 +930,10 @@ fi # --- if $allow_hbci_request_out ; then - if containsElement "${standard_hbci_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_hbci_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_hbci_port") fi - out_tcp_port_arr+=("$standard_hbci_port") fi @@ -948,11 +943,10 @@ fi # --- if $allow_jabber_request_out ; then - if containsElement "${standard_jabber_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_jabber_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_jabber_port") fi - out_tcp_port_arr+=("$standard_jabber_port") fi @@ -962,11 +956,10 @@ fi # --- if $allow_silc_request_out ; then - if containsElement "${standard_silc_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_silc_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_silc_port") fi - out_tcp_port_arr+=("$standard_silc_port") fi @@ -976,11 +969,10 @@ fi # --- if $allow_irc_request_out ; then - if containsElement "${standard_irc_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_irc_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_irc_port") fi - out_tcp_port_arr+=("$standard_irc_port") fi @@ -990,11 +982,10 @@ fi # --- if $allow_mysql_request_out ; then - if containsElement "${standard_mysql_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_mysql_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_mysql_port") fi - out_tcp_port_arr+=("$standard_mysql_port") fi @@ -1024,11 +1015,10 @@ fi # --- if $allow_remote_console_request_out ; then - if containsElement "${standard_remote_console_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_remote_console_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_remote_console_port") fi - out_tcp_port_arr+=("$standard_remote_console_port") fi @@ -1038,11 +1028,10 @@ fi # --- if $allow_speedtest ; then - if containsElement "${standard_speedtest_port}" "${out_tcp_port_arr[@]}" ; then - continue + if ! containsElement "${standard_speedtest_port}" "${out_tcp_port_arr[@]}" ; then + out_tcp_port_arr+=("$standard_speedtest_port") fi - out_tcp_port_arr+=("$standard_speedtest_port") fi @@ -1107,7 +1096,7 @@ declare -a standard_turn_service_tcp_port_arr=() declare -a standard_turn_service_udp_port_arr=() CUR_IFS="$IFS" IFS=',' ; for _port in $standard_turn_service_ports ; do - if ! containsElement "${_port}" "${out_tcp_port_arr[@]}" ; then + if containsElement "${_port}" "${out_tcp_port_arr[@]}" ; then continue fi @@ -1119,7 +1108,7 @@ IFS=',' ; for _port in $standard_turn_service_ports ; do done IFS=',' ; for _port in $standard_turn_service_ports ; do - if ! containsElement "${_port}" "${out_udp_port_arr[@]}" ; then + if containsElement "${_port}" "${out_udp_port_arr[@]}" ; then continue fi @@ -1132,7 +1121,7 @@ IFS=',' ; for _port in $standard_turn_service_ports ; do done IFS=',' ; for _port in $standard_turn_service_udp_ports ; do - if ! containsElement "${_port}" "${out_udp_port_arr[@]}" ; then + if containsElement "${_port}" "${out_udp_port_arr[@]}" ; then continue fi