commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bogdan Drozdowski (JIRA)" <>
Subject [jira] [Updated] (NET-468) Request for native support for socks proxy routing with Commons net FTP
Date Thu, 12 Jul 2012 17:21:35 GMT


Bogdan Drozdowski updated NET-468:

    Attachment: sockclient-proxy7.diff

Finally got some time to work on this. The new patch includes a simple functional test that
connects to an FTP server through a Socks proxy. HTTP proxies don't seem to work for raw Sockets
(the constructor throws an Exeption), at least for me, but maybe I'm doing something wrong.
The test in its current form requires a Java-compatible Socks proxy server on
Dante proxy fails (Java can't read its replies), Tor proxy works.
> Request for native support for socks proxy routing with Commons net FTP
> -----------------------------------------------------------------------
>                 Key: NET-468
>                 URL:
>             Project: Commons Net
>          Issue Type: Improvement
>          Components: FTP
>    Affects Versions: 1.4, 2.0, 3.0.1, 3.1
>         Environment: We use commons net  in out products for all communication to an
FTP server. OS : All. No other environment specifications.
>            Reporter: Ramya Rajendiran
>         Attachments: sockclient-proxy3.diff, sockclient-proxy4.diff, sockclient-proxy5.diff,
sockclient-proxy6.diff, sockclient-proxy7.diff
> Commons net currently does not natively support connection to an FTP server via a socks
proxy. The only way of achieving this would be to work at the socket level as observed here (by setting JVM properties socksProxyPort
and socksProxyPortHost)
> However, a major side effect of this all connections on this JVM will go through the
socks proxy since this setting is at the JVM level. This is sometimes undesirable as the business
requirements are such that only certain applications on the JVM need to go through the socks
proxy. There are no existing workarounds to conditionally prevent other applications to not
be routed through the socks proxy. This makes our application which consumes the commons net
unusable for such businesses.
> Providing native support for socks proxy with commons net for FTP, will go a long way
in supporting such common scenarios and business continuity. Therefore raising this enhancement

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message