All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avery Pennarun <apenwarr@nit.ca>
To: Ian Pratt <Ian.Pratt@cl.cam.ac.uk>
Cc: ron minnich <rminnich@lanl.gov>, xen-devel@lists.sourceforge.net
Subject: Re: in the makefile for wget ftp:// etc.
Date: Mon, 12 Jul 2004 15:11:53 -0400	[thread overview]
Message-ID: <20040712191153.GI2502@worldvisions.ca> (raw)
In-Reply-To: <E1Bk5am-0000lI-00@mta1.cl.cam.ac.uk>

On Mon, Jul 12, 2004 at 07:31:56PM +0100, Ian Pratt wrote:

> I always forget which end the passive is with respect to: If I
> use the passive-ftp directive, does it work if I'm behind a dumb
> NAT box or outgoing-connections-only firewall?  (i.e. I need to
> initiate both connections)
> 
> I guess that's the most common case for most users.

Normally the ftp client makes outgoing connection on command port 21, then
the server calls it back from port 20 to send it the file.  Passive mode
makes the server wait on port 20 for the client instead, which makes it much
more useful for such dumb NAT boxes.

Of course:

 - there aren't many NAT boxes remaining that are *that* dumb.  ftp NAT is
   pretty much standard nowadays.
   
 - http is an all-around better protocol for (literally!) everything, so if
   you're just downloading stuff, use http instead.  It uses only one port,
   doesn't need a passive mode at all, can pipeline requests to reduce
   latency, and most http servers are non-forking so they can handle a
   higher load.
   
Have fun,

Avery


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

  reply	other threads:[~2004-07-12 19:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-12 17:27 in the makefile for wget ftp:// etc ron minnich
2004-07-12 18:31 ` Ian Pratt
2004-07-12 19:11   ` Avery Pennarun [this message]
2004-07-12 20:39     ` ron minnich
2004-07-12 20:36   ` ron minnich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040712191153.GI2502@worldvisions.ca \
    --to=apenwarr@nit.ca \
    --cc=Ian.Pratt@cl.cam.ac.uk \
    --cc=rminnich@lanl.gov \
    --cc=xen-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.