From e4775f2155e398b8a19fe39a0e17324250635814 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 4 Sep 2019 13:27:54 +0200 Subject: [PATCH] Fix error in creation a list of local IPv4/IPv6. Move this to firewall script 'ipt-firewall-gateway'/'ip6t-firewall-gateway'. --- conf/main_ipv4.conf.sample | 10 ---------- conf/main_ipv6.conf.sample | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/conf/main_ipv4.conf.sample b/conf/main_ipv4.conf.sample index 4d7c1a2..a00158f 100644 --- a/conf/main_ipv4.conf.sample +++ b/conf/main_ipv4.conf.sample @@ -4,16 +4,6 @@ ## --- Main Configurations Ipv4 Firewall Script ipt-firewall ## --------------------------------------------------------- -# --- -# - IPv4 Addresses Gateway -# --- -declare -a gateway_ipv4_address_arr - -_ips="$(ip a | grep "inet " | awk '{print$2}' | cut -d'/' -f1)" -for _ip in $_ips ; do - gateway_ipv4_address_arr+=("$_ip") -done - # ============= # --- Interfaces completly blocked diff --git a/conf/main_ipv6.conf.sample b/conf/main_ipv6.conf.sample index 3274dfe..0d242f3 100644 --- a/conf/main_ipv6.conf.sample +++ b/conf/main_ipv6.conf.sample @@ -4,16 +4,6 @@ ## --- Main Configurations Ipv6 Firewall Script ipt-firewall ## --------------------------------------------------------- -# --- -# - IPv6 Addresses Gateway -# --- -declare -a gateway_ipv6_address_arr - -_ips="$(ip a | grep "inet6 " | awk '{print$2}' | cut -d'/' -f1)" -for _ip in $_ips ; do - gateway_ipv6_address_arr+=("$_ip") -done - # ============= # --- Interfaces completly blocked