Good afternoon.

Let's go back to the history of the issue. The discussion was offered
functionality https://issues.apache.org/jira/browse/CAMEL-3845

Check the description FTPS component in http://camel.apache.org/ftp2.html
SFTP component uses this functionality.

What prevents the FTP component to pass through a proxy?
FtpEndpoint creates commons-net FTPClient.

GenericFileComponent create endpoint
endpoint = buildFileEndpoint (uri, remaining, parameters);

After creating the endpoint initialization of parameters
        setProperties(endpoint, parameters);

The main component, commons-net FTPClient, not configurable.
We need to manually set SocketFactory.

It would be logical to make the identification of parameters for ftpClient
   ftpClient.socketFactory=#soketFactory
   ftpClient.proxy=#proxy

I posted on GitHub implementation of the system passing proxy.
   https://github.com/alexey-su/camel-ftpext

This component recognizes the parameter ftpClient.proxyUrl
When you create an endpoint sets the desired soketFactory.

Examples
 
ftpext://publicftpserver.com/download?ftpClient.proxyUrl=http://user:passw...@proxy.domain.lan:port/



--
View this message in context: 
http://camel.465427.n5.nabble.com/FTP-over-Proxy-tp3314841p5741973.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to