From owner-freebsd-questions Sun Sep 17 4:32:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from theshell.com (arsenic.theshell.com [63.236.138.5]) by hub.freebsd.org (Postfix) with SMTP id 2504937B423 for ; Sun, 17 Sep 2000 04:32:50 -0700 (PDT) Received: (qmail 9700 invoked from network); 17 Sep 2000 11:32:57 -0000 Received: from arsenic.theshell.com (HELO tequila) (root@63.236.138.5) by arsenic.theshell.com with SMTP; 17 Sep 2000 11:32:57 -0000 From: "Peter Avalos" To: "Wolfgang Drews" , Subject: RE: closing ports Date: Sun, 17 Sep 2000 06:36:17 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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