Networking Forums

Networking Forums > Computer Networking > Linux Networking > tcpwrapper has problem

Reply
Thread Tools Display Modes

tcpwrapper has problem

 
 
John
Guest
Posts: n/a

 
      09-24-2007, 03:56 AM
Dear all,

Under Redhat 9, I want to let 192.168.0.0/24 to enter to the server through
sshd, and both hosts.allow and hosts.deny filesare set as follows.

hosts.allow
sshd: 192.168.0.0/24

host.deny
sshd:ALL

However, all computers even with ip 192.168.0.0./24 cannot enter to the
server. Why?


Also, as we know, the root account are not allowed to enter to the server by
default.
For sshd, if the root account other than the server are not allowed to the
server, how can we do?

Please give me helping hand, many thanks

Regards,
John


 
Reply With Quote
 
 
 
 
Dave Uhring
Guest
Posts: n/a

 
      09-24-2007, 05:03 AM
On Mon, 24 Sep 2007 11:56:11 +0800, John wrote:

> hosts.allow
> sshd: 192.168.0.0/24


sshd:192.168.
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      09-24-2007, 03:04 PM
On Mon, 24 Sep 2007 11:56:11 +0800, John
<(E-Mail Removed)> wrote:
>
>
>
> Also, as we know, the root account are not allowed to enter to the server by
> default.
> For sshd, if the root account other than the server are not allowed to the
> server, how can we do?
>

You can allow them to ssh in as regular users, and use sudo when they need
root access. Or you can set PermitRootLogin in /etc/ssh/sshd_config. If you
do, I would recommend that you use a port other than 22 and don't allow
passwords.


--
Research is to see what everybody else has seen, and think what nobody
else has thought.
 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      09-25-2007, 02:56 AM
On Mon, 24 Sep 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <fd7cgr$qcp$(E-Mail Removed)>, John wrote:

>Under Redhat 9


Red Hat 9 was obsolete at the end of April 2004, and even the very
limited back-port support at fedoralegacy.org ended over 14 months
ago. Find a current (supported) distribution.

>I want to let 192.168.0.0/24 to enter to the server through
>sshd, and both hosts.allow and hosts.deny filesare set as follows.
>
>hosts.allow
>sshd: 192.168.0.0/24


man 5 hosts_access Your syntax is wrong.

>host.deny
>sshd:ALL


man 5 hosts_access Your syntax is wrong.

>However, all computers even with ip 192.168.0.0./24 cannot enter to the
>server. Why?


hosts.allow
sshd: 192.168.0.

host.deny
ALL: ALL

>Also, as we know, the root account are not allowed to enter to the
>server by default.
>For sshd, if the root account other than the server are not allowed to
>the server, how can we do?


[compton ~]$ whatis su
su (1) - run a shell with substitute user and group IDs
[compton ~]$

Old guy

 
Reply With Quote
 
Jerry McBride
Guest
Posts: n/a

 
      10-01-2007, 01:39 AM
Moe Trin wrote:

> On Mon, 24 Sep 2007, in the Usenet newsgroup comp.os.linux.networking, in
> article <fd7cgr$qcp$(E-Mail Removed)>, John wrote:
>
>>Under Redhat 9

>
> Red Hat 9 was obsolete at the end of April 2004, and even the very
> limited back-port support at fedoralegacy.org ended over 14 months
> ago. Find a current (supported) distribution.
>
>>I want to let 192.168.0.0/24 to enter to the server through
>>sshd, and both hosts.allow and hosts.deny filesare set as follows.
>>
>>hosts.allow
>>sshd: 192.168.0.0/24

>
> man 5 hosts_access Your syntax is wrong.
>
>>host.deny
>>sshd:ALL

>
> man 5 hosts_access Your syntax is wrong.
>
>>However, all computers even with ip 192.168.0.0./24 cannot enter to the
>>server. Why?

