From owner-freebsd-net Mon Apr 30 16: 2:46 2001 Delivered-To: freebsd-net@freebsd.org Received: from rgmail.regenstrief.org (rgmail.regenstrief.org [134.68.31.197]) by hub.freebsd.org (Postfix) with ESMTP id 2100C37B422 for ; Mon, 30 Apr 2001 16:02:35 -0700 (PDT) (envelope-from gunther@aurora.regenstrief.org) Received: from aurora.regenstrief.org (rgnout.regenstrief.org [134.68.31.38]) by rgmail.regenstrief.org (8.11.0/8.8.7) with ESMTP id f3UN7OX18068; Mon, 30 Apr 2001 18:07:24 -0500 Message-ID: <3AEDEEFA.60DD4AC4@aurora.regenstrief.org> Date: Mon, 30 Apr 2001 23:02:18 +0000 From: Gunther Schadow Organization: Regenstrief Institute for Health Care X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: snap-users@kame.net Cc: Shoichi Sakane , freebsd-net@freebsd.org, itojun@iijlab.net Subject: Re: (KAME-snap 4523) Re: KAME SPD bug, please try and confirm ... References: <20010424040539N.sakane@ydc.co.jp> <20010424041925C.sakane@ydc.co.jp> <3AE4BB51.FC1400BD@aurora.regenstrief.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Earlier last week I wrote: > I just built and tested the latest KAME-SNAP, and it appears as if > the two ipsec tunnels work together now. I will have a final word > on this later tomorrow, but for now it looks as if this problem > requires no further action on your part. Unfortunately I found out that the problem still exists deep down, it's just harder to reproduce. It comes when I try to use multiple SPD rules to route packets into the same ESP tunnel. The following setkey here script shows an exaple. This is for a VPN with a central headquarter (home) and multiple remote sites (sattelites 1, 2, 3, ...). We use shell variables to make this both easily reproduceable and more readable: ${homeip} - the outside IP address of the central VPN gateway, e.g., homeip=204.152.64.103 ${sat1ip} - the outside IP address of satellite-1's VPN gateway, e.g, sat1ip=24.16.273.28 ${sat2ip} - the outside IP address of sattelite-2's VPN gateway, e.g., sat2ip=65.34.283.122 etc. The VPN establishes one common class B network (typically using local IP numbers, e.g., 192.168.0.0/26). We use the shell variable ${vpn} to make this more readable. For example, we could set vpn=192.168 The problem with the KAME prolicy processing becomes manifest when we add another realistic twist, i.e., in adittion to the VPN network we want other routes using the VPN tunnel. For example, some folks in our company use the 10.0.0.0/8 network at the headquarter, and we have an affiliated organization with network 123.4.5.0/24 which we want to contact only via the headquarter using NAT such that the affiliated network would not need to know about the structure of our VPN. We configure the central home VPN gateway using the following setkey here script: setkey -c <