Virtual LAN over Tinc?

Donald Pearson donaldwhpearson at gmail.com
Sun Dec 7 17:15:33 CET 2008


On Sun, Dec 7, 2008 at 4:21 AM, Guus Sliepen <guus at tinc-vpn.org> wrote:

> On Sat, Dec 06, 2008 at 04:36:18PM -0500, Donald Pearson wrote:
>
> > I actually sent this to Guus directly before realizing I could send it to
> > this mailing list.  So, Sorry about that Guus!!
>
> No problem.
>
> [...]
> > However, donald cannot talk to anything on irfan's lan.   And irfan
> cannot
> > talk to anything on donald's lan.
> [...]
> > I created the bridge because I thought I would need
> > to bridge the local area connection with the Tinc connection, to expose
> the
> > networks behind eac host.  However, when I bridge them, I get Loopback
> > errors.
>
> You are using switch mode, so you should either bridge the tinc interface
> with
> the LAN interface, set up proxy-ARP or manually add gateway routes so that
> packets from donald to irfan's LAN get forwarded by irfan's OS.
> Alternatively,
> don't use switch mode if you don't really need it.
>
> But what kind of loopback errors are you getting?
>

As soon as I bridge the Tinc interface with the LAN interface, I get the
error Cannot route packet from Donald (MYSELF): unknown type 26
Consequently, when I bridge the interfaces while Tinc is running, I am
unable to connect to anything but my default gateway, 192.168.2.1.  No
internet connectivity, no connectivity to the rest of the LAN.

I'm sure running Tinc in Mode = switch with the Tinc and LAN intefaces
bridged is what I need to do, (I'm trying to create a true virtual ethernet
LAN) but I must have something misconfigured somewhere.

Here is the bridge on Donald.

Ethernet adapter Network Bridge:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : MAC Bridge Miniport
        Physical Address. . . . . . . . . : 02-0E-0C-32-28-DE
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.2.20
        Subnet Mask . . . . . . . . . . . : 255.255.0.0
        Default Gateway . . . . . . . . . : 192.168.2.1
        DNS Servers . . . . . . . . . . . : 192.168.2.1

Route print on Donald;
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.2.1    192.168.2.20       10
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
      192.168.0.0      255.255.0.0     192.168.2.20    192.168.2.20       10
     192.168.2.20  255.255.255.255        127.0.0.1       127.0.0.1       10
    192.168.2.255  255.255.255.255     192.168.2.20    192.168.2.20       10
        224.0.0.0        240.0.0.0     192.168.2.20    192.168.2.20       10
  255.255.255.255  255.255.255.255     192.168.2.20               2       1
  255.255.255.255  255.255.255.255     192.168.2.20    192.168.2.20       1
Default Gateway:       192.168.2.1
===========================================================================
Persistent Routes:
  None

Here is a capture while running  tincd -n vpn -d5 -D on Donald.



Writing packet of 277 bytes to Windows tap device
Got PING from Irfan (76.111.22.157 port 8222): 8
Sending PONG to Irfan (76.111.22.157 port 8222): 9
Sending 2 bytes of metadata to Irfan (76.111.22.157 port 8222)
Flushing 2 bytes to Irfan (76.111.22.157 port 8222)
Sending PING to Irfan (76.111.22.157 port 8222): 8
Sending 2 bytes of metadata to Irfan (76.111.22.157 port 8222)
Flushing 2 bytes to Irfan (76.111.22.157 port 8222)
Got PONG from Irfan (76.111.22.157 port 8222): 9
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 42 bytes from Windows tap device
Writing packet of 42 bytes to Windows tap device
Read packet of 74 bytes from Windows tap device
Sending packet of 74 bytes to Irfan (76.111.22.157 port 8222)
Sending PACKET to Irfan (76.111.22.157 port 8222): 17 74
Sending 6 bytes of metadata to Irfan (76.111.22.157 port 8222)
Sending 74 bytes of metadata to Irfan (76.111.22.157 port 8222)
Flushing 80 bytes to Irfan (76.111.22.157 port 8222)
Read packet of 134 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown IPv4 destination address
76.11
1.22.157
Writing packet of 162 bytes to Windows tap device
Got PACKET from Irfan (76.111.22.157 port 8222): 17 74
Received packet of 74 bytes from Irfan (76.111.22.157 port 8222)
Writing packet of 74 bytes to Windows tap device
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 74 bytes from Windows tap device
Sending packet of 74 bytes to Irfan (76.111.22.157 port 8222)
Sending PACKET to Irfan (76.111.22.157 port 8222): 17 74
Sending 6 bytes of metadata to Irfan (76.111.22.157 port 8222)
Sending 74 bytes of metadata to Irfan (76.111.22.157 port 8222)
Flushing 80 bytes to Irfan (76.111.22.157 port 8222)
Read packet of 134 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown IPv4 destination address
76.11
1.22.157
Writing packet of 162 bytes to Windows tap device
Got PACKET from Irfan (76.111.22.157 port 8222): 17 74
Received packet of 74 bytes from Irfan (76.111.22.157 port 8222)
Writing packet of 74 bytes to Windows tap device
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 62 bytes from Windows tap device
Packet looping back to Donald (MYSELF)!
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 62 bytes from Windows tap device
Packet looping back to Donald (MYSELF)!
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 62 bytes from Windows tap device
Packet looping back to Donald (MYSELF)!
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26
Read packet of 62 bytes from Windows tap device
Packet looping back to Donald (MYSELF)!
Read packet of 52 bytes from Windows tap device
Cannot route packet from Donald (MYSELF): unknown type 26




>
> --
> Met vriendelijke groet / with kind regards,
>     Guus Sliepen <guus at tinc-vpn.org>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkk7lZAACgkQAxLow12M2ns3mwCaAjToODD5hgWJgVoTQXyPeuxY
> VWMAnRqn0dZy/dS/cz0WGqLT2Wd+4rfl
> =dYJm
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> 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/20081207/a9861aa4/attachment.htm 


More information about the tinc mailing list