Page 1 of 1

Blocking SSH Connections Except In hosts.allow, what rule?

Posted: 31 Mar 2024, 14:07
by XTechSuppX
Hello,

After upgrading to Rocky Linux and latest cPanel install, they wont allow Host Access Control anymore. So, I am trying to block all SSH connection except allow IP in the hosts.allow:

=============================
ALL : 1.1.1.1 : allow
sshd : 1.2.3.4 : allow
sshd : ALL : deny
=============================

What rule in the CSF can be defined to achieve the above SSH to block all incoming connections except allowed IP addresses?

Thank you !!