From owner-freebsd-ipfw Sat Dec 28 18:30: 2 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD9B437B401 for ; Sat, 28 Dec 2002 18:30:00 -0800 (PST) Received: from sima.sita.kiev.ua (sima.sita.kiev.ua [193.193.223.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3545843EA9 for ; Sat, 28 Dec 2002 18:29:57 -0800 (PST) (envelope-from freebsd@akruijff.dds.nl) Received: from smtp03.wxs.nl (smtp03.wxs.nl [195.121.6.37]) by sima.sita.kiev.ua (8.Who.Cares/8.Who.Cares) with ESMTP id gBT2TnS95294; Sun, 29 Dec 2002 04:29:50 +0200 (EET) (envelope-from freebsd@akruijff.dds.nl) Received: from cybertron.kruijff ([213.10.151.186]) by smtp03.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id H7V09H00.B1B; Sun, 29 Dec 2002 03:29:41 +0100 Date: Sun, 29 Dec 2002 03:28:58 +0100 From: Alex X-Mailer: The Bat! (v1.62 Christmas Edition) Personal Reply-To: Alex X-Priority: 3 (Normal) Message-ID: <17452083522.20021229032858@dds.nl> To: Alexander Yeremenko Cc: fbsd-ipfw@sita.kiev.ua Subject: Re: ftpd through firewall In-Reply-To: <20021214131949.A54596@sita.kiev.ua> References: <200212141115.gBEBFh754575@sima.sita.kiev.ua> <20021214131949.A54596@sita.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dear/Beste Alexander, Saturday, December 14, 2002, 12:20:26 PM, you wrote: > I have a box, running lukemftpd with rc.firewall, containing: > ${ipfw} add pass all from me to any > ${ipfw} add pass tcp from any to me ftp > ${ipfw} add pass udp from any to me > When trying to execute ls or get from remote server session hungs > in a state SYN_SENT, even if ftp -p executes. 192.168.31.48.4909 > unix1.ftp unix1.ftp > 192.168.31.48.4909 192.168.31.48.4909 > unix1.ftp unix1.ftp-data > 192.168.31.48.4912 192.168.31.48.4912 > unix1.ftp-data unix1.ftp-data > 192.168.31.48.4912 unix1.ftp > 192.168.31.48.4909 unix1.ftp > 192.168.31.48.4909 unix1.ftp-data > 192.168.31.48.4912 192.168.31.48.4909 > unix1.ftp 192.168.31.48.4912 > unix1.ftp-data 192.168.31.48.4912 > unix1.ftp-data unix1.ftp-data > 192.168.31.48.4912 Using tcpdump i got these packages for a ls with ftp. So you need to pass two ports for normal ftp usages. > ${ipfw} add pass all from me to any > ${ipfw} add pass tcp from any to me ftp > ${ipfw} add pass udp from any to me Why do you allowing udp to pass unconditional? -- Best regards/Met vriendelijke groet, Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message