Hi,
I'm having trouble setting up routing based on the source adress
of packages (policy routing). I have one GNU/Linux router with three
interface cards, one local network and two Internet connections.
On the local network I would like to use adresses from both Internet
connections and then have the router decide which interface to forward
packages to by looking at the source adress.
I would have guessed that something like this would do the trick;
ip rule add from 10.10.10.0/24 dev eth0 table 1
ip rule add from 10.10.20.0/24 dev eth0 table 2
ip route add default via 10.10.10.1 dev eth1 table 1
ip route add default via 10.10.20.1 dev eth2 table 2
But obviously not. It seems to me that my GNU/Linux router doesn't even
consult any routing table other than main, even though an 'ip rule list'
clearly states that it should. What is wrong here? Perhaps I need to
do something to enable policy routing? I have compiled in
Advanced Routing and Policy routing in the kernel.
Jonas
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]