ip rule
It's a solution for selecting routing table, and it will select from the smallest pref rule number
Add table in rule
$(ip rule add pref $rule_number lookup $table)
Add iptables "or mark" to be a filer
$(ip rule add pref $rule_number fwmark 0x10000/0x10000 lookup $table)
Last updated
Was this helpful?