<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi!<br></div><div><br></div><div>There was some work underway a while back for something along these lines in <a href="https://git.zx2c4.com/wireguard-monolithic-historical/commit/?h=lr/peer-names&id=f50ef1676fe5861c9071910d2caf64593a28d837">https://git.zx2c4.com/wireguard-monolithic-historical/commit/?h=lr/peer-names&id=f50ef1676fe5861c9071910d2caf64593a28d837</a><a href="https://git.zx2c4.com/wireguard-monolithic-historical/log/?h=lr/peer-names">,</a> but unfortunately that work stalled out.</div><div><br></div><div>There are a few workarounds/alternatives out there such as <a href="https://github.com/warner/wireguard-vanity-address">https://github.com/warner/wireguard-vanity-address,</a> which will help you generate keypairs with a short defined string in the public key, but this isn't likely to be workable for a large number of peers.<br></div><div><br></div><div>Cheers,<br></div><div>Steven<br></div><div><br></div><div>On Sat, 25 Jan 2020, at 3:01 AM, jens wrote:<br></div><blockquote type="cite" id="qt"><div>i really would love to have a feature like wireguard-hosts file.<br></div><div>whereas wg command would print given "name" instead of key - so the<br></div><div>output would be more meaningfull<br></div><div>We have some wireguard running in server like infrastructure, where one<br></div><div>server serves dozens of "clients"<br></div><div><br></div><div>so instead of<br></div><div>peer: l9FxaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaU=<br></div><div>we would have something alike<br></div><div>peer: superhero downtown<br></div><div><br></div><div>some of you may be familar with batman-adv layer2 routing protocol,<br></div><div>there they also have a batctl which is working pretty similar to wg tool.<br></div><div>there you can add a bat-hosts file which is doing the job, which totaly<br></div><div>works likes any hosts file<br></div><div>a normal hosts file maps ip to name,<br></div><div>a bat-hosts file maps mac addresses to name,<br></div><div>a wg-hosts file would map keys to name.<br></div><div><br></div><div>i found the sources for bat-hosts ( .c .h .sample ) here<br></div><div>https://downloads.open-mesh.org/batman/releases/batman-adv-2019.5/batctl-2019.5.tar.gz<br></div><div><br></div><div>is this something maybe usefull to other also?<br></div><div>is there a chance to have this implemented by default?<br></div><div><br></div><div>thx for answers.<br></div><div>fuzzle<br></div><div><br></div><div>-- <br></div><div>make the world nicer, please use PGP encryption<br></div><div><br></div><div>_______________________________________________<br></div><div>WireGuard mailing list<br></div><div>WireGuard@lists.zx2c4.com<br></div><div>https://lists.zx2c4.com/mailman/listinfo/wireguard<br></div><div><br></div><div><br></div><div><b>Attachments:</b><br></div><ul><li>0x507EB93F6F6DEE01.asc<br></li></ul></blockquote><div><br></div></body></html>