CannaLucente
Occasional Visitor
Hi Xentrk,
I am trying to add a rule to have a specific ip routed via a different VPN client. When I set it up in the Merlin UI, the rule gets added with a priority too low (10901 in the example below).
Do I have a way to change the priority so that I can put it before 10101? I have tried the following commands but none worked :-(
ip rule add 192.168.50.227 table ovpnc5 metric 10012
ip rule add 192.168.50.227 lookup ovpnc5 metric 10012
ip route add 192.168.50.227 via ovpnc5 metric 10012
What am I doing wrong?
Thanks!
I am trying to add a rule to have a specific ip routed via a different VPN client. When I set it up in the Merlin UI, the rule gets added with a priority too low (10901 in the example below).
Code:
xxx@RT-AX88U-8880:/tmp/home/root# ip rule show
0: from all lookup local
9990: from all fwmark 0x8000/0x8000 lookup main
9991: from all fwmark 0x3000/0x3000 lookup ovpnc5
9995: from all fwmark 0x1000/0x1000 lookup ovpnc1
10001: from 192.168.50.1 lookup main
10002: from 192.168.50.63 lookup main
10003: from 192.168.50.111 lookup main
10004: from 192.168.50.227 to 198.xx.yy.zzz lookup main
10005: from 192.168.50.227 to 198.xx.yy.zzz lookup main
10006: from 192.168.50.227 to 198.xx.yy.zzz lookup main
10007: from 192.168.50.227 to 198.xx.yy.zzz lookup main
10008: from 192.168.50.227 to 198.xx.yy.zzz lookup main
10009: from 192.168.50.227 to 198.xx.yy.zzz lookup main
10010: from 192.168.50.35 lookup main
10011: from all to 192.168.1.1 lookup main
10101: from 192.168.50.0/24 lookup ovpnc1
10901: from 192.168.50.227 lookup ovpnc5
32766: from all lookup main
32767: from all lookup default
Do I have a way to change the priority so that I can put it before 10101? I have tried the following commands but none worked :-(
ip rule add 192.168.50.227 table ovpnc5 metric 10012
ip rule add 192.168.50.227 lookup ovpnc5 metric 10012
ip route add 192.168.50.227 via ovpnc5 metric 10012
What am I doing wrong?
Thanks!