From owner-freebsd-questions@FreeBSD.ORG Tue Sep 6 13:22:27 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A57E106564A for ; Tue, 6 Sep 2011 13:22:27 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 5A0748FC16 for ; Tue, 6 Sep 2011 13:22:27 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p86DMNu9096413; Tue, 6 Sep 2011 09:22:24 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4E661E83.9050507@sentex.net> Date: Tue, 06 Sep 2011 09:22:11 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Mikhail Goriachev References: <8d457de47ed92550a511265436c183f9.squirrel@www.vap.navalradio.net> <4E657CEA.7080300@sentex.net> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.71 on IPv6:2607:f3e0:0:1::12 Cc: freebsd-questions@freebsd.org Subject: Re: IPsec phase 1 and 2 negotiation in an infinite loop. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 13:22:27 -0000 On 9/5/2011 11:58 PM, Mikhail Goriachev wrote: > (p: #1 protoid=isakmp transform=1 > (t: #1 id=ike (type=lifetype value=sec)(type=lifeduration > value=7080)(type=enc value=3des)(type=auth > value=preshared)(type=hash value=sha1)(type=group desc > value=modp1024)))) > (vid: len=16 afcad71372a1f1c96b8696fc99570100) > 03:17:31.637424 IP (tos 0x0, ttl 50, id 0, offset 0, flags [DF], proto UDP > (17), length 108) > w.x.y.z.500 > a.b.c.d.500: [udp sum ok] isakmp 1.0 msgid cookie ->: > phase 1 R ident: > (sa: doi=ipsec situation=identity > (p: #1 protoid=isakmp transform=1 > (t: #1 id=ike (type=lifetype value=sec)(type=lifeduration > value=7080)(type=enc value=3des)(type=auth > value=preshared)(type=hash value=sha1)(type=group desc > value=modp1024)))) OK, both sides are 3des, psk and sha1 dhgroup 1. Thats good. > > Note: a.b.c.d is my end. w.x.y.z is the other end. "vid:", "ke:" and > "nonce:" are scrambled. > flag=0x8000, lorv=AES-CBC > Sep 5 20:40:27 vpnmach racoon: DEBUG: encryption(aes) > Sep 5 20:40:27 vpnmach racoon: DEBUG: type=Hash Algorithm, flag=0x8000, > lorv=MD5 > Sep 5 20:40:27 vpnmach racoon: DEBUG: hash(md5) > Sep 5 20:40:27 vpnmach racoon: DEBUG: type=Authentication Method, ... yet, you have AES and md5 ?? where are those coming from ? Do you have an extra config for the remote somewhere in your files perhaps that is matching ? ---Mike > remote w.x.y.z { > exchange_mode main; > proposal_check obey; > > proposal { > encryption_algorithm 3des; > hash_algorithm sha1; > authentication_method pre_shared_key; > dh_group modp1024; > } > } > -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/