From owner-freebsd-security Fri Jun 21 5:48: 3 2002 Delivered-To: freebsd-security@freebsd.org Received: from proxy.centtech.com (moat.centtech.com [206.196.95.10]) by hub.freebsd.org (Postfix) with ESMTP id F124137B406 for ; Fri, 21 Jun 2002 05:47:55 -0700 (PDT) Received: from sprint.centtech.com (sprint.centtech.com [10.177.173.31]) by proxy.centtech.com (8.11.6/8.11.6) with ESMTP id g5LCls104126; Fri, 21 Jun 2002 07:47:54 -0500 (CDT) Received: (from root@localhost) by sprint.centtech.com (8.11.6+Sun/8.11.6) id g5LClsM29289; Fri, 21 Jun 2002 07:47:54 -0500 (CDT) Received: from centtech.com (proton [10.177.173.77]) by sprint.centtech.com (8.11.6+Sun/8.11.6) with ESMTP id g5LClpR29282; Fri, 21 Jun 2002 07:47:51 -0500 (CDT) Message-ID: <3D132077.4B8FBB3D@centtech.com> Date: Fri, 21 Jun 2002 07:47:51 -0500 From: Eric Anderson X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: cjclark@alum.mit.edu Cc: security@freebsd.org Subject: Re: Configuring sainfo in racoon(8) References: <20020618130547.A11688@blossom.cjclark.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Well, I'm no expert on this, but the way I have my tunnels set up is something like this (this is a script on one side of the tunnel). VNNAME=tunnelname GWAY=192.168.10.17 NMASK=255.255.255.240 HNET=192.168.10.16/28 IFACE=gif0 # DO NOT EDIT BELOW THIS POINT # EXTIP=`cat /usr/local/etc/vpn/$VNNAME-extip` gifconfig $IFACE delete gifconfig $IFACE 200.200.200.200 $EXTIP logger -t $VNNAME Interface $IFACE has been brought up. ifconfig $IFACE inet 10.10.10.39 $GWAY netmask 255.255.255.255 logger -t $VNNAME Configured $IFACE. route add -net $HNET $GWAY > /dev/null 2>&1 route add $HNET $GWAY > /dev/null 2>&1 route add 10.10.10.39 $GWAY > /dev/null 2>&1 logger -t $VNNAME Added network route for $IFACE setkey -c << EOF spddelete 10.10.10.0/24 $HNET any -P out; spddelete $HNET 10.10.10.0/24 any -P in; spddelete 10.20.0.0/16 $HNET any -P out; spddelete $HNET 10.20.0.0/16 any -P in; spdadd 10.10.10.0/24 $HNET any -P out ipsec esp/tunnel/200.200.200.200-$EXTIP/require; spdadd $HNET 10.10.10.0/24 any -P in ipsec esp/tunnel/$EXTIP-200.200.200.200/require; spdadd 10.20.0.0/16 $HNET any -P out ipsec esp/tunnel/200.200.200.200-$EXTIP/require; spdadd $HNET 10.20.0.0/16 any -P in ipsec esp/tunnel/$EXTIP-200.200.200.200/require; EOF ping -c 5 $GWAY > /dev/null 2>&1 logger -t $VNNAME Finished adding SPDs. Does this help any? Eric "Crist J. Clark" wrote: > I have my SPD set, > > # setkey -c < spdadd 192.168.200.1 192.168.101.0/24 any > -P out ipsec esp/tunnel/192.168.200.1-192.168.100.1/require; > spdadd 192.168.101.0/24 192.168.200.1 any > -P in ipsec esp/tunnel/192.168.100.1-192.168.200.1/require; > EOF -- ------------------------------------------------------------------ Eric Anderson Systems Administrator Centaur Technology He who laughs last didn't get the joke. ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message