On Mon, 22 Jan 2007, Satadru Pramanik wrote:
> /usr/sbin/ftp-proxy -r -R 192.168.19.4 -p 21 -b externalip1
> /usr/sbin/ftp-proxy -r -R 192.168.19.122 -p 21 -b externalip2
> 
> Connections to externalip1 work just fine using ftp.
> 
> Am I doing something wrong or is this just an unsupported configuration?

You must use an rdr to redirect control (port 21) connections into 
ftp-proxy.  Didn't the ftp-proxy logging warn you about that?

I prefer ftp-proxy to listen on 127.0.0.1, and just change the listen port 
to be able to run more of them, like so:

/usr/sbin/ftp-proxy -R 192.168.19.4
/usr/sbin/ftp-proxy -R 192.168.19.122 -p 8022

Then the redirects look like this:
rdr pass on $ext_if proto tcp \
    from any to $externalip1 port 21 -> 127.0.0.1 port 8021
rdr pass on $ext_if proto tcp \
    from any to $externalip2 port 21 -> 127.0.0.1 port 8022 


--
Cam

Reply via email to