Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Marcin Michalak" <marcin@telscom.ch>
To: netfilter@lists.netfilter.org
Subject: Policy routing for IPv4 and IPv6
Date: Wed, 03 Mar 2004 12:00:07 +0100	[thread overview]
Message-ID: <4045C8C7.16258.29A8EEBA@localhost> (raw)

Hello,
 I have the following situation: two interfaces, eth0 and eth1 with 
different IPv4 and IPv6 addresses. I want to send some type of 
traffic, let's say web requests over eth1, and everything else over 
eth0.
 I created the table table1 in the /etc/ip_route2/rt_tables by 
putting:
167 table1

Then I issue:
ip[6]tables -t mangle -A PREROUTING --protocol tcp --destination-port 
80 -j MARK --set-mark 1
ip rule add fwmark 1 table table1
ip route add default via 192.168.19.1 dev eth1 table table1

But it doesn't work :-( I also can't issue:
ip -f inet6 rule add fwmark 1 table table1
, because I get: RTNETLINK answers: Invalid argument
 I have kernel 2.6.1 with following modules loaded:

Module                  Size  Used by
ip6t_LOG                5312  -
ip6t_MARK               2272  -
ip6table_filter         2816  -
ipt_mark                1920  -
ipt_MARK                2240  -
ipt_CLASSIFY            2336  -
ipt_LOG                 5696  -
iptable_filter          2976  -
ip6table_mangle         2816  -
ip6_tables             17040  -
iptable_mangle          2976  -
ip_tables              16112  -

Any ideas/hints? Would be very grateful. My aim is to make the 
interface selection work over IPv6, but I wanted to start with IPv4 
first.
 Regards,
  Marcin
----------------------------------------------------------
Marcin Michalak		Research Engineer
Mobile: +41 79 330 83 51	Telscom AG		



                 reply	other threads:[~2004-03-03 11:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4045C8C7.16258.29A8EEBA@localhost \
    --to=marcin@telscom.ch \
    --cc=netfilter@lists.netfilter.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