From owner-freebsd-net@FreeBSD.ORG Tue Mar 4 15:30:07 2008 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 6834D106566B for ; Tue, 4 Mar 2008 15:30:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id 253718FC22 for ; Tue, 4 Mar 2008 15:30:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 7D5CD41C795; Tue, 4 Mar 2008 16:30:05 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id 5D5Z-4j6BaMA; Tue, 4 Mar 2008 16:30:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id 2C48C41C75E; Tue, 4 Mar 2008 16:30: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 CEE484448DD; Tue, 4 Mar 2008 15:25:16 +0000 (UTC) Date: Tue, 4 Mar 2008 15:25:16 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Cyrus Rahman In-Reply-To: <9e77bdb50803040649u1876d8d4l9f2b7a4cef5c4b5@mail.gmail.com> Message-ID: <20080304152255.M50685@maildrop.int.zabbadoz.net> References: <9e77bdb50803040649u1876d8d4l9f2b7a4cef5c4b5@mail.gmail.com> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: ipv6 + ah + esp 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: Tue, 04 Mar 2008 15:30:07 -0000 On Tue, 4 Mar 2008, Cyrus Rahman wrote: Hi, > Is there a known problem running ah+esp on ip6? I can set up an > association and run ah+esp just fine on ip4, > and ah or esp work well by themselves in ip6, but I've had no luck > with combining them on ip6. > > I know that ipcomp is documented to be broken but I haven't seen > anything about this problem. This is on 7.0-RELEASE. > > For example this: > > spdadd hostA hostB any -P out ipsec > esp/transport//require ah/transport//require; > spdadd hostB hostA any -P in ipsec > esp/transport//require ah/transport//require; > > results in no exchange but the following messages in syslog: > > snowfall kernel: ip6_output (ipsec): error code 22 > > Taking either ah or esp out of the policy works just fine. 22 is EINVAL. The same error message is there twice in sys/netinet6/ip6_output.c (search for "(ipsec)" w/o the ""). Could you alter them so we can tell them apart, recompile the kernel and file a PR with this information and whether it is the printf after ipsec6_output_trans or after ipsec6_output_tunnel. /bz -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT Software is harder than hardware so better get it right the first time.