From owner-freebsd-net@FreeBSD.ORG Sat Dec 4 10:45:08 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D1111065672 for ; Sat, 4 Dec 2010 10:45:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id 8B9598FC1C for ; Sat, 4 Dec 2010 10:45:07 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 973CC41C710; Sat, 4 Dec 2010 11:45:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id e6hcFtyCmmVy; Sat, 4 Dec 2010 11:45:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id BE99241C70C; Sat, 4 Dec 2010 11:45:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 1BB8A4448F3; Sat, 4 Dec 2010 10:41:58 +0000 (UTC) Date: Sat, 4 Dec 2010 10:41:57 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: "Eugene M. Zheganin" In-Reply-To: <4CF8E9D5.3060105@norma.perm.ru> Message-ID: <20101204103845.P6126@maildrop.int.zabbadoz.net> References: <4CF76AD4.1010704@norma.perm.ru> <20101202205442.C6126@maildrop.int.zabbadoz.net> <4CF8E9D5.3060105@norma.perm.ru> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: ah_input: packet replay failure 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: Sat, 04 Dec 2010 10:45:08 -0000 On Fri, 3 Dec 2010, Eugene M. Zheganin wrote: > Hi. > > On 03.12.2010 01:58, Bjoern A. Zeeb wrote: >>> >>> FreeBSD A >======ipsec over gre===> FreeBSD B >> I'm using FreeBSD as a security gateway: >> >> What it means is that a packet with either an invalid sequence, a >> sequence lower than the last seen and outside the window, or a >> sequence seen already (lately) has arrived. >> >> Could it be that something is duplicating packets or that you have >> packet loss between A and B? Given that you say that you are running >> IPsec on top of GRE (which sounds strange anyway) I'd monitor the >> outer tunnel endpoints independently to see what's going on. > Well, could you be more exact, please, about what did you mean by saying > 'strange' ? > Probably, my english isn't that good, I just tried to say that I use ipsec to > encrypt my gre tunnels. If it is ipsec outer and gre inner encapsulation, that's fine. I was worried that you'd do it the other way round for some reason. So it's gre inside ipsec. > Could this out-of-the-sequence thing be caused by traffic shaping, such as pf > ALTQing ? Yes. Very likely, especially if you have bursts of packets. /bz -- Bjoern A. Zeeb Welcome a new stage of life. Going to jail sucks -- All my daemons like it! http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html