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
