Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2000 13:35:21 +0300
From:      keramida@ceid.upatras.gr
To:        Alan Chan <alanux@excite.com>
Cc:        questions@freebsd.org
Subject:   Re: closing port 25 & 111
Message-ID:  <20000511103521.3334.qmail@zenon.ceid.upatras.gr>
In-Reply-To: <22776964.958008622932.JavaMail.imail@ants.excite.com>; from alanux@excite.com on Wed, May 10, 2000 at 06:30:22PM -0700
References:  <22776964.958008622932.JavaMail.imail@ants.excite.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 10, 2000 at 06:30:22PM -0700, Alan Chan wrote:
> Hi, I am running a FreeBSD gateway and firewall.  Currently, the
> above-referenced ports are open and I wanted to close it.  Can anyone show
> me how to close port 25 (SMTP) and 111 (sunrpc)?   By the way, what is port
> 111 anyway?  I have messaged out SMTP in the file /etc/inetd.conf, but it's
> still open when i'm running nmap.  Any reasons why?

Sendmail kees that 25 port open, and portmap I think the other one.
Copy from /etc/defaults/rc.conf the lines that enable services, i.e those
that end up in "YES", and set those that you want to disable in "NO" in
your /etc/rc.conf file.

Then, you can do more funny things with hosts.allow and ipfw(8), to make
sure that the services that you don't want to be visible from `outside'
are blocked.  For hosts.allow and ipfw read the appropriate manpages.

- giorgos


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?20000511103521.3334.qmail>