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?

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.