Hey all, 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? Here's my config: $ sudo cat /etc/tinc/robotvpn/tinc.conf Name = elendur Mode = switch AddressFamily = ipv4 Interface = tincdev0 Compression = 1 ConnectTo = robot_ph_cpe22_04 And here's the invocation: $ sudo tincd -D -c /etc/tinc/robotvpn -d tincd 1.0.26 (Nov 2 2015 06:12:50) starting, debug level 1 /dev/tap0 is a Generic BSD tap device /etc/tinc/robotvpn/tinc-up: line 3: avahi-autoipd: command not found Usage: ip route list ip route get ADDRESS ip route { add | del } ROUTE ROUTE := PREFIX [ nexthop NH ] Script tinc-up exited with non-zero status 1 Listening on 0.0.0.0 port 655 Ready Trying to connect to robot_ph_cpe22_04 (10.27.200.104 port 655) Connected to robot_ph_cpe22_04 (10.27.200.104 port 655) Connection with robot_ph_cpe22_04 (10.27.200.104 port 655) activated Error while writing to Generic BSD tap device /dev/tap0: Input/output error Error while writing to Generic BSD tap device /dev/tap0: Input/output error Error while writing to Generic BSD tap device /dev/tap0: Input/output error 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 installed TunTap <http://tuntaposx.sourceforge.net/>, and now it does create it: $ ifconfig tap0 tap0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 0e:27:1d:a7:4e:a1 media: autoselect status: active open (pid 28939) I tried bypassing the Avahi config and just assigning it an IP manually, but it doesn't seem able to communicate. Any pointers what's going on here? Much appreciated, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20160225/5334f97d/attachment.html>
Hi. May you show your tinc-up script? And subnet-up, host-up if you have they at all. On February 25, 2016 9:55:59 PM GMT+03:00, Mike Purvis <mpurvis at clearpathrobotics.com> wrote:>Hey all, > >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? > >Here's my config: > >$ sudo cat /etc/tinc/robotvpn/tinc.conf >Name = elendur >Mode = switch >AddressFamily = ipv4 >Interface = tincdev0 >Compression = 1 >ConnectTo = robot_ph_cpe22_04 > >And here's the invocation: > >$ sudo tincd -D -c /etc/tinc/robotvpn -d >tincd 1.0.26 (Nov 2 2015 06:12:50) starting, debug level 1 >/dev/tap0 is a Generic BSD tap device >/etc/tinc/robotvpn/tinc-up: line 3: avahi-autoipd: command not found >Usage: ip route list > ip route get ADDRESS > ip route { add | del } ROUTE >ROUTE := PREFIX [ nexthop NH ] >Script tinc-up exited with non-zero status 1 >Listening on 0.0.0.0 port 655 >Ready >Trying to connect to robot_ph_cpe22_04 (10.27.200.104 port 655) >Connected to robot_ph_cpe22_04 (10.27.200.104 port 655) >Connection with robot_ph_cpe22_04 (10.27.200.104 port 655) activated >Error while writing to Generic BSD tap device /dev/tap0: Input/output >error >Error while writing to Generic BSD tap device /dev/tap0: Input/output >error >Error while writing to Generic BSD tap device /dev/tap0: Input/output >error > >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 installed TunTap ><http://tuntaposx.sourceforge.net/>, and now it does create it: > >$ ifconfig tap0 >tap0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 >ether 0e:27:1d:a7:4e:a1 >media: autoselect >status: active >open (pid 28939) > >I tried bypassing the Avahi config and just assigning it an IP >manually, >but it doesn't seem able to communicate. > >Any pointers what's going on here? Much appreciated, > >Mike > > >------------------------------------------------------------------------ > >_______________________________________________ >tinc mailing list >tinc at tinc-vpn.org >http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc-- Sent from my Android device with K-9 Mail. Please excuse my brevity. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20160226/cd079e0f/attachment.html>
Hi Maxim, Not much to it: avahi-autoipd -D $INTERFACE # ifconfig $INTERFACE 169.254.45.23 netmask 255.255.0.0 up ip route add 172.20.0.0/16 dev $INTERFACE 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. The commented-out ifconfig line was my attempt to replace avahi-autoipd with a fixed IP, just for demonstration purposes. But I get the same result using ifconfig to set the IP address. On 25 February 2016 at 23:40, Maxim Vorontsov <6012030 at gmail.com> wrote:> Hi. > > May you show your tinc-up script? And subnet-up, host-up if you have they > at all. > > On February 25, 2016 9:55:59 PM GMT+03:00, Mike Purvis < > mpurvis at clearpathrobotics.com> wrote: > >> Hey all, >> >> 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? >> >> Here's my config: >> >> $ sudo cat /etc/tinc/robotvpn/tinc.conf >> Name = elendur >> Mode = switch >> AddressFamily = ipv4 >> Interface = tincdev0 >> Compression = 1 >> ConnectTo = robot_ph_cpe22_04 >> >> And here's the invocation: >> >> $ sudo tincd -D -c /etc/tinc/robotvpn -d >> tincd 1.0.26 (Nov 2 2015 06:12:50) starting, debug level 1 >> /dev/tap0 is a Generic BSD tap device >> /etc/tinc/robotvpn/tinc-up: line 3: avahi-autoipd: command not found >> Usage: ip route list >> ip route get ADDRESS >> ip route { add | del } ROUTE >> ROUTE := PREFIX [ nexthop NH ] >> Script tinc-up exited with non-zero status 1 >> Listening on 0.0.0.0 port 655 >> Ready >> Trying to connect to robot_ph_cpe22_04 (10.27.200.104 port 655) >> Connected to robot_ph_cpe22_04 (10.27.200.104 port 655) >> Connection with robot_ph_cpe22_04 (10.27.200.104 port 655) activated >> Error while writing to Generic BSD tap device /dev/tap0: Input/output >> error >> Error while writing to Generic BSD tap device /dev/tap0: Input/output >> error >> Error while writing to Generic BSD tap device /dev/tap0: Input/output >> error >> >> 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 installed TunTap >> <http://tuntaposx.sourceforge.net/>, and now it does create it: >> >> $ ifconfig tap0 >> tap0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 >> ether 0e:27:1d:a7:4e:a1 >> media: autoselect >> status: active >> open (pid 28939) >> >> I tried bypassing the Avahi config and just assigning it an IP manually, >> but it doesn't seem able to communicate. >> >> Any pointers what's going on here? Much appreciated, >> >> Mike >> >> ------------------------------ >> >> tinc mailing list >> tinc at tinc-vpn.org >> http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc >> >> > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. > > _______________________________________________ > 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/20160226/f00297f8/attachment.html>
On Thu, Feb 25, 2016 at 01:55:59PM -0500, Mike Purvis wrote:> Here's my config: > > $ sudo cat /etc/tinc/robotvpn/tinc.conf[...]> Interface = tincdev0[...]> Error while writing to Generic BSD tap device /dev/tap0: Input/output errorUnfortunately, on Mac OS X, tinc cannot change the name of the interface. It's probably just tap0. Tinc should've warned about this, but it doesn't. The solution is to remove the "Interface = tincdev0" line from your tinc.conf. -- 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/20160226/dc4dd754/attachment-0001.sig>
Oh, config already was here. On February 26, 2016 7:04:35 PM GMT+03:00, Guus Sliepen <guus at tinc-vpn.org> wrote:>On Thu, Feb 25, 2016 at 01:55:59PM -0500, Mike Purvis wrote: > >> Here's my config: >> >> $ sudo cat /etc/tinc/robotvpn/tinc.conf >[...] >> Interface = tincdev0 >[...] >> Error while writing to Generic BSD tap device /dev/tap0: Input/output >error > >Unfortunately, on Mac OS X, tinc cannot change the name of the >interface. It's probably just tap0. Tinc should've warned about this, >but it doesn't. The solution is to remove the "Interface = tincdev0" >line from your tinc.conf. > >-- >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-- Sent from my Android device with K-9 Mail. Please excuse my brevity. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20160226/22654e81/attachment.html>
Ah, fantastic. With the following config I get a usable tap0: $ sudo cat /etc/tinc/robotvpn/tinc.conf Name = elendur Mode = switch AddressFamily = ipv4 Device = /dev/tap0 Compression = 1 ConnectTo = robot_ph_cpe22_04 Still need to figure out the Avahi side of things for name resolution, but thanks all! On 26 February 2016 at 11:04, Guus Sliepen <guus at tinc-vpn.org> wrote:> On Thu, Feb 25, 2016 at 01:55:59PM -0500, Mike Purvis wrote: > > > Here's my config: > > > > $ sudo cat /etc/tinc/robotvpn/tinc.conf > [...] > > Interface = tincdev0 > [...] > > Error while writing to Generic BSD tap device /dev/tap0: Input/output > error > > Unfortunately, on Mac OS X, tinc cannot change the name of the > interface. It's probably just tap0. Tinc should've warned about this, > but it doesn't. The solution is to remove the "Interface = tincdev0" > line from your tinc.conf. > > -- > 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/20160226/1cd42566/attachment.html>