Outgoing interface selection by source address

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

 



Hi all

I have 2 local interfaces (eth0 & eth1) and thus 2 IPv6 addresses (src0 &
src1).

I have an SCTP/IPv6 application that binds to one of the addresses
(let's say src0) and sends packets to some destination (dst). But
according to the classical routing policy, all packets in this
connection (src0, dst) are routed via eth1. And I would like them to be
routed via interface eth0, as src0 is the address of eth0 not eth1.
Is it possible to do it with netfilter for IPv6 ? I mean, is it possible
to route the packets via the proper outgoing interface by theirs source
address, like this:

if (src = src0) then send via eth0
if (src = src1) then send via eth1
if (src = other) do whatever

Could anybody give any ideas how to solve my problem, please?

I am using linux-2.6.0-testXX versions.

With best regards
Pawel



[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