Date: Mon, 01 Feb 2021 10:52:27 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253154] [PATCH] wireguard - add peer alias Message-ID: <bug-253154-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253154 Bug ID: 253154 Summary: [PATCH] wireguard - add peer alias Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: mail@void.so Created attachment 222065 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D222065&action= =3Dedit alias name When you have many peers, it becomes difficult to understand who is who. You can only write in notepad lines such as: "pub-key -> Alice" or via comment = in wireguard config file. But FreeBSD doesn't have it either. So I added optio= nal alias parameter to ifconfig. Example: # ifconfig wg0 peer public-key \ d+tsnnberdvggwffmugyod06dwjk8c6o542u/dbr+cc=3D endpoint 192.168.1.86:51820 allowed-ips 10.0.0.3/32 alias Bob # ifconfig wg0 peer public-key \ d+TSNnberdVGGWFfMuGYOD06dwjk8c6o541u/dBr+Cc=3D endpoint 192.168.1.86:51820 allowed-ips 10.0.0.4/32 alias Alice # ifconfig wg0 peer public-key \ d+TSNnberdVGGWFfMuGYOD06dwjk8c6o543u/dBr+Cc=3D endpoint 192.168.1.86:51820 allowed-ips 10.0.0.5/32 And peer list becomes more pretty to understand who is who: # ifconfig wg0 peer-list [Peer] PublicKey =3D d+TSNnberdVGGWFfMuGYOD06dwjk8c6o543u/dBr+Cc=3D Endpoint =3D 192.168.1.86:51820 AllowedIPs =3D 10.0.0.5/32 [Peer] Alias =3D Alice PublicKey =3D d+TSNnberdVGGWFfMuGYOD06dwjk8c6o541u/dBr+Cc=3D Endpoint =3D 192.168.1.86:51820 AllowedIPs =3D 10.0.0.4/32 [Peer] Alias =3D Bob PublicKey =3D d+tsnnberdvggwffmugyod06dwjk8c6o542u/dbr+cc=3D Endpoint =3D 192.168.1.86:51820 AllowedIPs =3D 10.0.0.3/32 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253154-227>