I am using sshuttle to route some traffic automatically via an ssh jump server. It works well but in some situations i.e. switching to another Wifi network the connection breaks an i'll have to restart sshuttle manually.
Is it possible to start sshuttle in a way that it restarts automatically whenever a network connection is available again?
We already built a workaround with
until which retries in a loop until it connects again, but that feels wrong to me?