Skip to content
Snippets Groups Projects

Services desk 81 redistributivite securimag

3 files
+ 13
13
Compare changes
  • Side-by-side
  • Inline

Files

+ 5
5
@@ -49,12 +49,12 @@ EOF
ignoreips=()
for domaine in "${IGNORE_DOMAINES[@]}"; do
# Utilise dig pour obtenir l'adresse IP
ip=$(dig +short "$domaine")
for domain in "${IGNORE_DOMAINS[@]}"; do
# Use dig to get the IP address
ip=$(dig +short "$domain")
ignoreips=("${ignoreips[@]}" $ip)
# Affiche le nom de domaine et l'adresse IP
echo "$domaine : $ip"
# Displays the domain name and IP addresss
echo "$domain : $ip"
done
cat <<EOF > /etc/fail2ban/jail.local
Loading