Date: Thu, 22 Apr 1999 07:21:54 +0100 From: Brian Somers <brian@Awfulhak.org> To: Sergey <serge69@nym.alias.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FTP and NATD. How it works? Message-ID: <199904220621.HAA01126@keep.lan.Awfulhak.org> In-Reply-To: Your message of "20 Apr 1999 10:36:03 -0000." <19990420103603.31995.qmail@nym.alias.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org> <brian@FreeBSD.org> <http://www.Awfulhak.org> <brian@OpenBSD.org> Don't _EVER_ lose your sense of humour ! <brian@uk.FreeBSD.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904220621.HAA01126>