When Fail2ban identify an IP as a possible threat it will modify your firewall (iptables) to block that IP from accessing your service. So if IP 1.2.3.4 has tried too many times to access your server through SSH but failled, fail2ban will "tell" iptables to block this IP from accessing your server through your "ssh" port. Which translate to port 22. But what if your SSH server is on port 44000?
Following the guide, you may remember that the best place to modify your configuration is in
/etc/fail2ban/jail.local
. Since ssh filter is already enabled in the default configuration, you only have to specify the new port:[ssh]
port=44000
port=44000
Same for other services:
[apache]
port=8080
port=8080
No comments:
Post a Comment