FTP proxy!

Tim Panton - Westhawk Ltd tpanton at ibm.net
Sat Nov 12 19:29:10 PST 2005


I'm afraid you will need to read the
Ftp RFC if you want to try to proxy
it. You might find the proxy easier
to implement if you limit it to supporting clients that can do PASV.

As I recall FTP uses 2 sockets, one for commands, and one for data.
Traditionally the command 
connection is inbound (from client to
server) ana the data connection is
outbound (from server to client).
The PASV command (if supported)
reverses the direction of the data
connection.

Good luck. 
Tim.


Prantor.Bora at lawson.com wrote:
__________
>
>Hi,
>I am trying to write a proxy for ftp. If an ftpclient connects I just want it to
>redirect to a machine which have an ftp daemon running. I just listen on port 21
>and foward it.  I am getting some error messages when I issue ftp commands from
>the ftpclient to  the ftp server that the source/destination address kept is not
>correct after successfully connecting. Can some one provide with sample code of
>ftp proxy. Any guideline is welcomed. We have a special requairment so we need
>this, and fast.
>
>Prantor.
>
>
>
>
---
URL http://www.westhawk.co.uk/

---
To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
To get help, mail advanced-java-help at xcf.berkeley.edu



More information about the Advanced-java mailing list