Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82258

Re: Ftplib.FTP_TLS Ports

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Ftplib.FTP_TLS Ports
Date 2014-12-09 23:37 -0500
Organization IISS Elusive Unicorn
References <CABDNQGxnL0Dh6oefU174bN6u59UK3XAKWLFpiKvYfN3VH8qaYA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.16791.1418186283.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, 9 Dec 2014 20:13:40 -0800, Eric <seag33k@gmail.com> declaimed the
following:

>We are trying to open our firewall but it keeps failing.  The docs state
>that the default port is 21 and we've opened port 21.  I've ran tcpdump on
>the box while running the script.  I see a destination port of 21, but
>there seems to be random destination ports such as 2320 which follow.  If
>we open the firewall to allow all traffic, the script works.  Here is a
>snip of what I have for the ftp portion.  Any ideas would be helpful.
>
	Are you running in PASSIVE mode?

	Original (normal?) FTP uses the known numbered port as a control port,
and gets a second port for the data itself (without looking up the RFC I
can't state if said second port is opened by the server in response to the
client connect, or is provided to the server by the client).

	Passive mode, as I understand it, basically means the control port is
used for everything -- it explicitly is used to get through firewalls.

-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Ftplib.FTP_TLS Ports Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-12-09 23:37 -0500

csiph-web