From owner-freebsd-net@FreeBSD.ORG Mon Nov 7 17:13:59 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A967106566B for ; Mon, 7 Nov 2011 17:13:59 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from proxypop03.sare.net (proxypop03.sare.net [194.30.0.207]) by mx1.freebsd.org (Postfix) with ESMTP id 0DB568FC13 for ; Mon, 7 Nov 2011 17:13:58 +0000 (UTC) Received: from [172.16.2.2] (izaro.sarenet.es [192.148.167.11]) by proxypop03.sare.net (Postfix) with ESMTPSA id 7CEA19DC512; Mon, 7 Nov 2011 18:13:57 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Borja Marcos In-Reply-To: <20111104134139.0836f380@mr12941> Date: Mon, 7 Nov 2011 18:13:54 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <3194E12A-1675-4369-BBB3-9B62BB1CB52E@sarenet.es> References: <20111104134139.0836f380@mr12941> To: Patrick Lamaiziere X-Mailer: Apple Mail (2.1084) Cc: freebsd-net@freebsd.org, Patrick Lamaiziere Subject: Re: FreeBSD 9-RC1, openbgpd, tcp md5 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 07 Nov 2011 17:13:59 -0000 =09 On Nov 4, 2011, at 1:41 PM, Patrick Lamaiziere wrote: > Isn't a new option to build openbgpd with tcp-md5 (and without = pf_key)? >=20 > I've used TCP-MD5 signature for bgp between a FreeBSD 8.x and OpenBSD, > using setkey(8) to enforce the signature between the peers. That > worked (of course, then you shouldn't use tcp-md5 in openbgd). >=20 > setkey(8): > add -4 peer1 peer2 tcp 0x1000 -A tcp-md5 "PASSWORD"; > add -4 peer2 peer1 tcp 0x1000 -A tcp-md5 "PASSWORD"; Ouch! Silly me, I assumed there was some setsockopt() option to set an = MD5 for a TCP socket. Thank you very much, working now both with both bird and openbgpd. :) = Turns out you have to delete the md5 option from the openbgpd config = file, but you need to put it (even with a bogus key) in the bird config = file. add 10.0.0.1 10.0.0.2 tcp 0x1000 -A tcp-md5 "mekmitasgoat"; add 10.0.1.1 10.0.1.2 tcp 0x1000 -A tcp-md5 "mekmitasgoat"; add 10.0.0.2 10.0.0.1 tcp 0x1000 -A tcp-md5 "mekmitasgoat"; add 10.0.1.2 10.0.1.1 tcp 0x1000 -A tcp-md5 "mekmitasgoat"; Borja.