Get the configuration of a Wireguard peer

To connect a peer to the Wireguard VPN, you first need to get its configuration. The peer configuration is returned by the command. You have to specify the ID of the peer you have previously created:

Get the configuration of a peer
pirogue-admin-client vpn get-peer-config [peer ID]
ℹ️ Example of peer configuration
pi@pirogue ➜ # Example of peer configuration
pi@pirogue ➜ pirogue-admin-client vpn get-peer-config 3
[Interface]
Address = 10.8.0.3/24
PrivateKey = YGe5EF//sIj6QF/2sglmx20b7jxgxFpV1sl8hXBDy34=
DNS = 10.8.0.1

[Peer] EndPoint = 185.199.111.153:51820 PublicKey = YxtvfgfpgCpkQKTI9vcVz0LnXGHIwF83Z65OBWw4F0A= AllowedIPs = 0.0.0.0/0 PersistentKeepAlive = 20

pi@pirogue ➜ |

ℹ️ Save the peer configuration in a file

To save the configuration of the peer in a .conf file to be loaded on the device, use the command:

Save the configuration of the peer in a file
pirogue-admin-client vpn get-peer-config [peer ID] > my-peer-[peer ID].conf

Security concerns

Never share the configuration of a peer publicly. The configuration of a peer contains very sensitive information such as the IP address of your PiRogue and the private key of the peer. If you have any doubts, delete the peer and create it again.

Generate only one configuration per device, and never use the same configuration on multiple devices.