From owner-freebsd-questions Mon Aug 23 20:29:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 5F751158BC for ; Mon, 23 Aug 1999 20:29:46 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id XAA00477; Mon, 23 Aug 1999 23:30:26 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199908240330.XAA00477@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Block port 21? In-Reply-To: <000901beedd7$091d0180$02c810b0@andy.twcny.rr.com> from A Minkstein at "Aug 23, 99 10:19:03 pm" To: andy0383@twcny.rr.com (A Minkstein) Date: Mon, 23 Aug 1999 23:30:26 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A Minkstein wrote, > How do I set the firewall permissions to block port 21 so people can't access my ftp? If you don't want anyone ever accessing ftp on a given machine, just comment out the ftpd line in /etc/inetd.conf, then, # kill -HUP `cat /var/run/inetd.pid` To reload the file. Note this does not efffect your ability to ftp out of your box. If you are closing out a specific set of hosts while allowing others, or blocking external ftp into a subnet, firewalling is the better way to go. The rule would be something along the lines of, # /sbin/ipfw add deny tcp from to ftp -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message