Add: Allow all traffic from local ip to the internet

This commit is contained in:
2019-07-09 15:47:48 +02:00
parent 45b144f416
commit f535a29ca6
5 changed files with 93 additions and 2 deletions

View File

@ -146,6 +146,18 @@ block_all_ext_to_local_net=""
# =============
# - Allow all traffic from local ip to the internet
# =============
# - allow_local_ip_to_inet
# -
# - Blank separated list of ip-adresses
# -
allow_local_ip_to_inet=""
# =============
# - Allow local services from given local networks
# =============

View File

@ -130,6 +130,21 @@ block_all_ext_to_local_net=""
# =============
# - Allow all traffic from local ip to the internet
# =============
# - allow_local_ip_to_inet
# -
# - Example:
# - allow_local_ip_to_inet="2a01:30:1fff:fd01::1/64 2a01:505:1fff:fd04::1"
# -
# - Blank separated list of ip-adresses
# -
allow_local_ip_to_inet=""
# =============
# - Allow local services from given local networks
# =============

View File

@ -109,6 +109,14 @@ for _net in $block_all_ext_to_local_net ; do
block_all_ext_to_local_net_arr+=("$_net")
done
# ---
# - Allow all traffic from local ip to the internet
# ---
declare -a allow_local_ip_to_inet_arr
for _ip in $allow_local_ip_to_inet ; do
allow_local_ip_to_inet_arr+=("$_ip")
done
# ---
# - Allow local services from given local networks
# ---