[Prev][Next][Index][Thread]
Re: Spesial PPP configuration.
> This all sounds great but exactly how does the "router" (i.e. the Linux
> box
> with the ppp0 iface configured on it knows which incoming packet is
> intended for the original host and which to the Linux box itself, after
> all the destination address of ALL incoming packets will be that of the
> so-called router with no indication whatsoever as to the host on the LAN
> (and this guy has how many??? 20 hosts??)). I went through all the
> documentation in NET-2-HOWTO and although it explains exactly how to
> obtain and install IP masquerading and the use of the special ver of ipfw,
> it DOES'NT say anything about the technical side of things, i.e. , no
> answear to my question there.
If I remember correctly (and I am NOT sure I do), I think the masquerading
daemon gets the request from the machine, and sends it out on a specified
port. It then remembers that this port is "reserved" for the source machine.
Any traffic that comes to that port is automatically forwarded to the
original machine. I also think that every port in the original machine
has a "masqueraded" port in the router.
Shay
--
Shay Rojansky, roji@cs.huji.ac.il Finger for PGP public key
References: