ftplib problems with firewall

David Bolen db3l at fitlinxx.com
Tue Aug 1 16:49:48 EDT 2000


David Bolen <db3l at fitlinxx.com> writes:

> I'm a bit surprised that you can use a normal client for FTP transfers
> through your firewall configuration, and not ftplib.  They'll both
> require special entries in the firewall, but whatever works for one
> should really work for both.

Just to follow up to my previous response - one thing I did think of
that might explain such behavior is if your FTP client happens to use
a certain range of local ports (either via a special local version or
something) that happens to match something configured in your
firewall, but ftplib is picking local ports outside of that range.

If that was the case, you could probably subclass the FTP class,
override the makeport() method and create something that obtained
ports from the same range as your normal FTP client.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list