<div dir="ltr">







<p class=""><span class="">Hi Maxim,</span></p><p class=""><span class=""><br></span></p><p class="">Not much to it:<br></p><p class=""><font face="monospace, monospace"><span class="">avahi-autoipd </span><span class="">-D</span><span class=""> </span><span class="">$INTERFACE</span></font></p>
<p class=""><span class=""><font face="monospace, monospace"># ifconfig $INTERFACE 169.254.45.23 netmask 255.255.0.0 up</font></span></p>
<p class=""><font face="monospace, monospace"><span class="">ip route add </span><span class="">172</span><span class="">.</span><span class="">20</span><span class="">.</span><span class="">0</span><span class="">.</span><span class="">0</span><span class="">/</span><span class="">16</span><span class=""> dev </span><span class="">$INTERFACE</span></font></p><p class=""><span class=""><br></span></p><p class=""><span class="">Mac OS X doesn't  have "ip" by default, so I also installed the Homebrew package "iproute2mac", which provides an emulation of "ip" on top of the legacy ifconfig/route calls.</span></p><p class="">The commented-out ifconfig line was my attempt to replace <span style="font-family:monospace,monospace">avahi-autoipd</span> with a fixed IP, just for demonstration purposes. But I get the same result using ifconfig to set the IP address.</p><p class=""><span class=""><br></span></p></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 February 2016 at 23:40, Maxim Vorontsov <span dir="ltr"><<a href="mailto:6012030@gmail.com" target="_blank">6012030@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi.<br>
<br>
May you show your tinc-up script? And subnet-up, host-up if you have they at all.<br><br><div class="gmail_quote"><div><div class="h5">On February 25, 2016 9:55:59 PM GMT+03:00, Mike Purvis <<a href="mailto:mpurvis@clearpathrobotics.com" target="_blank">mpurvis@clearpathrobotics.com</a>> wrote:</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5">
<div dir="ltr">Hey all,<div><br></div><div>I'm trying to use tinc 1.0.26 from Homebrew on Mac OS X 10.10.5, and having some trouble. Is anyone successfully doing this?</div><div><br></div><div>Here's my config:</div><div><br></div><div><div><font face="monospace, monospace">$ sudo cat /etc/tinc/robotvpn/tinc.conf </font></div><div><font face="monospace, monospace">Name = elendur</font></div><div><font face="monospace, monospace">Mode = switch</font></div><div><font face="monospace, monospace">AddressFamily = ipv4</font></div><div><font face="monospace, monospace">Interface = tincdev0</font></div><div><span style="font-family:monospace,monospace">Compression = 1</span><br></div><div><font face="monospace, monospace">ConnectTo = robot_ph_cpe22_04</font></div></div><div><br></div><div>And here's the invocation:</div><div><br></div><div><div><font face="monospace, monospace">$ sudo tincd -D -c /etc/tinc/robotvpn -d</font></div><div><font face="monospace,
monospace">tincd 1.0.26 (Nov  2 2015 06:12:50) starting, debug level 1</font></div><div><font face="monospace, monospace">/dev/tap0 is a Generic BSD tap device</font></div><div><font face="monospace, monospace">/etc/tinc/robotvpn/tinc-up: line 3: avahi-autoipd: command not found</font></div><div><font face="monospace, monospace">Usage: ip route list</font></div><div><font face="monospace, monospace">       ip route get ADDRESS</font></div><div><font face="monospace, monospace">       ip route { add | del } ROUTE</font></div><div><font face="monospace, monospace">ROUTE := PREFIX [ nexthop NH ]</font></div><div><font face="monospace, monospace">Script tinc-up exited with non-zero status 1</font></div><div><font face="monospace, monospace">Listening on 0.0.0.0 port 655</font></div><div><font face="monospace, monospace">Ready</font></div><div><font face="monospace, monospace">Trying to connect to robot_ph_cpe22_04 (10.27.200.104 port 655)</font></div><div><font face="monospace,
monospace">Connected to robot_ph_cpe22_04 (10.27.200.104 port 655)</font></div><div><font face="monospace, monospace">Connection with robot_ph_cpe22_04 (10.27.200.104 port 655) activated</font></div><div><span style="font-family:monospace,monospace">Error while writing to Generic BSD tap device /dev/tap0: Input/output error</span><br></div></div><div><span style="font-family:monospace,monospace">Error while writing to Generic BSD tap device /dev/tap0: Input/output error</span><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">Error while writing to Generic BSD tap device /dev/tap0: Input/output error</span><span style="font-family:monospace,monospace"><br></span></div><div><br></div><div>I know I'm missing Avahi, and I'll have to deal with name resolution separately (this config originated on Ubuntu), but I'm trying to understand what is going on with the BSD tap device issues. Previously, tincd
wasn't able to create the tap0 device at all, but I <a href="http://tuntaposx.sourceforge.net/" target="_blank">installed TunTap</a>, and now it does create it:</div><div><br></div><div><div><font face="monospace, monospace">$ ifconfig tap0</font></div><div><font face="monospace, monospace">tap0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500</font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>ether 0e:27:1d:a7:4e:a1 </font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>media: autoselect</font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>status: active</font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>open (pid 28939)</font></div></div><div><br></div><div>I tried bypassing the Avahi config and just assigning it an IP manually, but it doesn't seem able to communicate.</div><div><br></div><div>Any pointers what's going on here? Much appreciated,</div><div><br></div><div>Mike</div></div>
<p style="margin-top:2.5em;margin-bottom:1em;border-bottom:1px solid #000"></p></div></div><pre><hr><br>tinc mailing list<br><a href="mailto:tinc@tinc-vpn.org" target="_blank">tinc@tinc-vpn.org</a><br><a href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc" target="_blank">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a><span class="HOEnZb"><font color="#888888"><br></font></span></pre></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</font></span></div><br>_______________________________________________<br>
tinc mailing list<br>
<a href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a><br>
<a href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc" rel="noreferrer" target="_blank">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a><br>
<br></blockquote></div><br></div>