You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Minimal required changes areserver_public_address andserver_port. All the rest, such asdefault_route,dns,use_preshared_key is global, for all clients. This is a flaw but you can editconfig.yaml before creating new client,or edit generated configuration. Although, in the latter case it's not possible to update QR code easily.
So, we have server directory withconfig.yaml. It's time to create server configuration for wireguard:
$ ./create-server sample-server
Here's what we get:
$ ls sample-server/
config.yaml private-key public-key wg0.conf
wg0.conf is the configuration for server's interface. Copy or symlink it to /etc/wireguard and then, if you're an involuntarily systemd fan as me:
systemctlenable wg-quick@wg0
It's not necessary to start wg0 right now because configuration is half-way: