From owner-freebsd-net@FreeBSD.ORG Mon Apr 21 10:09:38 2003 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 AC1C137B401; Mon, 21 Apr 2003 10:09:38 -0700 (PDT) Received: from pyroxene.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id A36CF43FDF; Mon, 21 Apr 2003 10:09:37 -0700 (PDT) (envelope-from damian@sentex.net) Received: from pegmatite.sentex.ca (pegmatite.sentex.ca [192.168.42.92]) by pyroxene.sentex.ca (8.12.9/8.12.8) with ESMTP id h3LH9H8C006596; Mon, 21 Apr 2003 13:09:17 -0400 (EDT) (envelope-from damian@sentex.net) Received: by pegmatite.sentex.ca (Postfix, from userid 1001) id 2AE31170EC; Mon, 21 Apr 2003 13:09:17 -0400 (EDT) Date: Mon, 21 Apr 2003 13:09:17 -0400 From: Damian Gerow To: "Crist J. Clark" Message-ID: <20030421170916.GI2173@sentex.net> References: <20030415223713.GB648@sentex.net> <00d001c303dc$191c2830$0b01a8c0@Beastie> <20030416190520.GJ648@sentex.net> <20030418223822.GC39466@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030418223822.GC39466@blossom.cjclark.org> X-Operating-System: FreeBSD 5.0-CURRENT on a i386 X-GPG-Key: https://ssl3.sentex.ca/~damian/damian.asc X-GPG-Key-Id: 0xB841F142 X-GPG-Fingerprint: C7C1 E1D1 EC06 7C86 AF7C 57E6 173D 9CF6 B841 F142 User-Agent: Mutt/1.5.3i X-Virus-Scanned: By Sentex Communications (lava/20020517) cc: net@freebsd.org Subject: Re: IPSec tunnel setup problems 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: Mon, 21 Apr 2003 17:09:39 -0000 Thus spake Crist J. Clark (crist.clark@attbi.com) [21/04/03 11:47]: > > I've done it. I see continual re-tries for Phase I, nothing for Phase II. > > Here's what I see: > > > > tcpdump: > > 14:31:33.613674 pyroxene.sentex.ca.isakmp > asylum.afflictions.org.isakmp: isakmp: phase 1 I agg: [|sa] > > 14:31:53.428132 pyroxene.sentex.ca.isakmp > asylum.afflictions.org.isakmp: isakmp: phase 1 I agg: [|sa] > > Well, one weird thing is that pyroxene must be behind some kind of NAT > device, Nope. Pyroxene /is/ the NAT device. As is asylum. > > initiating: > [snip] > > 43:09.033625 64.7.134.90:500 -> 199.212.134.18:500: isakmp 1.0 msgid 00000000: phase 1 I agg: > ^^^ > > sa: doi=ipsec situation=identity > > p: #1 protoid=isakmp transform=1 > > t: #1 id=iketype=lifetype value=sectype=lifeduration value=0e10type=enc value=blowfishtype=keylen value=0080type=auth value=presharedtype=hash value=sha1type=group desc value=0005)))) > > ke: key len=192) > > nonce: n len=16) > > id: idtype=IPv4 protoid=udp port=500 len=4 64.7.134.90) > ^^^ > > receiving: > [snip] > > 40:07.915101 64.7.134.90:41889 -> 199.212.134.18:500: isakmp 1.0 msgid 00000000: phase 1 I agg: > ^^^^^ > > (sa: doi=ipsec situation=identity > > (p: #1 protoid=isakmp transform=1 > > (t: #1 id=ike (type=lifetype value=sec)(type=lifeduration value=0e10)(type=enc value=blowfish)(type=keylen value=0080)(type=auth value=preshared)(type=hash value=sha1)(type=group desc value=0005)))) > > (ke: key len=192) > > (nonce: n len=16) > > (id: idtype=IPv4 protoid=udp port=500 len=4 64.7.134.90) > ^^^ > > > 2003-04-16 14:40:07: DEBUG: remoteconf.c:134:getrmconf(): no remote configuration found. > > 2003-04-16 14:40:07: ERROR: isakmp.c:851:isakmp_ph1begin_r(): couldn't find configuration. > > I'm not 100% as to whether that is a deal-breaker or not. Hrmm? That's definitely odd... I'll have to check that out, to find out what's going on. Thanks for pointing it out. > This doesn't explain why initiating in the other direction doesn't > work. But what kind of devices are in between these two hosts? What is > doing NAT? The two hosts are, as pointed out above. . It might be some portmap statements in ipnat, I'll double-check, and try again.