Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Gabriel Paues <gabriel@sics.se>
Cc: netfilter@lists.samba.org
Subject: alternate tables and ipv6
Date: Tue, 04 Jun 2002 15:34:03 +0200	[thread overview]
Message-ID: <3CFCC1CB.DF79783F@sics.se> (raw)
In-Reply-To: 20020604122434.A667@rainbow

Hello!

I want to route IPv6 packages differenlty depending on what is in the flowlabel.
I've written a flowlabel match module which works flawlessly. I have done an
experiment with IPv4 and the TOS flag, where I routed IPv4 packages differently,
depending on what was in the TOS flag. I marked packages (fwmark) depending on
the TOS flag and set everything up like this:

iptables -A PREROUTING -i eth0 -t mangle -m tos --tos 0 -j MARK --set-mark 1
ip rule add fwmark 1 table host2.out
ip route add default via 192.168.2.3 dev eth2 table host2.out

where 192.168.2.3 is different from what is default gw in the main-table.

All is working fine in the IPv6 case except the last statement (slightly altered
for IPv6):

#ip -6 route add default via fec0::192.168.2.3 dev eth2 table host2.out
RTNETLINK answers: File exists

Is this approach incompatible with IPv6 in any way? Is there any problems with
using IPv6-addresses and the "table" object?

Sincerily,

Gabriel Paues






  reply	other threads:[~2002-06-04 13:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-04 10:24 conntrack problems Giovanni Cardone
2002-06-04 13:34 ` Gabriel Paues [this message]
2002-06-05 21:36   ` alternate tables and ipv6 Andras Kis-Szabo
2002-06-06  8:20     ` Gabriel Paues
2002-06-05 21:19 ` conntrack problems Nick Drage
2002-06-05 21:36   ` Tom Eastep

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CFCC1CB.DF79783F@sics.se \
    --to=gabriel@sics.se \
    --cc=netfilter@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox