I was wondering how it would be possible to have multiple IPv6 default gateways on CentOS linux. I currently have two interfaces with IPv6 (venet0 and tb0), both with different blocks routed to them. I was wondering if I could have have one application (which routes from the tun0 interface to the IPv6 one for IPv6 traffic), and use the tb0 interface. Then for everything else, like the general system and other programs, use the main venet0 interface. Is there some way to do this by filtering the packets using IPTables or iproute2?
In other words, there are two interfaces with IPv6 with different blocks routed to them, and I would like to have one application running on the server use the one interface, while everything else uses the other. However, when setting the default gateway for IPv6, the opposite interface is not routed properly and does not work. (I am using route -A inet6 to check.)