Hello
I'm trying to run fail2ban on a jail, the jail has the same ip as the Host but with sshd on a different portnumber.
I put this into /usr/local/etc/fail2ban/jail.d/
I am unsure how to tell fail2ban that the attempts coming out of this logile are on another port then the host systems sshd and how to give fail2ban this port.
Any advice would be appreciated.
I'm trying to run fail2ban on a jail, the jail has the same ip as the Host but with sshd on a different portnumber.
I put this into /usr/local/etc/fail2ban/jail.d/
Code:
[ssh-jail-pf]
enabled = true
filter = sshd
action = pf
# sendmail-whois[name=SSH, dest=root@localhost, sender=noreply@localhost]
logpath = /usr/jails/shell/var/log/auth.log
findtime = 600
maxretry = 3
bantime = 360000
I am unsure how to tell fail2ban that the attempts coming out of this logile are on another port then the host systems sshd and how to give fail2ban this port.
Any advice would be appreciated.