Wireguard Access to Users
Guide
This is an administrator's guide to provide access to Wireguard Bastion via users' devices (called peers). Access must be provided to each unique device (like a desktop, laptop, mobile phone etc). Multiple connections to Wireguard bastion with the same conf file are not possible.
Steps
Login to the Wireguard node via SSH.
> ssh -i <SSH key pem file> <user>@<ip>Navigate to Wireguard conf folder
> cd /etc/wireguard_generalYou will see several pre-created peer config files. You may assign any one of the file (not assigned before) to a new peer/user.
Edit
assigned.txtfile to assign a new the peer (client/user). Make sure a conf file is assigned to a unique user, already assigned file is never re-assigned to another user.> vim assigned.txtAdd the peers with name as mentioned below. Example:
> peer1 : <peer name>Share the conf file with the peer/user securely. Example:
peer1/peer1.confCreate a local Git repo to maintain versions of
assigned.txt.Usegit initcommand to initiate a local repo. Check in any changes to this file.
Last updated