FW: Almost ...

Leung Yau Wai chris at gist.q-station.net
Wed May 24 18:17:46 CEST 2000


	I have came across the exactly situation b4.  I sloved the problem
by browsing the mailing archive.

	http://nl.linux.org/~majordomo/tinc/2000-03/msg00002.html

-------------------------------------------------------------
Try this little patch.  If it works for you, I'll make it a new
version.

=======================================================
--- net.c.old   Tue Feb  8 00:35:38 2000
+++ net.c       Fri Feb 11 00:50:57 2000
@@ -80,8 +80,8 @@
   p->len += 12;
   tmp[0] = tmp[6] = 0xfe;
   tmp[1] = tmp[7] = 0xfd;
-  *((ip_t*)(&tmp[2])) = *((ip_t*)(&tmp[30]));  /* !!  ?? */
-  *((ip_t*)(&tmp[8])) = (ip_t)(htonl(myself->vpn_ip));
+  *((ip_t*)(&tmp[2])) = (ip_t)(htonl(myself->vpn_ip));
+  *((ip_t*)(&tmp[8])) = *((ip_t*)(&tmp[26]));
   memcpy(p->data, &tmp[0], p->len);
 }

=======================================================


Chris



On Wed, 24 May 2000, Matthijs Hoosemans wrote:

> OK and thx, but still not everything,
> 
> now you can ping from anywhere in A to router B
> and from router B to anywhere in A
> only the netwerk behind B is unreachable.
> 
> If I look at the routing tables to the tap0 device
> I see that in both tables there's the line
> 
> 10.0.0.0 * 255.0.0.0 tap0
> 
> must this line in routing Table A not be
> 
> 10.2.0.0 * 255.0.0.0 tap0
> 
> (or maybe the other way around).
> 
> Matthijs Hoosemans
> 
> -----Original Message-----
> From: owner-tinc at nl.linux.org [mailto:owner-tinc at nl.linux.org]On Behalf
> Of Guus Sliepen
> Sent: Wednesday, May 24, 2000 6:31 AM
> To: Matthijs Hoosemans
> Cc: tinc at nl.linux.org
> Subject: RE: FW: Almost ...
> 
> 
> On Wed, 24 May 2000, Guus Sliepen wrote:
> 
> > Everything is OK except on machine B:
> 
> > tap0      Link encap:Ethernet  HWaddr FE:FD:0A:02:00:9A
> >           inet addr:10.0.0.154  Bcast:10.255.255.255  Mask:255.0.0.0
> 
> > HWaddr should be FE:FD:0A:00:00:9A.
> 
> Ehr, correction, inet addr should be 10.2.0.154 :).
> 
> Met vriendelijke groet,
> Guus Sliepen.
> 
> -
> Tinc:         Discussion list about the tinc VPN daemon
> Archive:      http://mail.nl.linux.org/lists/
> Tinc site:    http://ftp.nl.linux.org/pub/linux/tinc/
> 
> -
> Tinc:         Discussion list about the tinc VPN daemon
> Archive:      http://mail.nl.linux.org/lists/
> Tinc site:    http://ftp.nl.linux.org/pub/linux/tinc/
> 

-
Tinc:         Discussion list about the tinc VPN daemon
Archive:      http://mail.nl.linux.org/lists/
Tinc site:    http://ftp.nl.linux.org/pub/linux/tinc/



More information about the Tinc mailing list