From owner-freebsd-questions@FreeBSD.ORG Wed Oct 22 19:00:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3780F106567A for ; Wed, 22 Oct 2008 19:00:01 +0000 (UTC) (envelope-from LConrad@Go2France.com) Received: from mgw1.MEIway.com (mgw1.meiway.com [81.255.84.75]) by mx1.freebsd.org (Postfix) with ESMTP id E4E648FC19 for ; Wed, 22 Oct 2008 19:00:00 +0000 (UTC) (envelope-from LConrad@Go2France.com) Received: from VirusGate.MEIway.com (virusgate.meiway.com [81.255.84.76]) by mgw1.MEIway.com (Postfix Relay Hub) with ESMTP id 82067472102 for ; Wed, 22 Oct 2008 21:00:02 +0200 (CEST) Received: from localhost (localhost.MEIWay.com [127.0.0.1]) by VirusGate.MEIway.com (Postfix) with SMTP id 114CB386787 for ; Wed, 22 Oct 2008 21:00:03 +0200 (CEST) (envelope-from LConrad@Go2France.com) X-AV-Checked: Wed Oct 22 21:00:03 2008 virusgate.meiway.com Received: from mail.Go2France.com (ms1.meiway.com [81.255.84.73]) by VirusGate.MEIway.com (Postfix) with ESMTP id DFF8D386733 for ; Wed, 22 Oct 2008 21:00:02 +0200 (CEST) (envelope-from LConrad@Go2France.com) Received: from TX2.Go2France.com [66.90.247.9] by mail.Go2France.com with ESMTP (SMTPD32-7.07) id A5E39730272; Wed, 22 Oct 2008 20:50:11 +0200 X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 22 Oct 2008 13:58:31 -0500 To: freebsd-questions@freebsd.org From: Len Conrad Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-Id: <200810222050687.SM01744@TX2.Go2France.com> Subject: what else is needed to make ftp passive work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 19:00:01 -0000 two machines on the same private network. ftp 10.0.0.24 Connected to 10.0.0.24. 220 mx1.fairhope.net FTP server (Version 6.00LS) ready. Name (10.0.0.24:username): 331 Password required for username. Password: 230 User username logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 229 Entering Extended Passive Mode (|||64341|) at this point, there is a long delay, that eventually completes: 200 EPRT command successful. 150 Opening ASCII mode data connection for '/bin/ls' ... and the rest of the ftp session runs fast. on the ftp server, if we "ipfw disable firewall", the ftp session runs without delay. in hosts file, both machines have both of their records, so we don't think the delay is query for PTR of either IP. our ipfw.rules: # stateful $IPF 50 check-state $IPF 60 allow tcp from any to any established $IPF 70 allow all from any to any out keep-state $IPF 80 allow icmp from any to any # open well-known ports # FTP $IPF 120 allow tcp from any to any 20 in $IPF 121 allow tcp from any to any 20 out $IPF 122 allow tcp from any to any 21 in $IPF 123 allow tcp from any to any 21 out In inetd.conf, we've added "-l -l -d" but don't get any ftpd debug info written to /var/log/messages or /var/log/xferlog or dmesg system buffer. So what else is needed inf our ifpw.rules for the ftpd params to get the switch to Extended Passive Mode to run quickly? thanks, Len ______________________________________________ IMGate OpenSource Mail Firewall www.IMGate.net