I've got tinc running happily on a couple linux and win computers, but no luck on OS X. I'm on Yosemite 10.10.5, and I think I followed the OS X tutorial exactly, but no luck. Here's my error message:> sudo tincd -n dpsf -D -d3tincd 1.0.21 (Feb 3 2015 20:09:36) starting, debug level 3 Could not open /dev/tun0: No such file or directory Terminating And here's the contents of my files in /opt/local/etc/tinc:> dpsf/tinc.confName = 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 I followed the port instructions to the T. Any tips are greatly appreciated! I don't know much (anything) about tun/tap, but from googling, I know that tuntaposx was installed by port, but maybe it's badly misconfigured?> 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> /Library/LaunchDaemons/org.macports.tuntaposx.plist<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" > <plist version='1.0'> <dict> <key>Label</key><string>org.macports.tuntaposx</string> <key>ProgramArguments</key> <array> <string>/opt/local/bin/daemondo</string> <string>--label=tuntaposx</string> <string>--start-cmd</string> <string>/opt/local/etc/LaunchDaemons/org.macports.tuntaposx/tuntaposx.wrapper</string> <string>start</string> <string>;</string> <string>--stop-cmd</string> <string>/opt/local/etc/LaunchDaemons/org.macports.tuntaposx/tuntaposx.wrapper</string> <string>stop</string> <string>;</string> <string>--restart-cmd</string> <string>/opt/local/etc/LaunchDaemons/org.macports.tuntaposx/tuntaposx.wrapper</string> <string>restart</string> <string>;</string> <string>--pid=none</string> </array> <key>Debug</key><false/> <key>Disabled</key><true/> <key>KeepAlive</key><true/> </dict> </plist> ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20160107/8e1dce2f/attachment.html>
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 > TerminatingThat 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 downAll 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 progressHm, that's weird. I don't know what that error message means here. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20160107/d71807b4/attachment.sig>
Did you look at this FAQ entry? http://tinc-vpn.org/faq/#index5h3 -- ? Spencer Krum ? nibz at spencerkrum.com On Thu, Jan 7, 2016, at 09:55 AM, Ned Twigg wrote:> > I've got tinc running happily on a couple linux and win computers, but no luck on OS X.? I'm on Yosemite 10.10.5, and I think I followed the OS X tutorial exactly, but no luck. > > Here's my error message: > > > 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 > > 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 > > I followed the port instructions to the T.? Any tips are greatly appreciated! > > > I don't know much (anything) about tun/tap, but from googling, I know that tuntaposx was installed by port, but maybe it's badly misconfigured? > > > 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 > > > /Library/LaunchDaemons/org.macports.tuntaposx.plist? > <?xml version='1.0' encoding='UTF-8'?> > <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" > "http://www.apple.com/DTDs/PropertyList-1.0.dtd" > > <plist version='1.0'> > <dict> > <key>Label</key><string>org.macports.tuntaposx</string> > <key>ProgramArguments</key> > <array> > <string>/opt/local/bin/daemondo</string> > <string>--label=tuntaposx</string> > <string>--start-cmd</string> > <string>/opt/local/etc/LaunchDaemons/org.macports.tuntaposx/tuntaposx.wrapper</string> > <string>start</string> > <string>;</string> > <string>--stop-cmd</string> > <string>/opt/local/etc/LaunchDaemons/org.macports.tuntaposx/tuntaposx.wrapper</string> > <string>stop</string> > <string>;</string> > <string>--restart-cmd</string> > <string>/opt/local/etc/LaunchDaemons/org.macports.tuntaposx/tuntaposx.wrapper</string> > <string>restart</string> > <string>;</string> > <string>--pid=none</string> > </array> > <key>Debug</key><false/> > <key>Disabled</key><true/> > <key>KeepAlive</key><true/> > </dict> > </plist> > ? > _________________________________________________ > tinc mailing list > tinc at tinc-vpn.org > http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20160107/9917ddb7/attachment.html>
> 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/. 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 -d3tincd 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 -dtincd 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> ifconfig tap0 10.0.0.13ifconfig: interface tap0 does not exist> ifconfig dpsfVPN 10.0.0.13ifconfig: interface dpsfVPN does not exist> ifconfig tun0 10.0.0.13ifconfig: 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 <guus at tinc-vpn.org> 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. > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus at tinc-vpn.org> > > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20160107/5ccd7e50/attachment-0001.html>