From 495369b06f6a3d094d601d10d3e2b18772026789 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 19 Mar 2019 12:42:15 +0100 Subject: [PATCH] Add TCP/UDP Ports out. --- conf/main_ipv4.conf.sample | 22 ++++++++++++++++++++++ conf/main_ipv6.conf.sample | 22 ++++++++++++++++++++++ conf/post_decalrations.conf | 18 ++++++++++++++++++ 3 files changed, 62 insertions(+) diff --git a/conf/main_ipv4.conf.sample b/conf/main_ipv4.conf.sample index 8be4cdc..5356f27 100644 --- a/conf/main_ipv4.conf.sample +++ b/conf/main_ipv4.conf.sample @@ -1073,6 +1073,28 @@ tv_extern_if="eth2.8" tv_local_if="$local_if_1" +# ===== +# --- Allow special TCP Ports (OUT) +# ===== + +# - TCP Ports +# - +# - Blank separated list of tcp ports +# - +tcp_out_ports="" + + +# ===== +# --- Allow special UDP Ports (OUT) +# ===== + +# - UDP Ports +# - +# - Blank separated list udp ports +# - +udp_out_ports="" + + # ====== # - Other local Services diff --git a/conf/main_ipv6.conf.sample b/conf/main_ipv6.conf.sample index f6c74f4..36c8bf2 100644 --- a/conf/main_ipv6.conf.sample +++ b/conf/main_ipv6.conf.sample @@ -1041,6 +1041,28 @@ tv_extern_if="eth2.8" tv_local_if="$local_if_1" +# ===== +# --- Allow special TCP Ports (OUT) +# ===== + +# - TCP Ports +# - +# - Blank separated list of tcp ports +# - +tcp_out_ports="" + + +# ===== +# --- Allow special UDP Ports (OUT) +# ===== + +# - UDP Ports +# - +# - Blank separated list of udp ports +# - +udp_out_ports="" + + # ====== # - Other local Services diff --git a/conf/post_decalrations.conf b/conf/post_decalrations.conf index 65e3189..f92b650 100644 --- a/conf/post_decalrations.conf +++ b/conf/post_decalrations.conf @@ -410,6 +410,24 @@ for _ip in $rsync_out_ips ; do rsync_out_ip_arr+=("$_ip") done +# --- +# - Special TCP Ports OUT +# --- +# local +declare -a tcp_out_port_arr +for _port in $tcp_out_ports ; do + tcp_out_port_arr+=("$_port") +done + +# --- +# - Special UDP Ports OUT +# --- +# local +declare -a udp_out_port_arr +for _port in $udp_out_ports ; do + udp_out_port_arr+=("$_port") +done + # --- # - Other local Services # ---