From owner-freebsd-questions Wed Apr 21 13:17: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id 8F00915440 for ; Wed, 21 Apr 1999 13:16:19 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id PAA07732; Wed, 21 Apr 1999 15:29:44 -0500 (EST) Date: Wed, 21 Apr 1999 15:29:42 -0500 (EST) From: Alfred Perlstein To: Sergey Cc: Doug White , freebsd-questions@FreeBSD.ORG Subject: Re: FTP and NATD. How it works? In-Reply-To: <19990421183958.18985.qmail@nym.alias.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 21 Apr 1999, Sergey wrote: > > > > > > 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. > > > > Try setting up some logging on the firewall and make sure the packets > > aren't getting eaten. > > > Sorry, I wrote not clear enough. All WORKS great - i got files, listings > etc... > The question is "why it works?". According to my idea FTP daemon > should try host 192.168.1.2 (my internal private address) and fail > connection > in active mode... This is NOT case, so I missed something... > Could you hint me? > > This is not practical question. Just curiosity ;) > > P.S.: The natd manual/source doesn't give answer ... man libalias I already replied explaining that it's co-operation between natd and libalias that allows this to happen... natd examines the data sent through it and opens up ports to forward to internal machines if it sees certain protocol information. I think the code you are really looking for is in libalias. -Alfred > > Thanks, Sergey. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message