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
[email protected]
http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
_______________________________________________
tinc mailing list
[email protected]
http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc