ftplib problems with firewall

Paul Foley see at below
Wed Aug 2 00:25:59 EDT 2000


On 01 Aug 2000 16:30:07 -0400, David Bolen wrote:

> Ah, this is where the FTP protocol gets ugly for firewalls.  The
> outbound TCP connection for FTP is only the control connection.
> Whenever actual data is transferred (which includes a directory
> listing and not just file transfers), what actually happens is that
> the FTP client sends across port and address information and the FTP
> server turns around and makes a connection _formed from server to
> client_ to the address/port that it was given.

You can use the "PASV" command to reverse that.  Instead of the PORT
command telling the server where to connect, send PASV and it'll tell
you (on the command channel) where to connect back to it.

[If the standard FTP client works, and Python doesn't, that's probably why]

-- 
e)c e)/rgwn d' a)/ndres polu/mhloi/ t' a)fneioi/ te gi/gnontai.
                                                              -- Hesiod
(setq reply-to
  (concatenate 'string "Paul Foley " "<mycroft" '(#\@) "actrix.gen.nz>"))



More information about the Python-list mailing list