pi-thrower
March 20th, 2021, 12:24 PM
My question is the same as was asked here but never answered: https://ubuntuforums.org/showthread.php?t=2394548
What is the recommended way to make ip routes and ip rules persistent? I've read in multiple sources what TheFu said in the above thread, that it can be done in rc.local. Given that i only need one 'ip rule' and one 'ip route' command executed to accomplish what i'm going for this is certainly possible but i'd prefer to do this the way the developers intended, however that is.
I see that some static routing can be done in Netplan but it's more rudimentary than what i'm going for: https://ubuntuforums.org/showthread.php?t=2394548
I have a rule in IPTables that tags packets, a rule created with 'ip rule' to match on that tag and send those packets to a different routing table and i have the routing table itself.
What is the recommended way to make ip routes and ip rules persistent? I've read in multiple sources what TheFu said in the above thread, that it can be done in rc.local. Given that i only need one 'ip rule' and one 'ip route' command executed to accomplish what i'm going for this is certainly possible but i'd prefer to do this the way the developers intended, however that is.
I see that some static routing can be done in Netplan but it's more rudimentary than what i'm going for: https://ubuntuforums.org/showthread.php?t=2394548
I have a rule in IPTables that tags packets, a rule created with 'ip rule' to match on that tag and send those packets to a different routing table and i have the routing table itself.