Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 15:29:42 -0500 (EST)
From:      Alfred Perlstein <bright@rush.net>
To:        Sergey <serge69@nym.alias.net>
Cc:        Doug White <dwhite@resnet.uoregon.edu>, freebsd-questions@FreeBSD.ORG
Subject:   Re: FTP and NATD. How it works?
Message-ID:  <Pine.BSF.3.96.990421152742.11384z-100000@cygnus.rush.net>
In-Reply-To: <19990421183958.18985.qmail@nym.alias.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990421152742.11384z-100000>