Open OJFord opened 4 years ago
Sure, although I'm surprised anyone uses raw wg
tbh, wg-quick
has always seemed like the primary user-facing CLI to me.
Depends on use case I suppose, if you're using it as a client(s) - server VPN for privacy or whatever wg-quick is probably great. For networking many servers though you might prefer to use systemd (supports WireGuard netdevs as of v241 as I recall, better support in 243) or similar file-based config.
I just checked and wg-quick
handles a superset of wg
's file-based config features. I use it for my server-to-server VPN, not for privacy, and have never felt the need to drop down to raw wg
. I remain unconvinced that anyone should start by using wg
directly unless they already know what they're doing (in which case they don't need these docs anyway), but I still think labeling them better is harmless so I'll leave this issue open.
Edit: my position on this has softened somewhat as of 2024. I still think wg-quick
is the easiest interface for beginners but I'd be open to PRs clarifying which parts are wg
/ wg-quick
-specific.
Note that some environments, such as OpenWRT, don't provide/support wg-quick
.
DNS
andAddress
for example are only valid config items when using thewg-quick
tool, IMO it would be good to distinguish these and any others, just a brief:marker, perhaps linking to a section that explains.