Remotely connect to fail2ban to do ports
Traefik can affect the edge, so blocks work there and prevent traffic hitting home network.
This commit is contained in:
6
ansible/roles/traefik/files/fail2ban/remote-action.conf
Normal file
6
ansible/roles/traefik/files/fail2ban/remote-action.conf
Normal file
@ -0,0 +1,6 @@
|
||||
[Definition]
|
||||
actionban = ssh -p 7743 f2b@{{ nebula.clients.casey.ip }} -i /root/.ssh/f2b/id_ed25519 set traefik banip <ip>
|
||||
actionunban = ssh -p 7743 f2b@{{ nebula.clients.casey.ip }} -i /root/.ssh/f2b/id_ed25519 set traefik unbanip <ip>
|
||||
actioncheck =
|
||||
actionstart =
|
||||
actionstop =
|
@ -1,9 +1,10 @@
|
||||
[traefik]
|
||||
enabled = true
|
||||
bantime = 6000
|
||||
findtime = 600
|
||||
findtime = 300
|
||||
maxretry = 5
|
||||
filter = traefik
|
||||
logpath = /tmp/traefik-logs/access.log
|
||||
port = http,https
|
||||
ignoreip = {{ wireguard.cidr }},{{ nebula.cidr }},{{ pve_hosts.internal_cidr }}
|
||||
action = gateway
|
||||
|
Reference in New Issue
Block a user