From owner-freebsd-questions Fri Dec 25 16:39:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA17021 for freebsd-questions-outgoing; Fri, 25 Dec 1998 16:39:52 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA17015 for ; Fri, 25 Dec 1998 16:39:49 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.10 #2) id 0ztgcK-0004og-00; Fri, 25 Dec 1998 23:26:00 +0000 Date: Fri, 25 Dec 1998 23:26:00 +0000 From: Ben Smithurst To: Fadi Sodah Cc: freebsd-questions@FreeBSD.ORG Subject: Re: OpenPorts Message-ID: <19981225232600.A18472@scientia.demon.co.uk> References: <3683AC0C.E7D22DF9@qatar.net.qa> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <3683AC0C.E7D22DF9@qatar.net.qa> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Fadi Sodah wrote: > How can I close the open ports > > Port Number Protocol Service > 25 tcp smtp > 515 tcp printer > > in inetd.conf i did not find anything related to them! Kill the process which has them open, if you don't want them open. lsof would help here (sysutils/lsof in the ports tree.) Run this as root: # lsof -i | grep smtp exim 18445 exim 0u inet 0xf3f83720 0t0 TCP *:smtp (LISTEN) This shows that Exim, running as pid 18445, has the smtp port open. (You probably don't need lsof for this; sendmail probably has smtp open, lpd probably has printer open. Use ps and grep to find their pids.) These aren't listed in inetd.conf because sendmail and lpd are daemons in themselves, and do not run from inetd.conf. -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message