<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px">Just as a point of reference, I manually implemented my own solution for this.  I have all my wireguard key files named as `<hostname>.pub` in a directory, then I source the following as one of my dot files:</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px"><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#4c4c4c;background-color:#0f0f0f">#!/usr/bin/env bash</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197);min-height:13px"><br></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#4c4c4c;background-color:#0f0f0f"># Don't do anything if `wg` doesn't exist</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>if </b></span><span style="font-variant-ligatures:no-common-ligatures;color:#4f4f4f;background-color:#0f0f0f">[[</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>-z</b></span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">$(</span><span style="font-variant-ligatures:no-common-ligatures;color:#51ceff;background-color:#0f0f0f">which wg</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">)</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f4f4f;background-color:#0f0f0f">]]</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">;</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>then</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>return</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>fi</b></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(15,15,15)"><br></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(15,15,15)"><span style="color:rgb(76,76,76)"># Otherwise, load in our mapping of public keys to hostnames:</span></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(15,15,15)"># Otherwise, load in our mapping of public keys to hostnames:</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>declare</b></span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#51ceff;background-color:#0f0f0f">-A</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> WG_HOST_MAP</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>for</b></span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> f </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>in</b></span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${HOMES_PATH}</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">/etc/secure/wireguard/*.pub; </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>do</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#fc7208;background-color:#0f0f0f">HOST</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">=</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">$(</span><span style="font-variant-ligatures:no-common-ligatures;color:#51ceff;background-color:#0f0f0f">basename </span><b>"</b><span style="font-variant-ligatures:no-common-ligatures;color:rgb(122,255,8);background-color:rgb(15,15,15)">${f</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(203,0,77);background-color:rgb(15,15,15)">%</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(15,15,15)">.*</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(122,255,8);background-color:rgb(15,15,15)">}</span><b>"</b><span style="color:rgb(122,255,8);background-color:rgb(15,15,15)">)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#fc7208;background-color:#0f0f0f">KEY</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">=</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">$(</span><span style="font-variant-ligatures:no-common-ligatures;color:#51ceff;background-color:#0f0f0f">cat </span><b>"</b><span style="color:rgb(122,255,8);background-color:rgb(15,15,15)">$f</span><b>"</b><span style="color:rgb(122,255,8);background-color:rgb(15,15,15)">)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">    WG_HOST_MAP</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">["</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${KEY}</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"]="</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${HOST}</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>done</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197);min-height:13px"><br></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">function</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> wg</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">()</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#4f4f4f;background-color:#0f0f0f">{</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#4c4c4c;background-color:#0f0f0f"># Do some special parsing for `wg show`</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>if </b></span><span style="font-variant-ligatures:no-common-ligatures;color:#4f4f4f;background-color:#0f0f0f">[[</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>-z</b></span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">$1</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f4f4f;background-color:#0f0f0f">]]</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">||</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f4f4f;background-color:#0f0f0f">[[</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">$1</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>==</b></span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#9fa174;background-color:#0f0f0f">show</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f4f4f;background-color:#0f0f0f">]]</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">;</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>then</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">        </span><span style="font-variant-ligatures:no-common-ligatures;color:#fc7208;background-color:#0f0f0f">WG_OUTPUT</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">=</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">$(</span><span style="font-variant-ligatures:no-common-ligatures;color:#51ceff;background-color:#0f0f0f">unbuffer sudo -n </span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">$(</span><span style="font-variant-ligatures:no-common-ligatures;color:#51ceff;background-color:#0f0f0f">which wg</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">))</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">        </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>for</b></span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> K </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>in</b></span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${!WG_HOST_MAP[</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">@</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">]}</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">";</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>do</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">            </span><span style="font-variant-ligatures:no-common-ligatures;color:#fc7208;background-color:#0f0f0f">V</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">=</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${WG_HOST_MAP[</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${K}</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">]}</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">            </span><span style="font-variant-ligatures:no-common-ligatures;color:#fc7208;background-color:#0f0f0f">WG_OUTPUT</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">=</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${WG_OUTPUT</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">/"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${K}</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"/</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${V}</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">}</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">        </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>done</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">        </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>echo</b></span><span style="font-variant-ligatures:no-common-ligatures;color:#9fa174;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">${WG_OUTPUT}</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>else</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">        </span><span style="font-variant-ligatures:no-common-ligatures;color:#4c4c4c;background-color:#0f0f0f"># Pass through to actual `wg` otherwise</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">        sudo -n </span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">$(</span><span style="font-variant-ligatures:no-common-ligatures;color:#51ceff;background-color:#0f0f0f">which wg</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">)</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span><span style="font-variant-ligatures:no-common-ligatures;color:#7aff08;background-color:#0f0f0f">$@</span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f">"</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;background-color:#0f0f0f">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#cb004d;background-color:#0f0f0f"><b>fi</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(197,197,197)"><span style="font-variant-ligatures:no-common-ligatures;color:#4f4f4f;background-color:#0f0f0f">}</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(203,0,77);background-color:rgb(15,15,15)"><span style="font-variant-ligatures:no-common-ligatures"><b>export</b></span><span style="font-variant-ligatures:no-common-ligatures;color:#c5c5c5"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#51ceff">-f</span><span style="font-variant-ligatures:no-common-ligatures;color:#c5c5c5"> wg</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(203,0,77);background-color:rgb(15,15,15)"><span style="font-variant-ligatures:no-common-ligatures;color:#c5c5c5"><br></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(203,0,77);background-color:rgb(15,15,15)"><span style="font-variant-ligatures:no-common-ligatures;color:#c5c5c5"><br></span></p></div>You’ll notice that it automatically calls `sudo -n` on things, and that it requires `unbuffer`, which is usually installed alongside `expect`, so that it can capture the output of `wg` retaining the color codes.<div>-E</div><div><br> <div class="gmail_signature"></div> <br><p class="airmail_on">On January 24, 2020 at 8:04:12 AM, jens (<a href="mailto:jens@viisauksena.de">jens@viisauksena.de</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>i really would love to have a feature like wireguard-hosts file.
<br>whereas wg command would print given "name" instead of key - so the
<br>output would be more meaningfull
<br>We have some wireguard running in server like infrastructure, where one
<br>server serves dozens of "clients"
<br>
<br>so instead of
<br>peer: l9FxaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaU=
<br>we would have something alike
<br>peer: superhero downtown
<br>
<br>some of you may be familar with batman-adv layer2 routing protocol,
<br>there they also have a batctl which is working pretty similar to wg tool.
<br>there you can add a bat-hosts file which is doing the job, which totaly
<br>works likes any hosts file
<br>a normal hosts file maps ip to name,
<br>a bat-hosts file maps mac addresses to name,
<br>a wg-hosts file would map keys to name.
<br>
<br>i found the sources for bat-hosts ( .c .h .sample ) here
<br><a href="https://downloads.open-mesh.org/batman/releases/batman-adv-2019.5/batctl-2019.5.tar.gz">https://downloads.open-mesh.org/batman/releases/batman-adv-2019.5/batctl-2019.5.tar.gz</a>
<br>
<br>is this something maybe usefull to other also?
<br>is there a chance to have this implemented by default?
<br>
<br>thx for answers.
<br>fuzzle
<br>
<br>--  
<br>make the world nicer, please use PGP encryption
<br>_______________________________________________
<br>WireGuard mailing list
<br><a href="mailto:WireGuard@lists.zx2c4.com">WireGuard@lists.zx2c4.com</a>
<br><a href="https://lists.zx2c4.com/mailman/listinfo/wireguard">https://lists.zx2c4.com/mailman/listinfo/wireguard</a>
<br></div></div></span></blockquote></div></body></html>