From: Gabriel Paues <gabriel@sics.se>
To: Andras Kis-Szabo <kisza@securityaudit.hu>
Cc: Netfilter <netfilter@lists.samba.org>
Subject: Re: alternate tables and ipv6
Date: Thu, 06 Jun 2002 10:20:01 +0200 [thread overview]
Message-ID: <3CFF1B30.88B9A6E@sics.se> (raw)
In-Reply-To: 1023312983.28008.25.camel@hoi
I guess I have to implement it myself, then...
Be back when I have, with a patch!
Sincerily,
Gabriel
Andras Kis-Szabo wrote:
> Hi,
>
> > 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
> >
> > 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?
> I think this is not a Netfilter-related question, but I try to answer.
>
> The basic rtnetlink functions are supported in IPv6 too, but not all.
> Configuration options for IPv4:
> - TCP/IP networking
> - IP: multicasting
> - IP: advanced router
> - IP: policy routing
> - IP: use netfilter MARK value as routing key
> With this You set the CONFIG_IP_ROUTE_FWMARK flag in the configuration.
> This flag is interperted in the IPv4 code, but its whole function is
> missing from the IPv6 code.
>
> The related files and structures:
> /usr/src/linux/net/ipv4/devinet.c
> static struct rtnetlink_link inet_rtnetlink_table[RTM_MAX-RTM_BASE+1]
> /usr/src/linux/net/ipv6/addrconf.c
> static struct rtnetlink_link inet6_rtnetlink_table[RTM_MAX-RTM_BASE+1]
> And severeal other functions and structures in the routing code.
>
> When you try to add a rule with a 'table' object, the 'ip' command -
> maybe - simply discards the 'table' tag.
>
> Regards,
>
> kisza
>
> --
> Andras Kis-Szabo Security Development, Design and Audit
> -------------------------/ Zorp, NetFilter and IPv6
> kisza@SecurityAudit.hu /-----Member of the BUTE-MIS-SEARCHlab------>
next prev parent reply other threads:[~2002-06-06 8:20 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 ` alternate tables and ipv6 Gabriel Paues
2002-06-05 21:36 ` Andras Kis-Szabo
2002-06-06 8:20 ` Gabriel Paues [this message]
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=3CFF1B30.88B9A6E@sics.se \
--to=gabriel@sics.se \
--cc=kisza@securityaudit.hu \
--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