ssh root@your_server_ip wget https://raw.githubusercontent.com/drew2a/wireguard/master/wg-ububtu-server-up.sh chmod +x ./wg-ububtu-server-up.sh ./wg-ububtu-server-up.sh 10
interface: wg0 public key: +xxxEjj1qmxxxotq4OxxxfHPaxxxtre5xxxxOfxxw= private key: (hidden) listening port: 51820 peer: d1exxxLdCZcYxxxIQ0xxxxK/Wpx8G1N8xxvnUrxxxx= allowed ips: 10.0.0.2/32 peer: fWExxxazRxxxUOxxxx4JKgUTxxo9LaxxxxOGWtxxK0w= allowed ips: 10.0.0.3/32 peer: RbmxxxDxOoXMxxxcyate6xxxinIClxxDgRDxxxx0j0= allowed ips: 10.0.0.4/32
This will create 10 separate client configs [client1.conf…client10.conf] that are located in the droplet folder [$HOME/wireguard/], you can can use one config for each device.
Also the easiest way is to SFTP to the server and download the clients.
Another super easy solution is offered by cloud provider linode which has a WireGuard replay with just one click!
Another great solution is called streisand
This is another super interesting solution, as it can create a few incredible options!
So! How to?
Start by opening a terminal window on your device, check for existing ssh keys at:
If none there, create one using ssh-keygen:
ssh-keygen -t rsa -b 4096
Now connect via ssh to your server:
Next install python:
sudo apt-get install git python-pip
Clone the Streisand repository from GitHub
git clone https://github.com/StreisandEffect/streisand.git && cd streisand
the installer for Ansible and dependencies. This will identify any missing packages and provide the commands required to retrieve them. (Ignore warnings from Python 2.7 re: depreciation and from
python-novaclient re: 5.1.3 incompatibility)
Activate the Ansible packages:
Run the Streisand script.
Following the prompted instructs, select your provider, the location for the server and name.
You will also be required to enter API information.
Once login information and API keys are entered, Streisand will begin setting up a new remote server.
Once setup to complete, look for the corresponding files in the generated-docs folder in the Streisand repository directory.
The HTML file will explain connecting to the Gateway over SSL or via the Tor hidden service.
All instructions, files, mirrored clients and keys can be found on the Gateway.
You are good to go! Have fun, stay safe (secure!).