Identify Wireguard peers

The Wireguard peers configured on your PiRogue are not named, a peer is identified by its ID only. If you want to associate a peer to an individual, you have to store this information separately, ideally not on your PiRogue. We suggest you keep track of the peers the following way:

DatePeer IDPeer IP addressIndividual
2024-10-23210.8.0.2John
2024-10-23310.8.0.3Lea
2024-10-27610.8.0.9Camilla
ℹ️ How to find the IP address of a peer

The IP address of a peer is specified in the configuration of each peer, it corresponds to the Address. It’s specified using CIDR notation, ignore the value after the /.

In this example, we want to get the IP address of peer 2.

pi@pirogue ➜ # Example of getting the IP address of peer 2
pi@pirogue ➜ pirogue-admin-client vpn get-peer-config 2
[Interface]
Address = 10.8.0.2/24  <--- IP address of peer 2
PrivateKey = WLzm+auxiGXJJDf/74TsS4hnAU4mViJxR8XfpJUviW0=
DNS = 10.8.0.1

[Peer] EndPoint = 51.159.150.9:51820 PublicKey = dQzDsS2BQPjNjI2PG4hGAQX7AQ2xhFZnuMvV2beLj30= AllowedIPs = 0.0.0.0/0 PersistentKeepAlive = 20

pi@pirogue ➜ |