CLI
wg-quick up wg0
wg-quick down wg0- Generate Keys
umask 077
wg genkey | tee privatekey | wg pubkey > publickey- Create
w0.conffile in/usr/local/etc/wireguard
[Interface]
PrivateKey = <private-key-generated-earlier>
Address = <vpn-ip-address-for-this-interface>
[Peer]
PublicKey = <public-key-for-peer-system>
Endpoint = <public-ip-address>:51280
AllowedIPs = <vpn-ip-address-for-peer-interface>, <additional-cidrs>
PersistentKeepalive = 25