Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385833 - sys-apps/openrc-0.8.3-r1: rules for multiple routing tables using IPv6 fails
Summary: sys-apps/openrc-0.8.3-r1: rules for multiple routing tables using IPv6 fails
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
Whiteboard: openrc:oldnet
Depends on:
Blocks: openrc-tracker
  Show dependency tree
Reported: 2011-10-06 06:42 UTC by Marcel Pennewiß
Modified: 2011-12-13 08:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Pennewiß 2011-10-06 06:42:38 UTC
Multiple routing tables for IPv6 works like for IPv4. Unlike doing it via conf.d/net for IPv4 this does not work for IPv6 (ip rule does not behave like ip route).

Reproducible: Always

Steps to Reproduce:
1. Install kernel with IPV6_MULTIPLE_TABLES and IPV6_SUBTREES
2. emerge iproute2
3. create name for routing table:
     echo "44   vpn" >> /etc/iproute2/rt_tables
4. create config in conf.d/net
     rules_ethX="from 2001:0DB8:AAAA:BBBB::/64 table vpn priority 100"
5. start net.ethX
Actual Results:  
rules_eth3="from table vpn priority 100"

Expected to work with IPv6
rules_eth3="from 2001:0DB8:AAAA:BBBB::/64 table vpn priority 100"

vpn-node-2 rc # /etc/init.d/net.eth3 restart
 * Bringing up interface eth3
 *   Adding RPDB rules
RTNETLINK answers: Invalid argument

Expected Results:  
it should work ;)

ip rule need the -6 flag for adding Rules for IPv6-Policy-Routing. Currently iproute2-development system is down due maintenance so i'm not able to have a look at the sources. maybe could also be an upstream issue.

maybe interesting
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-13 08:22:08 UTC
fixed in commit 06f6ce4