Re: Nat before routing decision

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2004-11-15 at 06:44, thomas.elsaesser@xxxxxxxxxxxxx wrote:
> Dear all,
> 
> I need src nat before the packet go to the routing decision.
> How can i do it.
> 
> Kind Regards
> 
> Thomas

well, SNAT is only valid in POSTROUTING of the NAT table.  if you need
to apply alternate routing to a packet and translate it's source, you
can follow the theory of:

1) mark packet in PREROUTING of MANGLE
2) route based on MARK
3) SNAT packet in POSTROUTING of NAT

-j

--
"Another day, another box of stolen pens."
	--The Simpsons



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux