Networking Forums

Networking Forums > Computer Networking > Linux Networking > hosts.deny and hosts.allow problem

Reply
Thread Tools Display Modes

hosts.deny and hosts.allow problem

 
 
dan
Guest
Posts: n/a

 
      06-14-2005, 08:30 PM
Hi. I'm having trouble setting up my hosts.allow and hosts.deny files.
Basically I only want to be able to ssh in from one particular ip
address, e.g. xxx.xxx.xxx.xxx.

When my setup is:

# cat /etc/hosts.deny
ALL: ALL

# cat /etc/hosts.allow

I _cannot_ ssh in, as expected.



When it is:

# cat /etc/hosts.deny

# cat /etc/hosts.allow

I _can_ ssh in, as expected


But when it is:

# cat /etc/hosts.deny
ALL: ALL

# cat /etc/hosts.allow
sshd: xxx.xxx.xxx.xxx

I cannot ssh in.... I can't even get in when I do:

# cat /etc/hosts.allow
sshd: ALL

So it seems like hosts.deny works as I would anticipate, but
hosts.allow doesn't seem to be overuling hosts.deny.

Anyone have any clue? This is Redhat 9

Thanks in advance....

Dan

 
Reply With Quote
 
 
 
 
Andrew Schulman
Guest
Posts: n/a

 
      06-14-2005, 08:58 PM

> Hi. I'm having trouble setting up my hosts.allow and hosts.deny files.
> Basically I only want to be able to ssh in from one particular ip
> address, e.g. xxx.xxx.xxx.xxx.
>
> When my setup is:
>
> # cat /etc/hosts.deny
> ALL: ALL
>
> # cat /etc/hosts.allow
>
> I _cannot_ ssh in, as expected.
>
> When it is:
>
> # cat /etc/hosts.deny
>
> # cat /etc/hosts.allow
>
> I _can_ ssh in, as expected
>
> But when it is:
>
> # cat /etc/hosts.deny
> ALL: ALL
>
> # cat /etc/hosts.allow
> sshd: xxx.xxx.xxx.xxx
>
> I cannot ssh in.... I can't even get in when I do:
>
> # cat /etc/hosts.allow
> sshd: ALL
>
> So it seems like hosts.deny works as I would anticipate, but
> hosts.allow doesn't seem to be overuling hosts.deny.


Strange... I have this identical setup, and it works fine. Maybe RH9
has a switch that determines whether hosts.allow overrules hosts.deny.
Or, maybe you have a syntax error (stray control character?) that
prevents hosts.allow from being parsed correctly. ??

--
To reply by email, replace "deadspam.com" by "alumni.utexas.net"
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      06-14-2005, 09:35 PM
On Tue, 14 Jun 2005 20:58:15 GMT, Andrew Schulman wrote:

> Or, maybe you have a syntax error (stray control character?) that
> prevents hosts.allow from being parsed correctly. ??


bad ip address, or no carriage return after it.
 
Reply With Quote
 
dan
Guest
Posts: n/a

 
      06-15-2005, 07:26 PM
Thanks much.....it was the missing carriage return.....

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
which log files to check for hosts.deny Monty loree Linux Networking 4 11-28-2006 11:43 AM
LAN with no hosts :( will 18 Linux Networking 12 10-18-2006 11:39 PM
hosts.deny problem scrunchy2k@yahoo.com Linux Networking 4 07-16-2005 08:23 PM
what's wrong with this hosts.deny? scrunchy2k@yahoo.com Linux Networking 3 07-13-2005 10:53 AM
/etc/hosts used only sometimes graeme.pietersz@gmail.com Linux Networking 2 03-09-2005 06:28 AM



1 2 3 4 5 6 7 8 9 10 11