Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2005 11:20:35 -0400
From:      Chuck Swiger <>
To:        Peter Rosa <>
Cc:        FreeBSD IPFW <>
Subject:   Re: IPFW2+NAT stateful rules VS. FTP
Message-ID:  <>
In-Reply-To: <001501c5b616$0fb62c20$>
References:  <001501c5b616$0fb62c20$>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Peter Rosa wrote:
[ ... ]
> Or is it better to use /etc/nad.conf to redirect all incomming connections
> on ports 20 and 21 to localhost?
> Any help is *very* appreciated :-)

If you use "passive mode" FTP, that ought to work fine.  If you use "active 
mode" FTP, you ought to use the FTP proxying built into NATD (see the 
-use_sockets and -punch_fw options), which is aware of the FTP data channel.

You should not attempt to use port forwarding when you are also using NAT 
unless you know what you are doing.  Without special measures being taken on 
the machine being forwarded to, it will ignore such traffic because the IP 
addresses won't match.


Want to link to this message? Use this URL: <>