How to exclude some IPs from SSH email alerts

Post Reply
inna
Junior Member
Posts: 2
Joined: 26 Jul 2023, 11:50

How to exclude some IPs from SSH email alerts

Post 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
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: How to exclude some IPs from SSH email alerts

Post by Sergio »

Have you tried to add those IPs at CSF.IGNORE?
inna
Junior Member
Posts: 2
Joined: 26 Jul 2023, 11:50

Re: How to exclude some IPs from SSH email alerts

Post 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.
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: How to exclude some IPs from SSH email alerts

Post 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.
Post Reply