<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hello,<br><br></div>I have the route created by tinc in router mode disappearing after some time with a rather simple configuration.<br><br></div>I
want to join two (or more) networks accross the internet, primarily to
access network shares. Those networks have their own DHCPs and are
autonomous, i.e. not dependent on the VPN connection.<br></div>I think Tinc in router mode is best suited for my case and <a href="https://www.tinc-vpn.org/documentation/Example-configuration.html#Example-configuration" target="_blank">this example</a> perfectly describes my situation. Please let me know if you can think of better alternatives as I'm out of my depth.<br><br></div><u>Here is my setup :</u><br><br></div><b>Network A :</b> <a href="http://10.0.0.0/16" target="_blank">10.0.0.0/16</a><br></div><b>Network B : </b><a href="http://10.1.0.0/16" target="_blank">10.1.0.0/16</a><br><br></div><b>RPi with Tinc on A :</b> 10.0.1.6<br></div><b>RPi with Tinc on B : </b>10.1.0.5<br><br></div><b>tinc-up on A :</b> ifconfig $INTERFACE 10.0.1.6 netmask 255.0.0.0<br></div><b>tinc-up on B :</b> ifconfig $INTERFACE 10.1.0.5 netmask 255.0.0.0<br><br></div><b>hosts/A :</b><br>Address = ...<br></div>Subnet = <a href="http://10.0.0.0/16" target="_blank">10.0.0.0/16</a><br><br></div><b>hosts/B :</b><br></div>Address = ...<br></div>Subnet = <a href="http://10.1.0.0/16" target="_blank">10.1.0.0/16</a><br><br></div><b>tinc.conf A :</b><br>Name = A<br><br></div><b>tinc.conf B :</b><br>Name = B<br>ConnectTo = A<br><br></div>Tinc connects perfectly and everything works fine, here is the routing table:<br></div><div>$ route<br></div><div>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>default box 0.0.0.0 UG 202 0 0 eth0<br>10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 tinc<br>10.1.0.0 0.0.0.0 255.255.255.0 U 202 0 0 eth0<br><br></div><div>After some time, the route disappears <b>in B only</b>. The logs (debug level 3) shows nothing and in ifconfig on the tinc interface I'm left with the inet6, no more inet :<br></div><div>$ ifconfig<br>tinc: flags=4305<UP,POINTOPOINT,<wbr>RUNNING,NOARP,MULTICAST> mtu 1500<br> inet6 xxxx::yyyy:xxxx:yyyy:xxxx prefixlen 64 scopeid 0x20<link><br> unspec 00-00-00-00-00-00-00-00-00-00-<wbr>00-00-00-00-00-00 txqueuelen 500 (UNSPEC)<br> RX packets 11845 bytes 729085 (711.9 KiB)<br> RX errors 0 dropped 0 overruns 0 frame 0<br> TX packets 324 bytes 40046 (39.1 KiB)<br> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br></div><div><br></div><div>I
haven't seen any particular event that cause this, system log files
don't show anything particular, I don't know where else to look. What
can cause the route to disappear like that? I suppose some kind of
conflict? Or maybe the "box" router on the B side?<br><br></div><div>Thanks in advance for your help troubleshooting this!</div><br></div>