From owner-freebsd-questions Wed Jan 22 16:12:25 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6586037B401 for ; Wed, 22 Jan 2003 16:12:23 -0800 (PST) Received: from ra.dweebsoft.com (ra.dweebsoft.com [209.237.40.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1DB143E4A for ; Wed, 22 Jan 2003 16:12:22 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: from daxhome (anubis.dweebsoft.com [64.81.58.36]) by ra.dweebsoft.com (8.12.3/8.12.3) with SMTP id h0N0CHGh073254; Wed, 22 Jan 2003 16:12:17 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Message-ID: <09c601c2c274$16da37f0$0a0aa8c0@dweebsoft.com> From: "Daxbert" To: "Scott Penno" , References: <001f01c2b2bb$0bf04780$0128a8c0@jupiter> <003c01c2b2bb$26770d00$0128a8c0@jupiter> Subject: Re: Problems with IPSec Date: Wed, 22 Jan 2003 16:12:16 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I have a FreeBSD box running -STABLE which has had IPSec working with other > hosts for quite some time without a problem. I've just setup another > FreeBSD box running 5.0-RC1 and am trying to establish a VPN tunnel but am > not getting too far. I'm using racoon and when attempting the negotiation > with debugging enabled, the following message appears: > 2003-01-20 12:00:23: ERROR: pfkey.c:207:pfkey_handler(): pfkey ADD failed: > Invalid argument > and the following message is logged via syslog: > Jan 20 12:00:23 atlas kernel: key_mature: invalid AH key length 160 (128-128 > allowed) > > The relevant section of racoon.conf which is identical on both boxes is: > sainfo anonymous > { > pfs_group 1; > lifetime time 86400 sec; > encryption_algorithm 3des ; > authentication_algorithm hmac_sha1 ; > compression_algorithm deflate ; > } > > The box running -STABLE has been working fine with this configuration so I'm > assuming the problem is with the box running 5.0-RC1. Interestingly, I've > also tried using des as the encryption algorithm and hmac_md5 as the > authentication algorithm and I receive the following error message: > racoon: failed to parse configuration file. > > If anyone has any suggestions for a fix, or how I go about further > diagnosing this problem, I'd love to hear from you. > > Regards, > > Scott. > It looks like the AH key length needs to be forced to 128 bits??? From: http://www.qnx.com/developer/docs/momentics_nc_docs/neutrino/utilities/r/racoon.conf.html "For algorithms that can take variable-length keys, algorithm names can be followed by a key length, like blowfish 448." Have you tried something along the lines of '3des 128' ? Just a guess. -Daxbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message