Skip to content
Snippets Groups Projects
Verified Commit 29243588 authored by David Beniamine's avatar David Beniamine
Browse files

Ignore traefik and local traefik IPs

parent 9b2cf0d6
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,6 @@ cat <<EOF > /etc/fail2ban/jail.local
[DEFAULT]
# Ignore Tetras Libre IPs
ignoreip = $(dig +short servermon.tetras-libre.fr | tail -n 1) $(dig +short tetrix.tetras-libre.fr | tail -n 1)
ignoreip = 127.0.0.1/8 ::1 $(dig +short servermon.tetras-libre.fr | tail -n 1) $(dig +short tetrix.tetras-libre.fr | tail -n 1) $(docker network inspect traefik | awk '/Subnet/{print $2}' | sed -e 's/"//g' -e 's/,$//')
EOF
fail2ban-client reload
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment