<div dir="auto">I use systemd or monitd scripts to check if the tinc vpn nodes are pingable and simply restart the tinc daemon if they're not.<div dir="auto"><br></div><div dir="auto">In my case I have i have a complicated dns setup where at tinc boot time DNS is not yet resolving by the time tinc starts. A simple ping check on the fqdn for the master nodes does the job.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 Feb 2017 9:45 am, "Sandro Stiller" <<a href="mailto:sandro.stiller@elfin.de">sandro.stiller@elfin.de</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On my system, tinc is started on bootup.<br>
If the Network cable is not connected, tincd hangs forever after these messages:<br>
<br>
2017-02-13 11:34:01 tinc.XXX[403]: tincd 1.0.31 starting, debug level 5<br>
2017-02-13 11:34:01 tinc.XXX[403]: /dev/net/tun is a Linux tun/tap device (tun mode)<br>
2017-02-13 11:34:01 tinc.XXX[403]: Executing script tinc-up<br>
2017-02-13 11:34:02 tinc.XXX[403]: Listening on 0.0.0.0 port 655<br>
2017-02-13 11:34:02 tinc.XXX[403]: Ready<br>
2017-02-13 11:34:02 tinc.XXX[403]: Error looking up XXX.net port 2300: Temporary failure in name resolution<br>
2017-02-13 11:34:02 tinc.XXX[403]: Could not set up a meta connection to XXXVPN<br>
2017-02-13 11:34:02 tinc.XXX[403]: Trying to re-establish outgoing connection in 5 seconds<br>
2017-02-13 11:34:02 tinc.XXX[403]: Purging unreachable nodes<br>
<br>
Even if I reconnect the interface, tinc does not continue.<br>
If I restart the service manually, everything works fine, even with disconnected network interface (it tries again and again until internet connection works).<br>
I think, there is some kind of boot-time race condition.<br>
It's the same problem with version 1.0.28 and 1.0.31.<br>
<br>
Do you have an idea how to find/solve the problem?<br>
<br>
<br>
Thanks,<br>
<br>
Sandro<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>
</blockquote></div><br></div>