Author Topic: /etc/hosts.allow is this a bug or I am doing something wrong?  (Read 4031 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
/etc/hosts.allow is this a bug or I am doing something wrong?
« on: August 05, 2019, 08:46:12 AM »

In this file /etc/hosts.allow I have

sshd : 1.23.45.567 : allow
sshd : ALL : deny

Is the above wrong?  It is not working for me.
I still can ssh to server from any ip
I want to restrcit ssh to only 1.23.45.567 ip

Offline
**
Re: /etc/hosts.allow is this a bug or I am doing something wrong?
« Reply #1 on: August 05, 2019, 09:31:42 AM »
OK I think I discovered what was wrong, I removed port 22 from firewall
made sure I whitelist my static ip in firewall and have it in hosts.allow