<div dir="ltr">awesome!<div><br></div><div>thanks a million</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 16 January 2017 at 13:00, Guus Sliepen <span dir="ltr"><<a href="mailto:guus@tinc-vpn.org" target="_blank">guus@tinc-vpn.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jan 16, 2017 at 11:31:18AM +0000, Azul wrote:<br>
<br>
> Tinc will generate a new MAC address every time the daemon restarts.<br>
<br>
</span>It is actually the kernel that generates a new MAC address for the<br>
tun/tap interface.<br>
<span class=""><br>
> if there a way to control that tinc MAC behaviour ? ie. generate it once<br>
> and re-used that same one every time ?<br>
<br>
</span>You can set the MAC address yourself in the tinc-up script. On Linux for<br>
example:<br>
<br>
#!/bin/sh<br>
ip link set $IFACE address 12:34:56:78:9a:bc<br>
# other commands here<br>
<br>
If you want to automate it so it automatically stores the<br>
kernel-generated address the first time and reuses it later, you can do<br>
something like this:<br>
<br>
#!/bin/sh<br>
macfile=/etc/tinc/$NETNAME/<wbr>address<br>
if [ -f $macfile ]; then<br>
ip link set $IFACE address `cat $macfile`<br>
else<br>
cat /sys/class/net/$IFACE/address >$macfile<br>
fi<br>
# other commands here<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Met vriendelijke groet / with kind regards,<br>
Guus Sliepen <<a href="mailto:guus@tinc-vpn.org">guus@tinc-vpn.org</a>><br>
</font></span><br>______________________________<wbr>_________________<br>
tinc mailing list<br>
<a href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a><br>
<a href="https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc" rel="noreferrer" target="_blank">https://www.tinc-vpn.org/cgi-<wbr>bin/mailman/listinfo/tinc</a><br>
<br></blockquote></div><br></div>