Hello,
I am tired of all these spammers who try to send spam mails over my server or to get access to SSH or FTP. So I configured fail2ban with very strong rules (1 failed attempt per jail, only recidive allows 2) and the list of blocked IPs is growing daily. I also added an apache-404 fail2ban filter, that filters out any IP address for people or bots searching for wordpress installations, which do not exist on my server. For this reason I changed the firewall rule for SSH (disallow all incoming traffic) and I thought of doing the same with SMTP service (sending mail server, disallow all incoming traffic, allow outgoing traffic). Does it make sense to do so? Does the SMTP server send emails then or not? I just would like to make the server unavailable for spammers and hackers.
I am tired of all these spammers who try to send spam mails over my server or to get access to SSH or FTP. So I configured fail2ban with very strong rules (1 failed attempt per jail, only recidive allows 2) and the list of blocked IPs is growing daily. I also added an apache-404 fail2ban filter, that filters out any IP address for people or bots searching for wordpress installations, which do not exist on my server. For this reason I changed the firewall rule for SSH (disallow all incoming traffic) and I thought of doing the same with SMTP service (sending mail server, disallow all incoming traffic, allow outgoing traffic). Does it make sense to do so? Does the SMTP server send emails then or not? I just would like to make the server unavailable for spammers and hackers.