<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Matthew,<br>
<br>
The subnet variable is not needed in switch mode. You can remove
this line from your laptop's hosts file.<br>
<br>
"Error while writing to Generic BSD tap device /dev/tun0:
Input/output error"<br>
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.<br>
<br>
If you have installed tuntaposx try this:<br>
<br>
Open a terminal, and run tinc in debug mode:<br>
:# tinc -n <vpn> -d5 -D<br>
When tinc is running, try to bring up the tap0 adapter. Open another
terminal and run the command:<br>
:# ipconfig set tap0 dhcp<br>
<br>
Hopefully, you should not see the Input/Output error anymore.<br>
<br>
Kind Regards,<br>
Mike<br>
<br>
<br>
On 11/04/2012 3:10 PM, Matthew Tolle wrote:
<blockquote
cite="mid:AE04AB05-C627-465E-9013-805C18B57BA6@night.com"
type="cite">
<div><br>
</div>
<div><br>
</div>
<div>Hi Folks,</div>
<div><br>
</div>
<div>This has been driving me nuts all day. I've been unable to
google myself out of it. Maybe someone here can help?</div>
<div><br>
</div>
<div>
<div>I followed the instructions from: </div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://www.tinc-vpn.org/examples/macbook-install/">http://www.tinc-vpn.org/examples/macbook-install/</a></div>
</div>
<div><br>
</div>
<div>Ubuntu server <-> Ubuntu server works just fine with
the same config. Ubuntu server <-> Mac laptop not so
much. </div>
<div><br>
</div>
<div>The error I'm getting is:</div>
<div><br>
</div>
<div>
<div>2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing
to Generic BSD tap device /dev/tun0: Input/output error</div>
<div>2012-04-10 21:48:44 tinc.l3vpn[52621]: Error while writing
to Generic BSD tap device /dev/tun0: Input/output error</div>
</div>
<div><lot of the same spew…></div>
<div><br>
</div>
<div>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. </div>
<div><br>
</div>
<div>Both sides seems happily connected before issuing the DHCP
command.</div>
<div><br>
</div>
<div>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: </div>
<div><br>
</div>
<div>
<div>vpn Link encap:Ethernet HWaddr 4e:31:65:e7:32:f6 </div>
<div> inet6 addr: fe80::4c32:66ff:fec6:32e7/64
Scope:Link</div>
<div> UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1</div>
<div> RX packets:1034 errors:0 dropped:0 overruns:0
frame:0</div>
<div> TX packets:529919 errors:0 dropped:0 overruns:0
carrier:0</div>
<div> collisions:0 txqueuelen:500 </div>
<div> RX bytes:87139 (87.1 KB) TX bytes:56253688 (56.2
MB)</div>
</div>
<div><br>
</div>
<div>standard kinds of goodness. On the Mac side it seems slim on
info:</div>
<div><br>
</div>
<div>
<div>tun0:
flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu
1500</div>
<div> open (pid 57014)</div>
</div>
<div><br>
</div>
<div>Makes me think that the tun/tap device is wonky? </div>
<div><br>
</div>
<div>The Tun/Tap stuff I got from port as per the instructions. </div>
<div><br>
</div>
<div>Configs: </div>
<div><br>
</div>
<div>
<div># cat tinc.conf </div>
<div>Name = laptop</div>
<div>Mode = switch</div>
</div>
<div><br>
</div>
<div>
<div># cat hosts/laptop </div>
<div>Subnet = 10.20.20.0/24</div>
<div>Address = 10.20.20.38</div>
<div><br>
</div>
<div>-----BEGIN RSA PUBLIC KEY-----</div>
</div>
<div><blahblahblah></div>
<div><br>
</div>
<div>
<div># cat hosts/server</div>
<div><br>
</div>
<div>-----BEGIN RSA PUBLIC KEY-----</div>
</div>
<div><blahblahblah></div>
<div> </div>
<div>I figure it's something very simple that I'm missing. Can
someone save my sanity please? </div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>-Matt</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
tinc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a>
<a class="moz-txt-link-freetext" href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a>
</pre>
</blockquote>
<br>
</body>
</html>