Fail2ban not banning IPs

Locked
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Fail2ban not banning IPs

Post by Tony20 »

Hello,
Does Fail2ban needs to be config to work Keyhelp?


looking sudo fail2ban-client status sshd it show no banned IPs.

Do I have to edit the /etc/fail2ban/jail.conf for it to work? or I don't need to edit anything?

I changed my ssh default port 22 .. could that be the reason is not banning IPs?


Tony.
User avatar
andromeda
Posts: 83
Joined: Wed 25. Nov 2020, 13:49

Re: Fail2ban not banning IPs

Post by andromeda »

You may try to adjust the port in jail.conf
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Re: Fail2ban not banning IPs

Post by Tony20 »

andromeda wrote: Wed 6. Jan 2021, 15:18 You may try to adjust the port in jail.conf

I read that jail.conf get overwritten with updates. it say on top "You should not modify this file"
I think keyhelp use a different file. to conf fail2ban.

I try creating the jail.local but it didn't work got this error.

ERROR Failed to access socket path: /var/run/fail2ban/ fail2ban.sock. Is fail2ban running?


I am using Ubuntu 20.04.
User avatar
andromeda
Posts: 83
Joined: Wed 25. Nov 2020, 13:49

Re: Fail2ban not banning IPs

Post by andromeda »

Tony20 wrote: Wed 6. Jan 2021, 16:13
andromeda wrote: Wed 6. Jan 2021, 15:18 You may try to adjust the port in jail.conf

I read that jail.conf get override with updates.

I think keyhelp use a different file. to conf fail2ban.

I try creating the jail.local but it didn't work got this error.

ERROR Failed to access socket path: /var/run/fail2ban/ fail2ban.sock. Is fail2ban running?
maybe there is some kind of misconfiguration.

Code: Select all

demo@demo:/etc/fail2ban/jail.d$ ls
defaults-debian.conf
keyhelp.local
Locked