Re: Route packets by source IP

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

 



On 03/18/08 07:01, Steffen Heil wrote:
2. At A: Route every packet "from A2:P" to B2.
 - otherwise A would try to route to the client via its gateway, which
would fail because of the private sender ip. -

But I don't know how to do the second.

Any hints?

You need to use policy based routing. In short, set up an additional routing table very similar to the main routing table save for using B as the default gateway rather than A. Then you use Traffic Control (tc) rules to direct the kernel to use the new routing table for the traffic that you want to manually route.



Grant. . . .
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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