|
Home > Archive > Unix administration > November 2005 > How to disable ports?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to disable ports?
|
|
|
| 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?
| |
| Lars Kellogg-Stedman 2005-11-22, 5:56 pm |
| > Can I just comment them out in /etc/services file and restart inetd or
> does this change entail something more extensive?
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 <8273grkci8q8kgt@jetable.net>
This email address will expire on 2005-11-23.
| |
| Michael Heiming 2005-11-23, 5:54 pm |
| In comp.unix.admin SQ <onestatusquo@yahoo.com>:
> 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?
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://cfaj.freeshell.org/google
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | 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)
|
|
|
|
|