ip rule

IP routing policy database management. More information: https://manned.org/ip-rule.

ip rule {{show|list}}

sudo ip rule add from {{192.168.178.2/32}}

sudo ip rule add to {{192.168.178.2/32}}

sudo ip rule delete from {{192.168.178.2/32}}

sudo ip rule delete to {{192.168.178.2/32}}

ip rule flush

ip rule save > {{path/to/ip_rules.dat}}

ip rule restore < {{path/to/ip_rules.dat}}