Hi Folks, This has been driving me nuts all day. I've been unable to google myself out of it. Maybe someone here can help? I followed the instructions from: http://www.tinc-vpn.org/examples/macbook-install/ Ubuntu server <-> Ubuntu server works just fine with the same config. Ubuntu server <-> Mac laptop not so much. The error I'm getting is: 2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing to Generic BSD tap device /dev/tun0: Input/output error 2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing to Generic BSD tap device /dev/tun0: Input/output error <lot of the same spew?> The error pops up after I try to get DHCP going over the link. (ipconfig set tun0 DHCP). Not that it works before I try and do that. Both sides seems happily connected before issuing the DHCP command. I've tried just about everything I can think of for the configs. Switch on, off, bridging on and off on the server side.. nothing seems to work. I do find it odd that under linux the virtual device looks like this: vpn Link encap:Ethernet HWaddr 4e:31:65:e7:32:f6 inet6 addr: fe80::4c32:66ff:fec6:32e7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1034 errors:0 dropped:0 overruns:0 frame:0 TX packets:529919 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:87139 (87.1 KB) TX bytes:56253688 (56.2 MB) standard kinds of goodness. On the Mac side it seems slim on info: tun0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 open (pid 57014) Makes me think that the tun/tap device is wonky? The Tun/Tap stuff I got from port as per the instructions. Configs: # cat tinc.conf Name = laptop Mode = switch # cat hosts/laptop Subnet = 10.20.20.0/24 Address = 10.20.20.38 -----BEGIN RSA PUBLIC KEY----- <blahblahblah> # cat hosts/server -----BEGIN RSA PUBLIC KEY----- <blahblahblah> I figure it's something very simple that I'm missing. Can someone save my sanity please? Thanks, -Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20120410/d2c6742b/attachment.html>
On Tue, Apr 10, 2012 at 10:10:43PM -0700, Matthew Tolle wrote:> I followed the instructions from: > > http://www.tinc-vpn.org/examples/macbook-install/ > > Ubuntu server <-> Ubuntu server works just fine with the same config. Ubuntu server <-> Mac laptop not so much. > > The error I'm getting is: > > 2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing to Generic BSD tap device /dev/tun0: Input/output error > 2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing to Generic BSD tap device /dev/tun0: Input/output error[...]> # cat tinc.conf > Name = laptop > Mode = switchI think you need to add "Device = /dev/tap0" to your tinc.conf. (Tinc is using the wrong device by default in this case.) -- 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: 198 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20120411/f72faa20/attachment.pgp>
Hi Matthew, Did you compile from source, or did you use the macport instructions? If you didn't use macports, have you installed tuntaposx? The device should be tap0, not tun0. Remove the Subnet variable from your laptop hosts file. It is not needed in switch mode. I wouldn't worry about bridging yet, try to get the connection going with the tap0 device first. Mike On 11/04/2012 3:10 PM, Matthew Tolle wrote:> > > Hi Folks, > > This has been driving me nuts all day. I've been unable to google > myself out of it. Maybe someone here can help? > > I followed the instructions from: > > http://www.tinc-vpn.org/examples/macbook-install/ > > Ubuntu server <-> Ubuntu server works just fine with the same config. > Ubuntu server <-> Mac laptop not so much. > > The error I'm getting is: > > 2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing to Generic > BSD tap device /dev/tun0: Input/output error > 2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing to Generic > BSD tap device /dev/tun0: Input/output error > <lot of the same spew...> > > The error pops up after I try to get DHCP going over the link. > (ipconfig set tun0 DHCP). Not that it works before I try and do that. > > Both sides seems happily connected before issuing the DHCP command. > > I've tried just about everything I can think of for the configs. > Switch on, off, bridging on and off on the server side.. nothing seems > to work. I do find it odd that under linux the virtual device looks > like this: > > vpn Link encap:Ethernet HWaddr 4e:31:65:e7:32:f6 > inet6 addr: fe80::4c32:66ff:fec6:32e7/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:1034 errors:0 dropped:0 overruns:0 frame:0 > TX packets:529919 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:500 > RX bytes:87139 (87.1 KB) TX bytes:56253688 (56.2 MB) > > standard kinds of goodness. On the Mac side it seems slim on info: > > tun0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > open (pid 57014) > > Makes me think that the tun/tap device is wonky? > > The Tun/Tap stuff I got from port as per the instructions. > > Configs: > > # cat tinc.conf > Name = laptop > Mode = switch > > # cat hosts/laptop > Subnet = 10.20.20.0/24Remove the Subnet variable. It is not needed in switch mode.> Address = 10.20.20.38 > > -----BEGIN RSA PUBLIC KEY----- > <blahblahblah> > > # cat hosts/server > > -----BEGIN RSA PUBLIC KEY----- > <blahblahblah> > I figure it's something very simple that I'm missing. Can someone save > my sanity please? > > Thanks, > > -Matt > > > > _______________________________________________ > 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/20120411/6f900c57/attachment.html>
Hi Matthew, The subnet variable is not needed in switch mode. You can remove this line from your laptop's hosts file. "Error while writing to Generic BSD tap device /dev/tun0: Input/output error" This means that tinc cannot write to the network interface. It usually means that the interfaces don't exist (i.e. tuntaposx isn't installed) or it isn't configured. If you have installed tuntaposx try this: Open a terminal, and run tinc in debug mode: :# tinc -n <vpn> -d5 -D When tinc is running, try to bring up the tap0 adapter. Open another terminal and run the command: :# ipconfig set tap0 dhcp Hopefully, you should not see the Input/Output error anymore. Kind Regards, Mike On 11/04/2012 3:10 PM, Matthew Tolle wrote:> > > Hi Folks, > > This has been driving me nuts all day. I've been unable to google > myself out of it. Maybe someone here can help? > > I followed the instructions from: > > http://www.tinc-vpn.org/examples/macbook-install/ > > Ubuntu server <-> Ubuntu server works just fine with the same config. > Ubuntu server <-> Mac laptop not so much. > > The error I'm getting is: > > 2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing to Generic > BSD tap device /dev/tun0: Input/output error > 2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing to Generic > BSD tap device /dev/tun0: Input/output error > <lot of the same spew...> > > The error pops up after I try to get DHCP going over the link. > (ipconfig set tun0 DHCP). Not that it works before I try and do that. > > Both sides seems happily connected before issuing the DHCP command. > > I've tried just about everything I can think of for the configs. > Switch on, off, bridging on and off on the server side.. nothing seems > to work. I do find it odd that under linux the virtual device looks > like this: > > vpn Link encap:Ethernet HWaddr 4e:31:65:e7:32:f6 > inet6 addr: fe80::4c32:66ff:fec6:32e7/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:1034 errors:0 dropped:0 overruns:0 frame:0 > TX packets:529919 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:500 > RX bytes:87139 (87.1 KB) TX bytes:56253688 (56.2 MB) > > standard kinds of goodness. On the Mac side it seems slim on info: > > tun0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > open (pid 57014) > > Makes me think that the tun/tap device is wonky? > > The Tun/Tap stuff I got from port as per the instructions. > > Configs: > > # cat tinc.conf > Name = laptop > Mode = switch > > # cat hosts/laptop > Subnet = 10.20.20.0/24 > Address = 10.20.20.38 > > -----BEGIN RSA PUBLIC KEY----- > <blahblahblah> > > # cat hosts/server > > -----BEGIN RSA PUBLIC KEY----- > <blahblahblah> > I figure it's something very simple that I'm missing. Can someone save > my sanity please? > > Thanks, > > -Matt > > > > _______________________________________________ > 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/20120411/44f5827b/attachment.html>