Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 385833

Summary: sys-apps/openrc-0.8.3-r1: rules for multiple routing tables using IPv6 fails
Product: Gentoo Hosted Projects Reporter: Marcel Pennewiß <gentoo>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: openrc:oldnet
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 394205    

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:  
IPv4:
rules_eth3="from 10.10.0.0/26 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
https://bugzilla.redhat.com/show_bug.cgi?id=680872
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-13 08:22:08 UTC
fixed in commit 06f6ce4