Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 1999 23:30:26 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        andy0383@twcny.rr.com (A Minkstein)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Block port 21?
Message-ID:  <199908240330.XAA00477@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <000901beedd7$091d0180$02c810b0@andy.twcny.rr.com> from A Minkstein at "Aug 23, 99 10:19:03 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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 <external world> to <protected machine(s)> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908240330.XAA00477>