All of lore.kernel.org
 help / color / mirror / Atom feed
* Re IPv6 MARK support
@ 2007-02-28  8:04 Boutin Maël
  2007-02-28  9:55 ` Boutin Maël
  0 siblings, 1 reply; 11+ messages in thread
From: Boutin Maël @ 2007-02-28  8:04 UTC (permalink / raw)
  To: netfilter

No one have an idea ? Is RPDB (routing policy database) working in
Ipv6 ?? Seems to me that it should work, since NEPL (Nemo
implementation for linux) is using it...


On 2/27/07,  mael.boutin@laposte.net <mael.boutin@laposte.net> wrote:
>  Hi,
>
>   I have a problem with the MARK target support. I want to MARK locally generated IPv6 packets (UDP, TCP, ICMP ...). For this i use the following ip6tables command :
>
> ip6tables -t mangle -A OUTPUT -p udp -j MARK 0x1
> ip6tables -t mangle -A OUTPUT -p tcp -j MARK 0x2
>
> All works fine, the rule is added in the OUPUT chain of mangle table. Now i want to retrieve this mark and route packets according to their mark :
>
> ip -6 route add 2001:688:dd00::5 via 2001:688:bb00::5 dev eth0 table TEST1
> ip -6 route add 2001:688:dd00::5 via 2001:688:cc00::5 dev eth1 table TEST2
>
> => Routes seems to be taken into account and added to the tables (it doesn't appear but when you type ip -6 route show table 0 | grep TEST1 you can see the rules in TEST1)
>
> ip -6 rule add fwmark 0x1 table TEST1
> ip -6 rule add fwmark 0x2 table TEST2
>
> => Rules are added and can be viewed with ip -6 rule show
>
> The test bed is set up correctly (all interfaces can be pinged).
>
> My problem is that when i generate a UDP flow (via nc) the packets are not marked (i suppose) by ip6tables and therefore iproute does not lookup table TEST1 as it should.
>
> My kernel is  2.6.19.3 with ip6tables compiled as module with all available targets, IPv6 multiple routing tables is built in as well as "use netfilter MARK value as routing key"
>
> Best regards,
>
> Maël
>
> Envoyez vos cartes de voeux depuis  www.laposte.net
> Elles seront ensuite distribuées par le facteur : pratique et malin !
>
>
>



-- 
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc

-- 
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc


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

end of thread, other threads:[~2007-03-01 21:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-28  8:04 Re IPv6 MARK support Boutin Maël
2007-02-28  9:55 ` Boutin Maël
2007-02-28 10:53   ` Yasuyuki KOZAKAI
2007-02-28 11:36     ` Yasuyuki KOZAKAI
     [not found]     ` <200702281136.l1SBaJLe019021@toshiba.co.jp>
2007-02-28 11:53       ` Boutin Maël
2007-02-28 12:38         ` Yasuyuki KOZAKAI
     [not found]         ` <200702281238.l1SCcE4F016826@toshiba.co.jp>
2007-03-01 10:32           ` Boutin Maël
2007-03-01 11:05             ` Boutin Maël
2007-03-01 15:18               ` Pascal Hambourg
2007-03-01 15:42                 ` Eray Aslan
2007-03-01 21:31                   ` Boutin Maël

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.