I have created an environment where I have an underlay network running on my PPPoE wan but all my external-facing services are running on an overlay network. This is created "on top" of the underlay with an L2TP connection to a second ISP, with a higher priority (lower "metric" in the interface definition) than my underlay wan
.
But, I also have some wireguard tunnels that operate in a pseudo-server mode. And I would really like to find some way to ensure that I don't end up with race conditions where they could initially bind to the underlay network. Ideally I would like to be able to delay OpenWRT from attempting to bring them up until after the L2TP connection is fully established.
Does anyone have any suggestions on how to go about that?