From owner-freebsd-net@FreeBSD.ORG Thu Jun 9 06:16:25 2005 Return-Path: X-Original-To: FreeBSD-net@freebsd.org Delivered-To: FreeBSD-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 030DA16A41C; Thu, 9 Jun 2005 06:16:25 +0000 (GMT) (envelope-from gmarco@masternet.it) Received: from freebsd.giovannelli.com (freebsd.giovannelli.com [83.149.149.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id E56B843D1D; Thu, 9 Jun 2005 06:16:22 +0000 (GMT) (envelope-from gmarco@masternet.it) Received: from usul.giovannelli.it (usul.giovannelli.com [10.254.254.4]) by freebsd.giovannelli.com (8.13.3/8.13.3) with ESMTP id j596EnAq009216; Thu, 9 Jun 2005 08:14:50 +0200 (CEST) (envelope-from gmarco@masternet.it) Message-Id: <6.2.1.2.2.20050609080446.05c897d0@83.149.160.120> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Thu, 09 Jun 2005 08:13:54 +0200 To: "Greg 'groggy' Lehey" From: Gianmarco Giovannelli In-Reply-To: <20050609001004.GB64194@wantadilla.lemis.com> References: <20050607100958.GU41050@obiwan.tataz.chchile.org> <20050607093717.GA76296@wantadilla.lemis.com> <20050607094848.GB16223@stack.nl> <20050607231218.GD64194@wantadilla.lemis.com> <20050608084946.GI41050@obiwan.tataz.chchile.org> <20050608095703.GM64194@wantadilla.lemis.com> <20050608195837.Q65103@Neo-Vortex.net> <20050608104053.GK41050@obiwan.tataz.chchile.org> <20050608233136.GX64194@wantadilla.lemis.com> <20050608234559.GS41050@obiwan.tataz.chchile.org> <20050609001004.GB64194@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-AntiVirus: checked by AVIRA Milter (version: 1.0.0-6; AIE: 6.30.0.12; VDF: 6.30.0.184; host: localhost) Cc: FreeBSD-net@freebsd.org Subject: Re: Problems with gif tunnels X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2005 06:16:25 -0000 At 02.10 09/06/2005, Greg 'groggy' Lehey wrote: >On Thursday, 9 June 2005 at 1:46:00 +0200, Jeremie Le Hen wrote: >> Greg, >> >>> My understanding is that GRE is to IP as PPP is to SLIP: it allows >>> multiple protocols to be encapsulated. I've done some tracing with >>> Ethereal, and the only difference is a four-byte header in front of >>> the payload for GRE; in an IP tunnel, it's simply missing. I've >>> written this up in my diary >>> (http://www.lemis.com/grog/diary-jun2005.html#8), along with the >>> traces. >> >> yes it's usually a simple four-byte header when doing a simple tunnel. >> But from what I have read [1] and according to what Giorgos said, >> it seems it can be a lot more longer, depending on the value of the >> five first bits of the GRE header. > >Ah, that seems reasonable. Hi Greg, I have follow with interest this thread because I had a similar problem sometimes ago and we din't succeded in resolve it as I like ... I had to connect a couple of a nets with a freebsd box and a linux box (not managed by me). They insist to use the ipip tunnel (p:4) and I think I should use the nos-tun interface we had in the base system to let things works ourside. But it didn't do the job so we had to switch on an ipsec tunnel (esp only) which works quite well except a few things... Now I see I could simply use the gif interface (which I wrongly suppose did only GRE tunnel :-) to connect to an ipip linux tunnel. Is this right ? And the nos-tun utility is so a basic replacement of the gif interface ? Thanks ....