I'm at a loss to explain why these rules don't have the same effect as whitelisting ip addresses. Can anyone tell me why?
# /etc/hosts.deny
sshd : 61.174.51.215 : deny
sshd : ALL : deny
# /etc/hosts.allow
sshd : 10.1.2.186 : allow
sshd : 42.42.42... : allow
I then go to the command line and run systemctl start iptables.service
What am I doing wrong?