Friday, 18 May 2018

linux - Significance of priority in "ip rule" command

What is the significance of the prio option in ip rule add/del command? Does a higher priority for a rule give it preference over other rules in the table?


I saw this piece of code online, without any comments to it. I'm curious to know what it does:


ip rule del prio 32766 from "" dev "" fwmark 0 table main

ip rule del prio 32767 from "" dev "" fwmark 0 table default

ip rule add prio 4294967293UL from "" dev "" fwmark 0 table 1

ip rule add prio 4294967294UL from "" dev "" fwmark 0 table main

ip rule add prio 4294967295UL from "" dev "" fwmark 0 table default

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...