From owner-freebsd-questions Thu Apr 22 0: 2:45 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (Postfix) with ESMTP id 7CBA015113 for ; Thu, 22 Apr 1999 00:02:40 -0700 (PDT) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.2/8.9.2) with ESMTP id IAA28061; Thu, 22 Apr 1999 08:00:05 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id HAA01126; Thu, 22 Apr 1999 07:21:54 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199904220621.HAA01126@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Sergey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FTP and NATD. How it works? In-reply-to: Your message of "20 Apr 1999 10:36:03 -0000." <19990420103603.31995.qmail@nym.alias.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 22 Apr 1999 07:21:54 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello! > > I've used Windows ftp.exe from Microsoft. It works > through NATD. According to FTP spec (RFC 959) daemon > should make data connection to user-DTP, but it is > impossible through NAT. Isn't it? > > It seems that client works according to FTP spec... > I've logged outgoing (command) session using tcpdump. > > USER sergey > PASS here is my pass word > PORT 192,168,1,2,12,13 > NLST > PORT 192,168,1,2,12,14 > NLST > QUIT > > Can someone be nice enough to explain me details. src/lib/libalias/alias_ftp.c traps PORT commands as they go out on the normal FTP port, tweaks the command so that it'll understand what comes back, makes an entry in the alias tables for the new connection and punches a hole through the filewall for that connection. > Thanks, Sergey. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message