geerlingguy / ansible-role-security

Ansible Role - Security

Home Page:https://galaxy.ansible.com/geerlingguy/security/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configure Fail2ban sshd port, if enabled

f-lopes opened this issue · comments

This role gives the possibility (and encourages) to change SSH port number.

If the SSH port number is customized (not 22), the sshd Fail2ban jail will not work without providing the ssh port to block through a /etc/fail2ban/jail.local file.

I will submit a PR to fix this and provide a way to customize jails as well.