FTP ipfw firewall FreeBSD
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 to any 20,21 out
${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
Reference: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2006-01/msg00131.html
Wednesday, July 28, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment