I might be able to help with this. Here is an email that I sent to Guus some time ago:
>> 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). >> >> This is a tinc-up script that mimics the linux behavior. you may want to add >> this to the wiki page here: http://www.tinc-vpn.org/examples/osx-install/ >> <http://www.tinc-vpn.org/examples/osx-install/> >> >> >> tinc-up (for OS X yosemite): >> >> #!/bin/sh >> >> ifconfig $INTERFACE 10.112.1.2/16 10.112.1.2 >> route add -net 10.112.0.0 10.112.1.2 255.255.0.0 hope that helps. > On Jan 7, 2016, at 3:25 PM, Ned Twigg <[email protected]> wrote: > > > kextload /Library/Extensions/tun.kext/ > > I didn't have a /Library/Extensions/tun.kext/ on my machine. I googled > around, and downloaded and installed from http://tuntaposx.sourceforge.net/ > <http://tuntaposx.sourceforge.net/>. Not sure why the macports install > didn't work, but it seems I'm making progress. > > Now I get this: > > sudo tincd -n dpsf -D -d3 > tincd 1.0.21 (Feb 3 2015 20:09:36) starting, debug level 3 > /dev/tun0 is a Generic BSD tun device > Executing script tinc-up > ifconfig: interface dpsfVPN does not exist > Script tinc-up exited with non-zero status 1 > Listening on 0.0.0.0 port 655 > Ready > Trying to connect to dpserver001 (71.202.38.86 port 655) > Connected to dpserver001 (71.202.38.86 port 655) > Sending ID to dpserver001 (71.202.38.86 port 655) > ... (lots of stuff, but I can't ping through the VPN) > > So then I tried changing the interface in my conf.vpn to tun0, but then I get > > > sudo tincd -n dpsf -D -d > tincd 1.0.21 (Feb 3 2015 20:09:36) starting, debug level 1 > /dev/tun0 is a Generic BSD tun device > ifconfig: ioctl (SIOCAIFADDR): Destination address required > Script tinc-up exited with non-zero status 1 > ... (lots of stuff, but ping doesn't work). > > I tried Spencer's suggestion re: the FAQ http://tinc-vpn.org/faq/#index5h3 > <http://tinc-vpn.org/faq/#index5h3> > > ifconfig tap0 10.0.0.13 > ifconfig: interface tap0 does not exist > > ifconfig dpsfVPN 10.0.0.13 > ifconfig: interface dpsfVPN does not exist > > ifconfig tun0 10.0.0.13 > ifconfig: ioctl (SIOCAIFADDR): Destination address required > > Thanks for the help, I think I'm closer! Any ideas for next steps? > > Ned Twigg > Lead Software Architect, DiffPlug LLC > 949-264-3433 > 340 S Lemon Ave #3433, Walnut, CA 91789 > > On Thu, Jan 7, 2016 at 11:16 AM, Guus Sliepen <[email protected] > <mailto:[email protected]>> wrote: > On Thu, Jan 07, 2016 at 09:55:14AM -0800, Ned Twigg wrote: > > > > sudo tincd -n dpsf -D -d3 > > tincd 1.0.21 (Feb 3 2015 20:09:36) starting, debug level 3 > > Could not open /dev/tun0: No such file or directory > > Terminating > > That sounds like the tun module is not loaded. If you didn't reboot > since installing the tuntaposx modules, try running the following > command: > > kextload /Library/Extensions/tun.kext/ > > Then try to start tinc again. > > > And here's the contents of my files in /opt/local/etc/tinc: > > > > > dpsf/tinc.conf > > Name = ntwigg2009mac > > AddressFamily = ipv4 > > Interface = dpsfVPN > > ConnectTo = dpserver001 > > > > > dpsf/tinc-up > > #!/bin/sh > > ifconfig $INTERFACE 10.0.0.13 netmask 255.255.255.0 > > > > > dpsf/tinc-down > > #!/bin/sh > > ifconfig $INTERFACE down > > All that looks OK. > > > > sudo launchctl load -w > > /Library/LaunchDaemons/org.macports.tuntaposx.plist > > /opt/local/etc/LaunchDaemons/org.macports.tuntaposx/org.macports.tuntaposx.plist: > > Operation already in progress > > Hm, that's weird. I don't know what that error message means here.
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ tinc mailing list [email protected] http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
