From owner-freebsd-questions Wed Jun 6 11:26:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.the-i-pa.com (mail.the-i-pa.com [151.201.71.132]) by hub.freebsd.org (Postfix) with SMTP id F235E37B401 for ; Wed, 6 Jun 2001 11:26:39 -0700 (PDT) (envelope-from wmoran@iowna.com) Received: (qmail 97230 invoked from network); 6 Jun 2001 18:34:56 -0000 Received: from unknown (HELO iowna.com) (151.201.71.193) by mail.the-i-pa.com with SMTP; 6 Jun 2001 18:34:56 -0000 Message-ID: <3B1E754F.FFD020B9@iowna.com> Date: Wed, 06 Jun 2001 14:24:15 -0400 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: kek971@mail.usask.ca Cc: freebsd-questions@freebsd.org Subject: Re: blocking ports?? References: <991851577.3b1e743926cd1@my.usask.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG kek971@mail.usask.ca wrote: > > How can i block some services running on my freebsd box? > In linux, ntsysv or linuxconf can be used in this case. > but i don't know how to strip of some of services from my system... > (especially, after running nmap or netstat, then i could see some useless ports are open.... ) That's a can of worms you've opened there. Here are a few examples: 1. If it's the syslog port, you can close it by running syslogd with -ss, other daemons may have similar options. 2. If the port is running because of inetd, edit /etc/inetd.conf or disable inetd altogether. 3. If a network daemon is starting, uninstall it or tell it not to start (possibly by removing execute perms on the startup script in /usr/local/etc/rc.d) -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message