From owner-freebsd-net@FreeBSD.ORG Thu Mar 11 01:29:56 2004 Return-Path: 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 BFB7E16A4CE for ; Thu, 11 Mar 2004 01:29:56 -0800 (PST) Received: from mizar.origin-it.net (mizar.origin-it.net [194.8.96.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAFAE43D46 for ; Thu, 11 Mar 2004 01:29:55 -0800 (PST) (envelope-from helge.oldach@atosorigin.com) Received: from matar.hbg.de.int.atosorigin.com (dehsfw3e.origin-it.net [194.8.96.68])i2B9TqbP028105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 Mar 2004 10:29:53 +0100 (CET) (envelope-from helge.oldach@atosorigin.com) Received: from galaxy.hbg.de.ao-srv.com (galaxy.hbg.de.ao-srv.com [161.89.20.4])ESMTP id i2B9TqRu021766; Thu, 11 Mar 2004 10:29:52 +0100 (CET) (envelope-from helge.oldach@atosorigin.com) Received: (from hmo@localhost) by galaxy.hbg.de.ao-srv.com (8.9.3p2/8.9.3/hmo30mar03) id KAA27502; Thu, 11 Mar 2004 10:29:51 +0100 (MET) Message-Id: <200403110929.KAA27502@galaxy.hbg.de.ao-srv.com> In-Reply-To: <20040310052556.GA33553@OntheNet.com.au> from Nick Slager at "Mar 10, 2004 6:25:56 am" To: nicks@OntheNet.com.au (Nick Slager) Date: Thu, 11 Mar 2004 10:29:51 +0100 (MET) From: Helge Oldach X-Address: Atos Origin GmbH, Friesenstraße 13, D-20097 Hamburg, Germany X-Phone: +49 40 7886 7464, Fax: +49 40 7886 9464, Mobile: +49 160 4782517 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: net@freebsd.org Subject: Re: IPsec: odd behaviour with policies X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 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, 11 Mar 2004 09:29:56 -0000 Nick Slager: >I have a newly created VPN between a 4.8 box and a Cisco VPN 3000 >Concentrator. > >/etc/ipsec.conf: > >flush; >spdflush; >spdadd 192.168.1.1/32 1.2.3.4/32 any -P out ipsec >esp/tunnel/203.1.1.1-203.2.2.2/require; >spdadd 1.2.3.4/32 192.168.1.1/32 any -P in ipsec >esp/tunnel/203.2.2.2-203.1.1.1/require; > >spdadd 192.168.1.1/32 1.2.3.5/32 any -P out ipsec >esp/tunnel/203.1.1.1-203.2.2.2/require; >spdadd 1.2.3.5/32 192.168.1.1/32 any -P in ipsec >esp/tunnel/203.2.2.2-203.1.1.1/require; Try using "unique" instead of "require". (This is my standard answer on the subject. :-)) Helge