Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'explicitly': 0.05; '21,': 0.07; 'connect,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rfc': 0.09; 'works.': 0.09; 'random': 0.14; '(without': 0.16; '>that': 0.16; '>the': 0.16; 'message- id:@4ax.com': 0.16; 'mode,': 0.16; 'numbered': 0.16; 'port,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'trying': 0.19; 'basically': 0.19; 'seems': 0.21; 'script.': 0.24; 'url:home': 0.24; "i've": 0.25; 'script': 0.25; 'second': 0.26; 'gets': 0.27; 'header:X-Complaints-To:1': 0.27; 'dec': 0.30; 'firewall': 0.31; 'helpful.': 0.31; 'open': 0.33; 'running': 0.33; "can't": 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; 'received:76': 0.38; 'server': 0.38; 'to:addr:python-list': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'such': 0.63; 'our': 0.64; 'here': 0.66; 'default': 0.69; 'subject:skip:F 10': 0.84; 'destination': 0.91; 'passive': 0.91; 'ports': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Ftplib.FTP_TLS Ports Date: Tue, 09 Dec 2014 23:37:58 -0500 Organization: IISS Elusive Unicorn References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-29-89.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418186283 news.xs4all.nl 2907 [2001:888:2000:d::a6]:54029 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82258 On Tue, 9 Dec 2014 20:13:40 -0800, Eric 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/