View Single Post
  #1   (View Single Post)  
Old 9th October 2008
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Question FTP-Proxy cannot connect

Hello,

I have been trying to get the FTP-Proxy program to work with my FTP server.

All is contained on 1 box. (FTP, PF, Proxy)

I have been looking at this guide mainly.
https://calomel.org/ftp_proxy.html

Which did not work (pf would not load) as is.

What I have is as follows.

PF.CONF
Code:
rdr on $ext_if proto tcp from any to ($ext_if) port tcp tag FTPPROXY -> lo0 port 8021

pass in quick on $ext_if inet proto tcp from any to lo0 port 8021 flags S/SA modulate state tagged FTPPROXY label FTPPROXYIN

#temporary rule
pass out quick on $ext_if from any to any
Note: In the guide he uses TCPPROXY state which for me would not load. I also tried SYNPROXY which would work but still couldnt connect.

RC.CONF.LOCAL
Code:
ftpproxy_flags="-q bulk -T FTPPROXY -p 8021 -R 127.0.0.1 -P 21 -D7 -v"
I am using pure-ftpd and it is currently set to bind to 127.0.0.1,21 originally it was binding to all. Neither worked.

When I try connecting with an FTP client it looks like it does establish an initial connection but does not go all the way through.

Code:
Status:	Connecting to externalinterfaceIP:21...
Status:	Connection established, waiting for welcome message...
Error:	Connection timed out
Error:	Could not connect to server
Status:	Waiting to retry...

Does anyone have any idea where I am going wrong?

Thanks!
Reply With Quote