|
|
@@ -18,6 +18,7 @@ chain=$(echo $2|tr '[:lower:]' '[:upper:]')
|
|
|
|
|
|
# Defining absolute path for iptables and modprobe
|
|
|
iptables="/sbin/iptables"
|
|
|
+ip6tables="/sbin/ip6tables"
|
|
|
|
|
|
# Includes
|
|
|
source $HESTIA/func/main.sh
|
|
|
@@ -32,16 +33,16 @@ check_args '2' "$#" 'IP CHAIN'
|
|
|
is_format_valid 'ip' 'chain'
|
|
|
is_system_enabled "$FIREWALL_SYSTEM" 'FIREWALL_SYSTEM'
|
|
|
|
|
|
-
|
|
|
# Perform verification if read-only mode is enabled
|
|
|
check_hestia_demo_mode
|
|
|
|
|
|
+
|
|
|
#----------------------------------------------------------#
|
|
|
# Action #
|
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
# Checking server ip
|
|
|
-if [ -e "$HESTIA/data/ips/$ip" ] || [ "$ip" = '127.0.0.1' ]; then
|
|
|
+if [ -e "$HESTIA/data/ips/$ip" ] || [ "$ip" = '127.0.0.1' ] || [ "$ip" = '::1' ]; then
|
|
|
exit
|
|
|
fi
|
|
|
|