~zozs/public-inbox

1

https://linuskarlsson.se/blog/wireguard-split-tunnel-with-systemd-networkd/

Details
Message ID
<6ded5538-c25e-4ef4-955c-88f844e379f6@axelsimon.net>
DKIM signature
pass
Download raw message
Hi there!

  > I haven’t really investigated if it is possible to do it on demand.

It is, and it's pretty easy. You need to add the following in your 
systemd-networkd .network file:

[Link]
ActivationPolicy=manual

The default being "up", as you've discovered.
See 
https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html 
for more options ("Takes one of "|up|", "|always-up|", "|manual|", 
"|always-down|", "|down|", or "|bound|".")

Hope this helps!

axel
Details
Message ID
<2efebe58-d5ad-4dfa-b19c-c02898342bf9@zozs.se>
In-Reply-To
<6ded5538-c25e-4ef4-955c-88f844e379f6@axelsimon.net> (view parent)
DKIM signature
pass
Download raw message
Hi!

>> I haven’t really investigated if it is possible to do it on demand.
> 
> It is, and it's pretty easy. You need to add the following in your 
> systemd-networkd .network file:

Thanks for the feedback, that can definitively be useful. I've added a 
link to your message on the blog too, in case someone else stumbles over 
the post.

Linus
Reply to thread Export thread (mbox)