From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB57EC433ED for ; Fri, 16 Apr 2021 09:35:52 +0000 (UTC) Received: from lists.zx2c4.com (lists.zx2c4.com [165.227.139.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 64D7760240 for ; Fri, 16 Apr 2021 09:35:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64D7760240 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=toke.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=wireguard-bounces@lists.zx2c4.com Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 970bfa7e; Fri, 16 Apr 2021 09:35:49 +0000 (UTC) Received: from mail.toke.dk (mail.toke.dk [2a0c:4d80:42:2001::664]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id d9fcf683 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Fri, 16 Apr 2021 09:35:47 +0000 (UTC) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1618565747; bh=7fSW98Ie+czDVzub0Ul4ICRxOO6BlTP40yH8lxGhD7s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZrrZP7WMbndRamWBlc0P9TPPwhj168Yfuc9mrVlmkVamJQIBERovFOGaVFQc+j4tl g5yrXNGlwFQ5/jhWngNoxkBwv1VhuRa0XCh5CWQDaW5/w8lkUBuAU2euOHB/55Jv6a fO2CHYU1CJzxYGalR8soK/s6CKcMLOjBmezkmiPCEv9tWcUxt4RlOdohw5ojB1WQaW o4U/b/Ts+jicx+VUZjI8DNowFO2CZMVYMgUkK0+NMZlIMY53T8nCjYCtZKs7FVrMOV EktxubSeu8NgbF8MQe8k49eiU+s38vWyvcqIiXNXiE3FgLQ7CwkR3u7u9RcSKIZA86 3xRRj1cvmQJOA== To: Stefan Haller , "Jason A. Donenfeld" Cc: WireGuard mailing list Subject: Re: FreeBSD if_wg POINTTOPOINT and MULTICAST behaviour In-Reply-To: <15c3483d-546b-4c86-aca7-9ab37945791e@stha.de> References: <9afe6dc9-5c53-4c25-b09f-5b4cf6ff8046@stha.de> <87371254-15f1-494b-8740-38071d7f7d68@stha.de> <874kg8ldjn.fsf@toke.dk> <7be52421-db0d-4971-99b0-ce76307d1a33@stha.de> <87sg3rigdx.fsf@toke.dk> <15c3483d-546b-4c86-aca7-9ab37945791e@stha.de> Date: Fri, 16 Apr 2021 11:35:46 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87a6pyinbh.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" Stefan Haller writes: > Hi Jason, > > On Thu, Apr 15, 2021 at 06:05:03PM -0600, Jason A. Donenfeld wrote: >> I spent the day playing around with bird and babel and sorted out >> FreeBSD's v6 situation. Basically, ff00::/8 addresses are treated >> differently, and they're blocked unless the interface sets >> IFF_MULTICAST. So I've committed >> https://git.zx2c4.com/wireguard-freebsd/commit/?id=a7a84a17faf784857f076e37aa4818f6b6c12a95 >> to do this. > > That is also what I observed. Without IFF_MULTICAST I see the following > error in bird's log: > > bird[8045]: babel1: Socket error: IPV6_MULTICAST_IF: Can't assign requested address > bird[8045]: babel1: Cannot open socket for wg1 > >> Stefan - please let me know if those work for you. In my testing thus >> far, things seem to work for me. > > After applying Toke's patch for bird and your Wireguard patch in > a7a84a17faf784 everything is working as before (with minor config > changes). > > Just for the record, my previous configuration looked like this (using > POINTTOPOINT interfaces, I use ifconfig to set the peer address): > >> [Interface] >> ... >> Address = fe80::5/64 >> PostUp = ifconfig %i inet 169.254.42.5/32 169.254.42.2 > > My new configuration without POINTTOPOINT, but only a single peer > directly attached to other side of the wg tunnel: > >> [Interface] >> ... >> Address = 169.254.42.5/32, fe80::5/64 >> PostUp = route add 169.254.42.2 -iface %i > > So for me everything works as expected again. A big thanks to all of you for > figuring out what was going wrong and getting it fixed so quickly. Great! You're welcome :) -Toke