0

Is there any solution to use /etc/wireguard/wg0.conf for both, wg-quick and systemd-networkd.

Following this example I have to duplicate configuration, but I want to store config in one place.

How to achieve that?

kAldown
  • 161
  • 1
  • 1
  • 7

1 Answers1

0

You could do a soft link. ln -s /etc/wireguard/wg0.conf /etc/systemd/network/99-wg0.netdev

Then you can edit from /etc/wireguard/wg0.conf and it changes at /etc/systemd/network/99-wg0.netdev, as it is the same file.

Buggy
  • 1
  • 1