Linux Netfilter discussions
 help / color / mirror / Atom feed
* Outgoing interface selection by source address
@ 2003-11-27 13:55 Pawel Hadam
  2003-11-27 14:20 ` Ralf Spenneberg
  0 siblings, 1 reply; 2+ messages in thread
From: Pawel Hadam @ 2003-11-27 13:55 UTC (permalink / raw)
  To: netfilter

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Outgoing interface selection by source address
  2003-11-27 13:55 Outgoing interface selection by source address Pawel Hadam
@ 2003-11-27 14:20 ` Ralf Spenneberg
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Spenneberg @ 2003-11-27 14:20 UTC (permalink / raw)
  To: Pawel Hadam; +Cc: Netfilter

Am Don, 2003-11-27 um 14.55 schrieb Pawel Hadam:
> 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:
It is, but not using netfilter (AFAIK). Take a look at the 
Linux Advanced Routing and Traffic Howto: lartc.org

Cheers,

Ralf
-- 
Ralf Spenneberg
RHCE, RHCX

Book: VPN mit Linux
Book: Intrusion Detection für Linux Server   http://www.spenneberg.com
IPsec-Howto				     http://www.ipsec-howto.org
Honeynet Project Mirror:                     http://honeynet.spenneberg.org


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-27 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-27 13:55 Outgoing interface selection by source address Pawel Hadam
2003-11-27 14:20 ` Ralf Spenneberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox