Ha Alessandro,

Concerning the stable backports repository, there is no problem with that
but, alas, using the testing version of curl does not fix my issue. Curl
ignores the "--disable-epsv" flag when a socks proxy is used, even with the
testing version

ohe@box:~$ curl --version
curl 7.30.0 (x86_64-pc-linux-gnu) libcurl/7.30.0 OpenSSL/1.0.1e zlib/1.2.7
libidn/1.25 libssh2/1.4.2 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
ohe@ec2-79-125-61-99:~$ aptitude show curl
Package: curl
State: installed
Automatically installed: no
Version: 7.30.0-2
Priority: optional
Section: web
Maintainer: Alessandro Ghedini <gh...@debian.org>
Architecture: amd64
Uncompressed Size: 308 k
Depends: libc6 (>= 2.17), libcurl3 (= 7.30.0-2), zlib1g (>= 1:1.1.4)
Description: command line tool for transferring data with URL syntax
 curl is a command line tool for transferring data with URL syntax,
supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP,
LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.

 curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
form based upload, proxies, cookies, user+password authentication (Basic,
Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy
tunneling and a busload of other useful tricks.
Homepage: http://curl.haxx.se


Here is the output of curl:

via a proxy:

    curl --disable-epsv --socks4 localhost:5001 -k -v --user user:password
ftp://ftp.example.com
    * About to connect() to proxy localhost port 5001 (#0)
    *    Trying ::1...
    * Adding handle: conn: 0x2049770
    * Adding handle: send: 0
    * Adding handle: recv: 0
    * Curl_addHandleToPipeline: length: 1
    * - Conn 0 (0x2049770) send_pipe: 1, recv_pipe: 0
    * SOCKS4 request granted.
    * Connected to localhost (::1) port 5001 (#0)
    < 220 ProFTPD 1.3.4a Server (FTPD) [::ffff:1.2.3.4]
    > USER user
    < 331 Password required for user
    > PASS password
    < 230 User user logged in
    > PWD
    < 257 "/" is the current directory
    * Entry path is '/'
    > EPSV
    * Connect data stream passively
    < 229 Entering Extended Passive Mode (|||18388|)
    *   Trying ::1...
    ...

without proxy:

    curl --disable-epsv -k -v --user user:password ftp://ftp.example.com
    * About to connect() to ftp.example.com port 21 (#0)
    *   Trying 1.2.3.4...
    * Adding handle: conn: 0x1eb7730
    * Adding handle: send: 0
    * Adding handle: recv: 0
    * Curl_addHandleToPipeline: length: 1
    * - Conn 0 (0x1eb7730) send_pipe: 1, recv_pipe: 0
    * Connected to ftp.example.com (1.2.3.4) port 21 (#0)
    < 220 ProFTPD 1.3.4a Server (FTPD) [::ffff:1.2.3.4]
    > USER user
    < 331 Password required for user
    > PASS password
    < 230 User user logged in
    > PWD
    < 257 "/" is the current directory
    * Entry path is '/'
    > PASV
    * Connect data stream passively
    < 227 Entering Passive Mode (...)
    *   Trying ...
    ...

Best,

- olivier hervieu



2013/6/8 Alessandro Ghedini <gh...@debian.org>

> On gio, giu 06, 2013 at 03:26:15 +0200, Olivier Hervieu wrote:
> > Package: curl
> > Version: 7.26.0-1+wheezy2
> > Severity: normal
> >
> > Dear Maintainer,
> >
> > Getting, listing or sending files on a FTP that does not support EPSV
> mode over a SOCKS proxy no longer works under Debian 7.
> > Exemple of incriminated command:
> >
> > curl -k --disable-epsv --socks4 proxy:port --user user:password
> ftp://ftp.example.org/
> >
> > I try to install via apt-pinning both oldstable and testing version of
> curl and libcurl packages.
> > In both case (and surprisingly for oldstable because it works under
> Debian Squeeze), replacing
> > curl and libcurl packages does not fix my issue.
> >
> > This issue seems to be reported in the curl bugtracker:
> http://sourceforge.net/p/curl/bugs/1166/
> > and should be fix in 7.30.x versions (version already in testing). As I
> said, the problem seems to be always here, in Debian.
>
> So, did you try with the current version in testing? If it works, would it
> work
> for you if I made it available via the stable backports repository [0]?
>
> [0] http://backports.debian.org/Instructions/
>
> --
> perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'
>



-- 
olivier hervieu
*tinyclues*

Reply via email to