Try...

# telnet localhost 53
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

So therefore, port 53 is NOT open.  /etc/services simply defines what
ports inetd will listen on for services defined in /etc/inetd.conf.  Just
because there is an entry in it doesn't mean that some program is going to
allow connections on that port.  If you are running named, then there is
something listening on UDP port 53, and that can easily be killed and
removed from /etc/rc.d/rc*.d, but you don't have to worry about each and
everything defined in /etc/services.  In a security sense, you should go
throug your /etc/inetd.conf and comment-out all the entries that you don't
want, such as rlogin, rsh, perhapse even telnet and restart inetd.  Then
go into /etc/rc.d/rc*.d (or /etc/rc*.d under slackware, debian, and Suse)
and remove any daemons that you don't want started such as xntpd, nfsd and
such.

-CJO-

On Thu, 17 Jun 1999, Robert Johannes wrote:

>How do i disable ports on a machine?  I would like to disable all ports
>that are not being used by any programme for security reasons.  e.g, port
>53 is open, and not used, although it belongs to the domain   programme??
>
>Any help appreciated
>Thanks
>robert
>
>
>

                C.J. Oster (Linux Guru/Surge Addict)
------------------------------------------------------------------
| [EMAIL PROTECTED]   |     1003 S. 1st St.     |   CCSO, WSG, UIUC  |
| [EMAIL PROTECTED]  |   Champaign, IL 61820   |   L538 DCL, Urbana |
| ---------------------------------------------------------------|
|    PGP: 87D5 4216 43A1 42D6 754D  8F5E 24B3 992A B7A1 F556     |
------------------------------------------------------------------
                   (580)761-6393 (217)328-8934
      "Linux, for people with an IQ above 98" - Bumper Sticker
 "Hm, a little big for a cup holder... Why does it say '4x' on it?"

Reply via email to