From owner-freebsd-net@freebsd.org Tue Jun 12 14:57:46 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B8E4101BC12 for ; Tue, 12 Jun 2018 14:57:46 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C11F6684B6 for ; Tue, 12 Jun 2018 14:57:45 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from mail-pf0-f169.google.com (mail-pf0-f169.google.com [209.85.192.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) (Authenticated sender: olivier/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 78E921D41E for ; Tue, 12 Jun 2018 14:57:45 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: by mail-pf0-f169.google.com with SMTP id a63-v6so12262734pfl.1 for ; Tue, 12 Jun 2018 07:57:45 -0700 (PDT) X-Gm-Message-State: APt69E3ivlBMo50aV7hW6gy+XAN3j/cIdIcUGuDPAn3SD/lSX+SMRpc3 7QDiGr1b8vyHGWCSxk/YgRhnEI/CEAP+Cw8BM2A= X-Google-Smtp-Source: ADUXVKK7a14vf79IaEDHTz+eBsZaJPpV111dCOGSPWT8yrOJnzn1naBx7h7VFulRC4aYoOHjUdYLYF7w/1odHq8ZQ9g= X-Received: by 2002:a65:6210:: with SMTP id d16-v6mr617245pgv.272.1528815464705; Tue, 12 Jun 2018 07:57:44 -0700 (PDT) MIME-Version: 1.0 References: <20180612143447.697681c5@mr185083> In-Reply-To: <20180612143447.697681c5@mr185083> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Tue, 12 Jun 2018 16:57:31 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: 11.2-RC1 bird 2 BGP invalid ipsec SA/SP To: Patrick Lamaiziere Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2018 14:57:46 -0000 On Tue, Jun 12, 2018 at 2:35 PM Patrick Lamaiziere wrote: > Hello, > > I'm trying Bird 2 on FreeBSD 11.2 using tcp md5 signature for BGP > connections. > > Bird2 has an option to set the needed ipsec SA/SP but here this does > not work. > > > =E2=80=8BIt will work if you 'help' bird to know the source address to use = (source address) into the BGP protocol. Here is the extract of my bird BGP configuration file (no setkey.conf needed): protocol bgp R4inet4 { local as myas; # Bird creates IPSEC SAD entry automatically but it need to know the source IP address # Otherwise it will use the wrong 0.0.0.0 IP as source source address 10.0.2.3; neighbor 10.0.2.4 as 200; password "abigpassword"; ipv4 { import all; export all; next hop self; }; } Regards, Olivier