Re: using tcpd to block ports?

From: David Efflandt (efflandt_at_xnet.com)
Date: 08/21/03

  • Next message: Richard Caley: "Re: Solution for botnets"
    Date: Thu, 21 Aug 2003 02:28:22 +0000 (UTC)
    
    

    On 18 Aug 2003 03:05:02 -0700, Shane T. Miller <shanetmiller@yahoo.com> wrote:
    > Can I use tcpd and hosts.deny to block specific ports from specific nets?
    >
    > Example /etc/hosts.deny
    >
    > ALL : 192.168.0.0:135

    The only way to block ports using tcpd is by blocking the service launched
    by inetd.conf that services that port. I have no idea what daemon
    services port 135, but an example of blocking telnet access (port 23) for
    anyone from 192.168.0.0/16 in hosts.deny is:

    in.telnetd : 192.168.

    But for other details, typically see 'man 5 hosts_access'.

    -- 
    David Efflandt - All spam ignored  http://www.de-srv.com/
    http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
    http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/
    

  • Next message: Richard Caley: "Re: Solution for botnets"

    Relevant Pages