Fix error in creation a list of local IPv4/IPv6. Move this to firewall script 'ipt-firewall-gateway'/'ip6t-firewall-gateway'.
This commit is contained in:
parent
626e167854
commit
e4775f2155
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user