I have 2 hdlc interfaces in my box both using RF links. One of the links is uni-directional, the other bi-directional. I want to send all TCP traffic through the bi-directional link and UDP traffic through the uni link. I've got source routing working through the two interfaces
Code:
ip route add 10.10.1.0 via 192.168.1.2 dev hdlc0 tab 1
ip route add 10.10.1.0 via 192.168.1.2 dev hdlc1 tab 2
ip rule add from 10.10.2.101/32 tab 1 priority 500
ip rule add from 10.10.2.102/32 tab 2 priority 600
However I'd like to have a rule that looks more like this:
Code:
ip rule add PROTO udp tab 1 priority 500
ip rule add PROTO tcp tab 2 priority 600
How would I go about doing something like this?
Peter