Web Hosting Talk







View Full Version : Easy Question


anto
07-19-2001, 03:35 PM
Hi,

I'd like to allow some domain to access my telnet
port. What do I write in /etc/hosts.allow ?

I have tried
In.telnetd : .somedomain.com : ALLOW

It does not work. :(

Thanks for your help.

Anto.

XTStrike
07-19-2001, 05:33 PM
have you tried putting into /etc/hosts.allow:

telnetd: host.domain.com

i think that will work, im getting ready to move house tomorrow so all my reference books are in boxes :-(

(notice how the PC is the last to be disconnected, lol)

anto
07-19-2001, 08:44 PM
Originally posted by xtstrike
have you tried putting into /etc/hosts.allow:

telnetd: host.domain.com


No, still does not work. :(
BTW, the server is RedHat 7.1

Anyone willing to help me? ;)

Thanks.

Anto.

Helicon
07-19-2001, 09:20 PM
First, you need to do deny all in /etc/hosts.deny

/etc/hosts.deny
ALL: ALL

Secondly, you allow access to your server through /etc/hosts.allow

/etc/hosts.allow
in.telnetd: .domain.com

remarkable
07-19-2001, 09:23 PM
have you tried `man hosts.allow` ?

Make sure you have the name of the daemon correct.