[LARTC] re-routing network traffic.

Prasad prasad at atc.tcs.co.in
Tue Jul 11 06:41:08 CEST 2006


Hello All,

The following is what I was trying to do:

A packet [Dest: 10.10.10.2, Src: 10.10.10.30] has a route through 
"tunl0".  The bigger problem is that "tunl0" is a tunnel between 
10.10.10.2 and 10.10.10.20...  Which means that after encapsulation 
takes place, the packet would look like [Dest: 10.10.10.2, Src: 
10.10.10.20 [Dest: 10.10.10.2, Src: 10.10.10.30]].

Thing to be noted is that the destination of the packet before and after 
encapsulation is same!

This is what I plan to do:
1. Create a route such that all packets to 10.10.10.2 go through tunl0
2. In POSTROUTING, if destination is 10.10.10.2 and the packet is not 
marked, mark it.
3. Create another route for the packets that are marked.

Is this approach the right one, and is it possible to do such a thing - 
I am specially doubtful about the second step!!

Thanks,
Prasad


More information about the LARTC mailing list