AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  wildcard not working in /etc/hosts.allow

    Posted Tue June 09, 2009 10:11 AM

    Originally posted by: SystemAdmin


    I installed and configured TCP Wrapper on AIX 5.3 and all went well except the /etc/hosts.allow won't work with wild card "*" or "?" for the client hostname list. If I have following in /etc/hosts.allow, everything works as expected(ftp access restricted to host01 and 02):
    ftpd : host01.domain.com host02.domain.com
    However it does not work if I try:
    ftpd : host*.domain.com
    or
    ftpd : host0?.domain.com
    or
    ftpd : *.domain.com

    TCP Wrapper I installed is come from 5.3 AIX expansion pack. I tried tcp_wrappers-7.6.1.0 from bullfreeware.com, same problem. I also tried it on redhat linux, the wildcards works fine.
    Any ideas?

    Thanks
    #AIX-Forum


  • 2.  Re: wildcard not working in /etc/hosts.allow

    Posted Wed June 17, 2009 06:53 PM

    Originally posted by: SystemAdmin


    It has been a while since I worked with the TCP wrappers; but try compiling it with the extensions turned on.
    #AIX-Forum


  • 3.  Re: wildcard not working in /etc/hosts.allow

    Posted Mon June 22, 2009 11:09 AM

    Originally posted by: SystemAdmin


    I look into the source code and believe the wildcards are not supported. Some linux version of TCP Wrapper do have this feature by enhancing the code. Such example on Redhat documented in - tcp_wrappers-7.6-bug17847.patch.
    #AIX-Forum


  • 4.  Re: wildcard not working in /etc/hosts.allow

    Posted Mon June 22, 2009 02:58 PM

    Originally posted by: hwyguy


    Try taking out the * in host.allow .For example, this works without issue on my AIX machines:

    ftpd: .domain.com
    #AIX-Forum