<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I might be able to help with this. Here is an email that I sent to Guus some time ago:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><span style="font-family: FiraMono-Regular; font-size: 13px;" class="">Having moved onward from setting up a private tinc router-mode mesh on my routers and linux servers, I finally got around to installing and setting tinc up on my mac laptop. When I wanted to set up the mac so it could see my tinc network (but NOT route everything through it, road-warrior style), I couldn’t find the right config anywhere and when I tried to just copy the configs I used on my linux server boxes (setting them up with something like <ifconfig $INTERFACE 10.112.1.1 netmask 255.255.0.0>) so it would be a single leaf node and be able to see and be seen by the rest of the mesh, I was thwarted by the FreeBSD ifconfig command which forces you to create a ptp link when configuring a tun device by specifying both the IP address of the device AND a specific device on the other end of the ptp link (you cannot specify a network).</span><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><span style="font-family: FiraMono-Regular; font-size: 13px;" class="">This is a tinc-up script that mimics the linux behavior. you may want to add this to the wiki page here: </span><a href="http://www.tinc-vpn.org/examples/osx-install/" style="font-family: FiraMono-Regular; font-size: 13px;" class="">http://www.tinc-vpn.org/examples/osx-install/</a><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><span style="font-family: FiraMono-Regular; font-size: 13px;" class="">tinc-up (for OS X yosemite):</span><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><span style="font-family: FiraMono-Regular; font-size: 13px;" class="">#!/bin/sh</span><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><span style="font-family: FiraMono-Regular; font-size: 13px;" class="">ifconfig $INTERFACE 10.112.1.2/16 10.112.1.2</span><br style="font-family: FiraMono-Regular; font-size: 13px;" class=""><span style="font-family: FiraMono-Regular; font-size: 13px;" class="">route add -net 10.112.0.0 10.112.1.2 255.255.0.0</span></blockquote></blockquote></div><div class=""><br class=""></div><div class="">hope that helps.</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 7, 2016, at 3:25 PM, Ned Twigg <<a href="mailto:ned.twigg@diffplug.com" class="">ned.twigg@diffplug.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">> <span style="font-size:12.8px" class="">kextload /Library/Extensions/tun.kext/</span><div class=""><br class=""></div><div class="">I didn't have a <span style="font-size:12.8px" class="">/Library/Extensions/tun.kext/ on my machine. I googled around, and downloaded and installed from <a href="http://tuntaposx.sourceforge.net/" target="_blank" class="">http://tuntaposx.sourceforge.net/</a>. Not sure why the macports install didn't work, but it seems I'm making progress.</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">Now I get this:</span></div>> sudo tincd -n dpsf -D -d3<br class="">tincd 1.0.21 (Feb 3 2015 20:09:36) starting, debug level 3<br class="">/dev/tun0 is a Generic BSD tun device<br class="">Executing script tinc-up<br class="">ifconfig: interface dpsfVPN does not exist<br class="">Script tinc-up exited with non-zero status 1<br class="">Listening on 0.0.0.0 port 655<br class="">Ready<br class="">Trying to connect to dpserver001 (71.202.38.86 port 655)<br class="">Connected to dpserver001 (71.202.38.86 port 655)<br class="">Sending ID to dpserver001 (71.202.38.86 port 655)<div class="">... (lots of stuff, but I can't ping through the VPN)</div><div class=""><br class=""></div><div class="">So then I tried changing the interface in my conf.vpn to tun0, but then I get<br class=""><br class="">> sudo tincd -n dpsf -D -d<br class="">tincd 1.0.21 (Feb 3 2015 20:09:36) starting, debug level 1<br class="">/dev/tun0 is a Generic BSD tun device<br class="">ifconfig: ioctl (SIOCAIFADDR): Destination address required<br class="">Script tinc-up exited with non-zero status 1<br class=""></div><div class="">... (lots of stuff, but ping doesn't work).</div><div class=""><br class=""></div><div class="">I tried Spencer's suggestion re: the FAQ <a href="http://tinc-vpn.org/faq/#index5h3" class="">http://tinc-vpn.org/faq/#index5h3</a></div><br class="">> ifconfig tap0 10.0.0.13<br class="">ifconfig: interface tap0 does not exist<br class="">> ifconfig dpsfVPN 10.0.0.13<br class="">ifconfig: interface dpsfVPN does not exist<br class="">> ifconfig tun0 10.0.0.13<br class="">ifconfig: ioctl (SIOCAIFADDR): Destination address required<div class=""><br class=""></div><div class="">Thanks for the help, I think I'm closer! Any ideas for next steps?</div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature"><div dir="ltr" class=""><div style="font-family:arial;font-size:small" class=""><font color="#38761d" class="">Ned Twigg<br class=""></font></div><div style="font-family:arial;font-size:small" class=""><font color="#38761d" class="">Lead Software Architect, DiffPlug LLC</font></div><div style="font-family:arial;font-size:small" class=""><font color="#38761d" class="">949-264-3433<br class=""></font></div><div style="font-family:arial;font-size:small" class=""><font color="#38761d" class="">340 S Lemon Ave #3433, Walnut, CA 91789</font></div></div></div></div>
<br class=""><div class="gmail_quote">On Thu, Jan 7, 2016 at 11:16 AM, Guus Sliepen <span dir="ltr" class=""><<a href="mailto:guus@tinc-vpn.org" target="_blank" class="">guus@tinc-vpn.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Jan 07, 2016 at 09:55:14AM -0800, Ned Twigg wrote:<br class="">
<br class="">
> > sudo tincd -n dpsf -D -d3<br class="">
> tincd 1.0.21 (Feb 3 2015 20:09:36) starting, debug level 3<br class="">
> Could not open /dev/tun0: No such file or directory<br class="">
> Terminating<br class="">
<br class="">
That sounds like the tun module is not loaded. If you didn't reboot<br class="">
since installing the tuntaposx modules, try running the following<br class="">
command:<br class="">
<br class="">
kextload /Library/Extensions/tun.kext/<br class="">
<br class="">
Then try to start tinc again.<br class="">
<br class="">
> And here's the contents of my files in /opt/local/etc/tinc:<br class="">
><br class="">
> > dpsf/tinc.conf<br class="">
> Name = ntwigg2009mac<br class="">
> AddressFamily = ipv4<br class="">
> Interface = dpsfVPN<br class="">
> ConnectTo = dpserver001<br class="">
><br class="">
> > dpsf/tinc-up<br class="">
> #!/bin/sh<br class="">
> ifconfig $INTERFACE 10.0.0.13 netmask 255.255.255.0<br class="">
><br class="">
> > dpsf/tinc-down<br class="">
> #!/bin/sh<br class="">
> ifconfig $INTERFACE down<br class="">
<br class="">
All that looks OK.<br class="">
<br class="">
> > sudo launchctl load -w<br class="">
> /Library/LaunchDaemons/org.macports.tuntaposx.plist<br class="">
> /opt/local/etc/LaunchDaemons/org.macports.tuntaposx/org.macports.tuntaposx.plist:<br class="">
> Operation already in progress<br class="">
<br class="">
Hm, that's weird. I don't know what that error message means here.<br class="">
</blockquote></div></div></div></blockquote></div><br class=""><div class=""><br class=""></div><div class=""><br class=""></div></body></html>