Page 1 of 1

How to exclude some IPs from SSH email alerts

Posted: 26 Jul 2023, 11:57
by inna
Hello,

Suppose my server IP is 1.1.1.1. I have script in servers like 2.2.2.2 and 3.3.3.3 that they connect to 1 every 10 minutes. I'm receiving SSH alert email every 10 minutes.

I didn't find a way to exclude the 2 and 3 IPs so that there won't be emails from them.

I should mention that accessing to servers are limited to specific IPs, so I don't worry about this request.

Is there any way to do that?

Thanks in advance

Re: How to exclude some IPs from SSH email alerts

Posted: 02 Aug 2023, 05:56
by Sergio
Have you tried to add those IPs at CSF.IGNORE?

Re: How to exclude some IPs from SSH email alerts

Posted: 08 Aug 2023, 12:13
by inna
Sergio wrote: 02 Aug 2023, 05:56 Have you tried to add those IPs at CSF.IGNORE?
Yes, I tried but I still receive SSH Alert emails from those IPs.

Re: How to exclude some IPs from SSH email alerts

Posted: 12 Aug 2023, 04:07
by Sergio
I had the same issue and what I did in cPanel was to create an email filter to delete those emails and for me that was the only way to get rid of them.