cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl hangs after EPSV

From: Terra Frost <terrafrost_at_gmail.com>
Date: Fri, 20 Jun 2008 07:20:19 -0500

On Thu, Jun 19, 2008 at 10:30 PM, Dan Fandrich <dan_at_coneharvesters.com>
wrote:

> On Thu, Jun 19, 2008 at 07:19:24PM -0500, Terra Frost wrote:
> > The logs can be found here:
> >
> > http://www.frostjedi.com/terra/curl01.txt
> > http://www.frostjedi.com/terra/curl02.txt
> >
> > The first one gives a different error in the CLI (stderr?) - "Uploaded
> > unaligned file size (0 out of 351232 bytes)". I get this error about,
> maybe,
> > 10% of the time. The other one (the second one) occurs about 90% of the
> time
> > and gives a "Connection time-out" error in the CLI.
> >
> >
> > > I'm able to connect via FlashFXP without any problems. One thing I
> > noticed
> > > when doing this is that FlashFXP never sends EPSV. I tried
> disabling
> > that with
> > > the --disable-epsv flag, but that didn't help. I tried --ftp-pasv
> and
> > > --ftp-skip-pasv-ip, too, to no avail.
> > >
> > > When I try to do it from the same computer (10.0.0.101), however,
> it
> > works.
> > > PASV is never sent and the test file I'm trying to upload is
> uploaded.
> >
> > Could it be a firewall blocking the data connection?
> >
> > Maybe, but wouldn't a firewall just block the port? Here, it's able to
> connect
> > and even issue a few commands. It just doesn't seem to want to do
> anything
> > after that.
>
> FTP transfers need two ports--one for the control connection, which is
> working fine for one, and one for the data connection, which isn't. It's
> looking pretty strongly like a firewall problem from those logs. You
> could also try FTP PORT mode with the --ftp-port option to try to get
> around the firewall problem.

That didn't seem to help, although you're comment that it uses two ports got
me to looking around.

There's a "Passive mode settings" tab which has a "Use custom port range"
field. I just set that to 1500, min, and 1500, max, added 1500 to the
Firewall exception list, and... that seems to have gotten it working.
Thanks!

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-06-20