Solved [Solved] server sshd[]: warning: /etc/hosts.allow, line 26:

Hello list,
I have had problems, in order to fix this issued, but negative, I tried with google and nothing about.
Problem:
Code:
server sshd[1883]: warning: /etc/hosts.allow, line 26: can't verify hostname: getaddrinfo(address friend host, AF_INET) failed
System:
Code:
FreeBSD server.mydomain 10.0-RELEASE-p7 FreeBSD 10.0-RELEASE-p7 #0: Tue Jul  8 06:37:44 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
Daemons: denyhosts, fail2ban-server
Code:
/etc/hosts.allow
line 26
Code:
sshd : /etc/hosts.deniedssh : deny
Has anybody solved this?
 
Re: server sshd[]: warning: /etc/hosts.allow, line 26: can't

You can't use a reference to another file in hosts.allow(5). Instead of using that I highly recommend using one of the supported firewalls. It's a much better solution.
 
[SOLVED] server sshd[]: warning: /etc/hosts.allow, line 26:

SirDice said:
You can't use a reference to another file in hosts.allow(5). Instead of using that I highly recommend using one of the supported firewalls. It's a much better solution.
Thanks you, I fixed /etc/hosts.allow,
Code:
sshd,ftpd : "my.host.address.friend" : allow
ALL: .mydomain: ALLOW
ALL: ALL: DENY
I am using PF as Firewall
/etc/rc.d/pf
 
Back
Top