>
> hosts.allow
> sshd: 192.168.0.
>
> host.deny
> ALL: ALL
>
>>Also, as we know, the root account are not allowed to enter to the
>>server by default.
>>For sshd, if the root account other than the server are not allowed to
>>the server, how can we do?

>
> [compton ~]$ whatis su
> su (1) - run a shell with substitute user and group IDs
> [compton ~]$
>
> Old guy


One way to check your host.allow and host.deny files is to use tcpdchk. Also
tcpdmatch for a line by line accounting....

--


Jerry McBride
 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      10-01-2007, 08:01 PM
On Sun, 30 Sep 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <(E-Mail Removed)>, Jerry McBride wrote:

>Moe Trin wrote:


>> John wrote:


>>>Under Redhat 9


>> man 5 hosts_access Your syntax is wrong.


>One way to check your host.allow and host.deny files is to use tcpdchk.
>Also tcpdmatch for a line by line accounting....


When did they modify xinetd to work with those programs? Both look at
the /etc/inetd.conf file, rather than the files in /etc/xinetd.d/, or
standalone applications compiled with libwrap. The tcp_wrappers source
was last modified in February 1997, over three years before Red Hat
introduced xinetd in Red Hat 7.0 (September 2000). Last time I looked at
the binary rpm that came with Red Hat > 7.0, it didn't even have those
two programs.

Old guy
 
Reply With Quote
 
Jerry McBride
Guest
Posts: n/a

 
      10-02-2007, 01:56 AM
Moe Trin wrote:

> On Sun, 30 Sep 2007, in the Usenet newsgroup comp.os.linux.networking, in
> article <(E-Mail Removed)>, Jerry McBride wrote:
>
>>Moe Trin wrote:

>
>>> John wrote:

>
>>>>Under Redhat 9

>
>>> man 5 hosts_access Your syntax is wrong.

>
>>One way to check your host.allow and host.deny files is to use tcpdchk.
>>Also tcpdmatch for a line by line accounting....

>
> When did they modify xinetd to work with those programs? Both look at
> the /etc/inetd.conf file, rather than the files in /etc/xinetd.d/, or
> standalone applications compiled with libwrap. The tcp_wrappers source
> was last modified in February 1997, over three years before Red Hat
> introduced xinetd in Red Hat 7.0 (September 2000). Last time I looked at
> the binary rpm that came with Red Hat > 7.0, it didn't even have those
> two programs.
>
> Old guy


Not by default... you have to "-i /etc/xinetd.conf"...


--


Jerry McBride
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      10-04-2007, 05:42 AM
Jerry McBride <(E-Mail Removed)> writes:

>Moe Trin wrote:


>> On Sun, 30 Sep 2007, in the Usenet newsgroup comp.os.linux.networking, in
>> article <(E-Mail Removed)>, Jerry McBride wrote:
>>
>>>Moe Trin wrote:

>>
>>>> John wrote:

>>
>>>>>Under Redhat 9

>>
>>>> man 5 hosts_access Your syntax is wrong.

>>
>>>One way to check your host.allow and host.deny files is to use tcpdchk.
>>>Also tcpdmatch for a line by line accounting....

>>
>> When did they modify xinetd to work with those programs? Both look at
>> the /etc/inetd.conf file, rather than the files in /etc/xinetd.d/, or
>> standalone applications compiled with libwrap. The tcp_wrappers source
>> was last modified in February 1997, over three years before Red Hat
>> introduced xinetd in Red Hat 7.0 (September 2000). Last time I looked at
>> the binary rpm that came with Red Hat > 7.0, it didn't even have those
>> two programs.
>>
>> Old guy


>Not by default... you have to "-i /etc/xinetd.conf"...


Well, no that does not do much since /etc/xinetd.conf does not have much in
it.



>--



>Jerry McBride

 
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
Strange problem: no problem with Linux, when I boot windows 2K network is down... Santa Linux Networking 11 11-29-2004 06:46 AM



1 2 3 4 5 6 7 8 9 10 11