Topic: Updating fail2ban to match changed SSH port
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0
- Deployed with iRedMail Easy or the downloadable installer? .sh
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have changed the default SSH port from 22 to a nonstandard port and allowed it through the firewall. (I am aware I could lock access to my IP however I do not have a static IP) I want a fail2ban jail protecting SSH access over this port. I see that fail2ban.local already exists and I see it has a few lines overriding fail2ban.conf so I added:
[sshd]
port = *changed port*
I do not want to edit fail2ban.conf so did I do this correctly? I want to override the port set for the sshd port in fail2ban.conf
Thank you.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.