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

Post Reply
XTechSuppX
Junior Member
Posts: 1
Joined: 31 Mar 2024, 14:02

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

Post 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 !!
Post Reply