LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 07-14-2004, 12:07 PM   #1
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Rep: Reputation: 30
updating the change of /etc/hosts.deny in AIX 4.3.3


I have recently changed the contents of /etc/hosts.deny....in linux i would use a: killall -HUP xinetd to refresh this change to the system (that is, w/o rebooting it)...

how would i do this in AIX????? refresh -s inetd doesn't seem to be working....

thanks

zepp
 
Old 07-14-2004, 12:54 PM   #2
zorba4
Member
 
Registered: Feb 2004
Location: Paris
Posts: 398

Rep: Reputation: 31
ps -aef |grep inet
kill -1 XXXXX
 
Old 07-14-2004, 01:01 PM   #3
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
I didn't think you had to refresh anything; are you sure the syntax and permissions of the files (accept & deny) are correct?
 
Old 07-15-2004, 08:16 PM   #4
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
here is the format of my /etc/hosts.deny file on the RS/6000 box:

ALL: ALL


simple as that...not sure why, even when an "outside" host is trying to access it, it allows things through....any thoughts for logs to check for entries?

zepp
 
Old 07-16-2004, 03:36 AM   #5
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Could you post the /etc/inetd.conf line for the service using TCP Wrappers - maybe that's not right.

If the connections are using SSH, is SSH compiled to use TCP Wrappers?
 
Old 07-17-2004, 08:57 PM   #6
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
I see what your saying...tcp wrappers may not even be employed on ssh. right. hmm...

when i type: ssh -V i get:

ssh: SSH Secure Shell 3.2.9.1 (non-commercial version) on rs6000-ibm-aix4.3.3.0

there is no entry in /etc/inetd.conf for ssh...how would i do a quick check to see if tcp wrappers is
enabled for this version of ssh on the rs6000 box???

thanks for being helpful/patient with me...

UPDATE:

I checked in the ssh compilation directory and within file: sshconf.h

found a few interesting lines:

/* Define this to include libwrap (tcp_wrappers) support. */
/* #undef LIBWRAP */
/* #undef HAVE_LIBWRAP */


the comment lines have blocked the wrapping support i guess...right?

would i uncomment both the bottom two lines and instead of "undef" put "def" ???

thanks...

Last edited by zepplin611; 07-17-2004 at 09:00 PM.
 
Old 07-18-2004, 11:16 AM   #7
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
For that version of SSH, I'm not sure. I do use it, but I get a pre-compiled binary from ssh.com and I haven't checked whether that supports tcp wrappers.

I can remember hitting this issue with the version of SSH from F-Secure. In that case, there was a flag on the configure command for tcp wrappers (something like configure --with-tcp-wrappers) so it might be worth checking out the configure options.

You're right that SSH is never started from inetd.conf; it's an unusual app in that tcp wrapper support does have to be compiled in; I'm not aware of any way to actually wrapper it as can be done with things called from inetd.
 
Old 07-18-2004, 02:31 PM   #8
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
I was able to track down a FAQ on this version of ssh...

Q: How do I setup sshd2 to support tcp-wrappers?

A: First, ./configure --with-libwrap and whatever flags you need. Make
sure that configure finds your libwrap.a and tcpd.h files. Recompile.
(Note that if you don't have your tcp-wrappers in a standard place,
you can give the path as argument to configure;
--with-libwrap=/path/to/libwrap/)

After this you can edit your /etc/hosts.allow and /etc/hosts.deny
files. These "daemon" strings are in use by sshd2:

sshd, sshd2 (The name sshd2 was called with (usually "sshd"))
sshdfwd-X11 (if you want to allow/deny X11-forwarding)
sshdfwd-<port-number> (for tcp-forwarding)
sshdfwd-<port-name> (port-name defined in /etc/services. Used in
tcp-forwarding.)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM
hosts.deny help/how-to jon_k Linux - Software 1 07-25-2003 10:17 PM
hosts.deny and hosts.allow defaults? gui10 Linux - Security 5 12-20-2001 01:57 AM
hosts.deny 98steve600 Linux - General 1 01-10-2001 07:39 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 02:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration