IPFW> FTP
Dan O'Connor
dan at ferrarishields.com
Mon Jan 2 10:59:29 PST 2006
> i had a minor question/concern i was wondering why does the firewall
> rulesets have permissions for everything, and help for running almosty
> anything and how to open and wich port to open but yet it has no exmpale
> ruleset or any help for using a FTP while using a firewall such as IPFW.
> it
> has no help in the handbook period. on how to use ftp while using IPFW
While the default IPFW ruleset will let you make outgoing TCP connections on
any port, including outbound FTP control on port 21, you need to open port
20 inbound to set up the data channel:
${fwcmd} add pass tcp from any 20 to any 1024-65535 setup
If you are running an FTP server that you want to be able to access from the
outside, you'll also need:
${fwcmd} add pass log tcp from any to any 21 in via ${oif} setup
~Dan
--
Dan O'Connor
FreeBSD Cheat Sheets
http://www.mostgraveconcern.com/freebsd/
More information about the freebsd-questions
mailing list