Background: I am trying to implement dynamic routing for a system.
Is it possible to create a super user that is restricted to changing the routing table? Something like a restricted sudo
that can only run route
or ip route
?
I don't know exactly what would be the best way to do this, everything I think about is rather awkward. One idea I had was to run a service and simple write a file with the new table information and check whether that file changed.
The solutions I found were really strange, using virtual machines, which I would rather avoid.
Is there a good/safe or canonical way of doing this?
Thank you!