Mailing List Archive

UnNATing
Sorry if I am terribly confused, but if I SNAT an outgoing packet from the
local LAN, is the return packet automatically DNATed back to the original
internal IP when the return packet comes in (as it would be for MASQ in
ipchains)? If so, I would assume the auto-DNAT happens pre-routing.. is this
correct?

The NAT HOWTO hints that this is the case but doesn't explicitly say it
anywhere.

Thanks
Toby


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
RE: UnNATing [ In reply to ]
Toby Chamberlain [SMTP:tjchamberlain@hotmail.com] wrote:
>
>Sorry if I am terribly confused, but if I SNAT an outgoing packet from
>the
>local LAN, is the return packet automatically DNATed back to the
>original
>internal IP when the return packet comes in (as it would be for MASQ in

Yes, happens automatically

-Filip
RE: UnNATing [ In reply to ]
>is the return packet automatically DNATed back to the
> >original
> >internal IP when the return packet comes in (as it would be for MASQ in
>
>Yes, happens automatically
>

And am I right in assuming that it happens _before_ any packet filtering..
so the return packet will hit the FORWARD chain and not the INPUT chain??

Thanks
Toby



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
RE: UnNATing [ In reply to ]
In this case (ie. an automatic DNAT of a return packet) yes.

>
> >is the return packet automatically DNATed back to the
> > >original
> > >internal IP when the return packet comes in (as it would
> be for MASQ in
> >
> >Yes, happens automatically
> >
>
> And am I right in assuming that it happens _before_ any
> packet filtering..
> so the return packet will hit the FORWARD chain and not the
> INPUT chain??