Date: Sun, 17 Sep 2000 06:36:17 -0500 From: "Peter Avalos" <pavalos@theshell.com> To: "Wolfgang Drews" <drews@dynamic-webpages.de>, <questions@FreeBSD.org> Subject: RE: closing ports Message-ID: <AAEMIFFLKPKLAOJHJANHEEJFCFAA.pavalos@theshell.com> In-Reply-To: <NEBBIADNALBOADKLEAOCGEABCFAA.drews@dynamic-webpages.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> on ...). Now i tought, "well, search the services-file in /etc/ and > try to close them in it", but that seems to be the wrong way. Can > you maybe help me, and tell me, how to close all those ports i do > not need? (A link to a documentation about it would maybe be enough). The services file is just a 'map' of numbers to names. In order to close these ports, you have to kill the processes that listening on those ports. First, comment everything out in /etc/inetd.conf that you don't need, then killall -HUP inetd. After that, check /etc/rc.conf and /etc/defaults/rc.conf to make sure nothing is getting started at boot time that you don't want running. To get a list of ports that are 'open' try `netstat -an | grep LISTEN`. Peter Avalos TheShell.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AAEMIFFLKPKLAOJHJANHEEJFCFAA.pavalos>