Einen Überblick über das Administrationstool KeyHelp der Keyweb AG und dessen Download gibt es auf https://www.keyhelp.de

Dieses Forum soll es interessierten Benutzern ermöglichen, sich über KeyHelp auszutauschen und Hilfe bei Problemen zu finden.

Fail2ban not banning IPs

For questions about the usage of KeyHelp and the configuration of it services.
Antworten
Tony20
Beiträge: 21
Registriert: Di 7. Apr 2020, 19:21

Fail2ban not banning IPs

Beitrag von 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.
Benutzeravatar
andromeda
Beiträge: 41
Registriert: Mi 25. Nov 2020, 13:49

Re: Fail2ban not banning IPs

Beitrag von andromeda »

You may try to adjust the port in jail.conf
Tony20
Beiträge: 21
Registriert: Di 7. Apr 2020, 19:21

Re: Fail2ban not banning IPs

Beitrag von Tony20 »

andromeda hat geschrieben:
Mi 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.
Benutzeravatar
andromeda
Beiträge: 41
Registriert: Mi 25. Nov 2020, 13:49

Re: Fail2ban not banning IPs

Beitrag von andromeda »

Tony20 hat geschrieben:
Mi 6. Jan 2021, 16:13
andromeda hat geschrieben:
Mi 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.

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