hindmost wroteThe problem for me is the routes are created before the tunnel is actually online.
Instead of hardcoding routes into the client config file, you can put them in an "up" script, which will be called after the tunnel goes up.
When using this method, a "down" script can be used to pull the routes down when your client closes the tunnel.
or you can just use "--up" and "--down" directives, which would also allow for you to include delays, so you can be sure the tunnel has a few seconds grace. More info in the
man page.