Re: is this possible (multiple sources, replies go to proper source)

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

 



Paulo Andre wrote:

Martijn Lievaart wrote:


Use CONNMARK to remember which connection came from which gateway, use the
ROUTE target to correctly route the replies.

HTH,
M4

Hi Martjin, do you have an example on how to do this?



Scratch the route target. Use iproute2. In prerouting mark the packet according to the interface it came in on. On the retrun traffic restore the mark. Create routing rules on the fwmark. Google on "connmark route" gives lots of info.

HTH,
M4



[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