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=-4.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 19390C433E6 for ; Sun, 30 Aug 2020 11:02:18 +0000 (UTC) Received: from krantz.zx2c4.com (krantz.zx2c4.com [192.95.5.69]) (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 9CB7F20738 for ; Sun, 30 Aug 2020 11:02:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=tomcsanyi-net.20150623.gappssmtp.com header.i=@tomcsanyi-net.20150623.gappssmtp.com header.b="XPvbzrf7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CB7F20738 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=tomcsanyi.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=wireguard-bounces@lists.zx2c4.com Received: by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 386ab4af; Sun, 30 Aug 2020 10:34:16 +0000 (UTC) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [2a00:1450:4864:20::429]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id 33e07421 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 30 Aug 2020 10:34:13 +0000 (UTC) Received: by mail-wr1-x429.google.com with SMTP id a17so2346616wrn.6 for ; Sun, 30 Aug 2020 04:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tomcsanyi-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=HNLSfMGUIkU/6jwIZbvcxBDOxXk5NwJIy9qjsSUGDMA=; b=XPvbzrf7lVXPRSFL127woexPgYEdVMQ9SEtjEA7xPu+o99zCpzJSCsIi4PviJiuF9K i0rZcRqLpkQL14QsKTbMgQh8pbPI9G1ppsL4m6/kzLFhiEL1cRUo9S/atCKVQIjs7apn xda9zFm2p873sNUoaYbPbB9TNS+QJ96nLWi6C9jacRej9APfNhTOsRXpSwshGpHqLCMy hpDrd/Tq4crqJipRXhkUBwgC5saC5WbjGcGCCU9vLR1xVFw4QssWlcckTTUWNgO8iUVS e/zbMoOPM/dRbCjq10jsStw1gojfKHarHrcoDJOQI8auX+Ro1xPu57TjJtbn0p3GP7JE kElA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=HNLSfMGUIkU/6jwIZbvcxBDOxXk5NwJIy9qjsSUGDMA=; b=SNEm6HLNZGXqbI537gqASNzBQtylVth+qSvVL8Ts3CUBhYB+3IFrS+NuT3ZVq4CQry pDveZdhSvVHvvkm2F54p82z4T2N0Sq0Oj4E3hgQMW7DNCuAwzW0XmkqnsrJacmSBUqJw jNcR+QYOPFpaHl3Pw0FN8LNiEysduOLecOycDdgIeUhFjwi6WrnTOzu4ZzbHu47JQHxW TZOPe57Y+I8m0n95vuU401FAVkSYmLMceKuhI7UgzZaZICRYEc3WaYVsb0BgutiOfKV/ oQf5aNCeJG2BGa1g+/Ud+tU16/J+vJa4riiaOiiYZhDYb9W3y/FObTHDLash2oGPytOG cHCw== X-Gm-Message-State: AOAM530pQy40zn6Z36k3L/WqEcpZLeH8MJL4VbXIlBm91aUzjHh99kYa c9AVbS81ceprOFqPm9E0EuPD1A== X-Google-Smtp-Source: ABdhPJwV7IAnfKenAeK519LuHfGDVF/ZymhMHruTh4rpW+ldZzWfHrafHf2Zl4Isz4DBYTKfhpdD6Q== X-Received: by 2002:adf:fec6:: with SMTP id q6mr6986055wrs.59.1598785315246; Sun, 30 Aug 2020 04:01:55 -0700 (PDT) Received: from [192.168.0.102] (84-236-3-135.pool.digikabel.hu. [84.236.3.135]) by smtp.gmail.com with ESMTPSA id z8sm6494383wmf.10.2020.08.30.04.01.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Aug 2020 04:01:54 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: "Tomcsanyi, Domonkos" Mime-Version: 1.0 (1.0) Subject: Re: AllowedIPs Date: Sun, 30 Aug 2020 13:01:53 +0200 Message-Id: <48E894EC-F4E2-4C11-A50D-D2E7D530D181@tomcsanyi.net> References: <001b01d67eb3$a7d0e7e0$f772b7a0$@bukn.net> Cc: Eric Light , wireguard@lists.zx2c4.com In-Reply-To: <001b01d67eb3$a7d0e7e0$f772b7a0$@bukn.net> To: Aaron Bolton X-Mailer: iPhone Mail (17G80) 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" Maybe using the ip command, e.g. ip link set dev wg0 up/down? Cheers, Domi > 2020. aug. 30. d=C3=A1tummal, 11:56 id=C5=91pontban Aaron Bolton =C3=ADrta: >=20 > =EF=BB=BFWhat would be best way to bring up and down the wireguard interfa= ce without using wg-quick=20 >=20 > -----Original Message----- > From: Eric Light =20 > Sent: 30 August 2020 10:01 > To: Aaron Bolton > Cc: wireguard@lists.zx2c4.com > Subject: Re: AllowedIPs >=20 > Ah yep, I haven't done that before, but Quagga has made many appearance on= this list... And you're right, that's pretty much the time when folks stop w= orking with wg-quick! :-D=20 >=20 > Good luck! >=20 > E >=20 > -------------------------------------------- > Q: Why is this email five sentences or less? > A: http://five.sentenc.es >=20 >> On Sun, 30 Aug 2020, at 20:56, Aaron Bolton wrote: >> Yes, this does thanks >>=20 >> I plan on using Quagga for BGP over WireGuard tunnels so I guess I=20 >> need to avoid wg-quick if that makes changes to the routing table and=20 >> firewall as I want to manage those my self >>=20 >>>> On 30 Aug 2020, at 00:16, Eric Light wrote: >>>=20 >>> =EF=BB=BFI believe it's both, in a way. >>>=20 >>> As far as wg is concerned, the AllowedIPs is effectively an ACL. =20 >>> Any traffic hitting your wireguard interface from an IP not within=20 >>> the AllowedIPs will either be dropped on decryption, or won't even=20 >>> be decrypted. (It's one of these, but I can't remember which) >>>=20 >>> On top of that, wg-quick interprets the AllowedIPs string and does other= things, such as adding appropriate network routing (the second part of your= guess), as well as modifying any client firewall rules to permit the traffi= c. >>>=20 >>> Hope this helps :) >>>=20 >>> E >>>=20 >>> -------------------------------------------- >>> Q: Why is this email five sentences or less? >>> A: http://five.sentenc.es >>>=20 >>>> On Sun, 30 Aug 2020, at 04:07, Aaron Bolton wrote: >>>> I=E2=80=99m trying to understand AllowedIPs better is it effectively a A= CL=20 >>>> that day what is allowed down the tunnel or is it mechanism to=20 >>>> configure what addresses get routed down the tunnel? >>>>=20 >>>> Thanks in advance >>>>=20 >>=20 >=20