[systemd-devel] Activate netdev only on demand (e.g. for wireguard connection)

Reindl Harald h.reindl at thelounge.net
Thu Mar 11 10:01:25 UTC 2021



Am 11.03.21 um 06:36 schrieb Amish:
> Hello
> 
> So I have a wireguard setup which I use to connect to my server.
> 
> But I do not connect to it daily, just once a in a while.
> 
> I have setup wg0.netdev file and wg0.network file and all is working fine.
> 
> But how do I set it up such that interface wg0 does not connect 
> automatically but comes up only when I run:
> 
> #networkctl up wg0
> 
> Effectively I want wireguard to connect/disconnect on demand

given that wireguard runs directly in the kernel and has no single 
userland process what problem would you like to solve and why?


More information about the systemd-devel mailing list