From owner-freebsd-questions Thu Sep 14 11:54:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ghost.blacktrap.net (20-230.CampusNet.ucl.ac.be [130.104.20.230]) by hub.freebsd.org (Postfix) with ESMTP id 1C90937B424 for ; Thu, 14 Sep 2000 11:54:09 -0700 (PDT) Received: from blacktrap.net (anoat.blacktrap.net [192.168.1.11]) by ghost.blacktrap.net (8.11.0/8.11.0) with ESMTP id e8EIs1221358; Thu, 14 Sep 2000 20:54:01 +0200 (CEST) (envelope-from lex@blacktrap.net) Message-ID: <39C11EC9.86E393CD@blacktrap.net> Date: Thu, 14 Sep 2000 20:54:01 +0200 From: Lex Chive X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Paul Nelson Cc: "'freebsd-questions@freebsd.org'" Subject: Re: Disabling smtp, & sunrpc References: <623E8805873DD411A6620004AC4C883535D7F6@FEI0018M001> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Paul Nelson wrote: > I am trying to close 111, and 25. w/ 25 I have commented out anything in > /etc/services and /etc/inetd.conf that would open a port, and I have > re-started inetd, but to no avail port 25 is still open!?! has anyone come > across this that can help me? 25 is sendmail. Did you try telnetting your box on port 25? You should see the sendmail prompt. All you need to do is put 'sendmail_enable=NO' in /etc/rc.conf. btw, services only list port names and you will probably never need to edit it, unless you want to add a service name. > > now for 111 (sunrpc) the only thing that I could find was /etc/rpc and I > commented out 'portmapper 100000 portmap sunrpc' and I restarted the box.... > but if you port scan the host it says that 25, and 111 are still open!?! > 111 is portmap, you need to put 'portmap_enable=NO' in rc.conf. /etc/rpc is again a list you shouldn't need to edit. Most configuration can be done by editing /etc/rc.conf and using /etc/defaults/rc.conf for information. You can also set some options by running /stand/sysinstall. -- Chive. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message