[systemd-devel] Wireguard routes only after connect

Mantas Mikulėnas grawity at gmail.com
Sat Feb 24 10:48:21 UTC 2024


On Wed, Feb 14, 2024, 10:55 Julian Zielke <julian.zielke84 at gmail.com> wrote:

> Hi,
>
>
>
> is there a possibility to only add the routes from allowed-ips to the
> kernel routing table after the peer has connected?
>
> Because since the tunnel itself is stateless, there is no way for me to
> make use of OSPF to route packets to a selective server running a tunnel to
> the same endpoint (for loadbalancing and multi-wan reasons).
>

The easiest method might be to make the server itself talk OSPF with the
"stub router" option enabled (or BGP; I think some places use internal BGP
for that).

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240224/4812d7c3/attachment-0001.htm>


More information about the systemd-devel mailing list