How to disable ports?

How to disable ports?

Post by SQ » Thu, 24 Nov 2005 07:53:10


I need to disable ports 80, 443 and 137,138,139 on HPUX 11v2.

Can I just comment them out in /etc/services file and restart inetd or
does this change entail something more extensive?
 
 
 

How to disable ports?

Post by Lars Kello » Thu, 24 Nov 2005 08:03:46

> Can I just comment them out in /etc/services file and restart inetd or

Commenting them out of /etc/services doesn't really get you anything.

Commenting the services out of /etc/inetd.conf (and restarting inetd)
will work fine *if* the software bound to these ports is actually
running out of inetd. If it's running as a daemon, you'll have to stop
the appropriate process.

-- Lars

--
Lars Kellogg-Stedman < XXXX@XXXXX.COM >
This email address will expire on 2005-11-23.

 
 
 

How to disable ports?

Post by Michael He » Fri, 25 Nov 2005 03:16:10

In comp.unix.admin SQ < XXXX@XXXXX.COM >:


No, commenting them in "/etc/services" won't do much. In addition
those ports are usually not used by apps running from inetd.

In any case, if you aren't running anything on those ports
there's not much sense in disabling them.

You might want to look for some basic admin guide for your OS
that should speed you up.

Good luck

BTW
Please read this before posting anything else:

http://www.yqcomputer.com/

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo XXXX@XXXXX.COM | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 154: You can tune a file system, but you can't
tune a fish (from most tunefs man pages)