Request: Optional "Comment" [Peer] entry

Lonnie Abelbeck lists at
Thu Nov 16 21:31:20 CET 2017

I have a suggestion, feature request ...

With several peers, the output of "wg show" is difficult to visually identify the peers at a quick glance.

How about an optional "Comment = " entry for the [Peer] section.

For Example:
PublicKey = UMJMPFVTzjmzr7SJMQ7k+Z+3Pr1aq4w+5chtUny6Akg=
Endpoint = [fda6:66b2:b74a:50::3]:51820
AllowedIPs =
Comment = pbx3 - Jetway NF9HG-2930

For each peer in "wg show" with a "Comment = " defined ...
peer: HIgo9xNzJMWLKASShiTqIybxZ0U3wGLiUeJ1PKf8ykw=
  endpoint: [fda6:662b:b74a:50::3]:51820
  allowed ips:
  latest handshake: 3 seconds ago
  transfer: 376 B received, 680 B sent
  comment: pbx3 - Jetway NF9HG-2930

If others like this idea, should the comment be displayed first, last, etc. ?

Truncating the comment string to 64 characters would be fine.  Or even 32 chars.

Thoughts ?


More information about the WireGuard mailing list