[Gllug] Open Ports
Kim Hawtin
kim at aldigital.co.uk
Mon Jan 28 15:05:52 UTC 2002
On Mon, Jan 28, 2002 at 02:38:49PM +0000, harry wrote:
> Ran nmap against my debian box and noticed that it has an awful lot of ports
> open and listening. To close the ports is it a case of editing the
> /etc/services file to comment them out or is it wiser to stop the service
> that has opened the port in the first place.
/etc/services is a listing of services,
/etc/inetd.conf or /etc/xinetd.conf is probably where you want to
edit out services that are acuatlly listening...
inetd listens on the open ports and starts the daemon required for
the job on demand. to turn off the unwanted ports, you need to use
netstat -an
to see what ports are open, then refer to /etc/services to see what
service the port number refers to, and comment it out in /etc/[x]inetd.conf
yours,
kim
--
:Kim_Hawtin:--------------------------------------:-----------------:
| A.L. Digital Ltd. Tel: +44 (20) 8742 0755 | .^. Don't fear|
| The Stores Fax: +44 (20) 8742 5995 | /V\ the |
| 2 Bath Road http://www.thebunker.net | // \\ penguins!|
| London W4 1LT http://www.aldigital.co.uk | /( )\ |
| UNITED KINGDOM mailto:kim at aldigital.co.uk | ^^ ^^ |
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list