curl-users
Re: Does curl support active ftp?
Date: Thu, 22 Aug 2013 16:43:07 -0700
my bad. the ip6tables was rejecting it. I didn't know ip6tables existed,
just though doing iptables --flush would do the job for both ipv4 and ipv6.
Thanks,
Michael
On Thu, Aug 22, 2013 at 3:55 PM, Michael Chan <mchan49_at_gmail.com> wrote:
> Hi Daniel,
> This is what I get from curl. Just want to mention that I have a
> nat box in the middle between my client and server that does translate my
> address. I see that my client is rejecting the connection from the server.
>
> client1(~)#curl -g -P - ftp://<user>:<somepassword>@[64:ff9b::1414:1496]/1K
> -v
> * About to connect() to 64:ff9b::1414:1496 port 21 (#0)
> * Trying 64:ff9b::1414:1496...
> * connected
> * Connected to 64:ff9b::1414:1496 (64:ff9b::1414:1496) port 21 (#0)
> < 220 (vsFTPd 3.0.2)
> > USER <someuser>
> < 331 Please specify the password.
> > PASS <somepassword>
> < 230 Login successful.
> > PWD
> < 257 "/<user>"
> * Entry path is '/<user>'
> > EPRT |2|2001::a|40570|
> < 200 PORT command successful. Consider using PASV.
> * Connect data stream actively
> > TYPE I
> < 200 Switching to Binary mode.
> > SIZE 1K
> < 213 1024
> > RETR 1K
> < 425 Failed to establish connection.
> * RETR response: 425
> * Remembering we are in dir ""
> * Connection #0 to host 64:ff9b::1414:1496 left intact
> curl: (19) RETR response: 425
> > QUIT
> < 221 Goodbye.
> * Closing connection #0
>
> Thanks,
> Michael
>
>
> On Thu, Aug 22, 2013 at 2:15 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
>> On Wed, 21 Aug 2013, Michael Chan wrote:
>>
>> I'm trying to use curl to do active ftp for ipv6, but when I try doing
>>> so, I get a RETR 425 message. I did a packet capture and saw that when the
>>> server was trying to initiate a connect to the client, the client will send
>>> an ICMPv6 type=1 code=1(destination unreachable, unreachable prohibited) to
>>> the server. How can I make curl do active ftp for ipv6?
>>>
>>
>> "curl -P - ftp://example.com/"
>>
>> Please use -v and show us the output so that we can see what fails (edit
>> out sensitive info). I suspect your problem is not with curl but with your
>> network setup/stack something...
>>
>> --
>>
>> / daniel.haxx.se
>> ------------------------------**------------------------------**-------
>> List admin: http://cool.haxx.se/list/**listinfo/curl-users<http://cool.haxx.se/list/listinfo/curl-users>
>> FAQ: http://curl.haxx.se/docs/faq.**html<http://curl.haxx.se/docs/faq.html>
>> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>>
>
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-08-23