From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: john@mib-infotech.co.nz Received: from mail-pg0-f46.google.com (mail-pg0-f46.google.com [74.125.83.46]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 4c5371c2 for ; Mon, 14 Nov 2016 03:07:40 +0000 (UTC) Received: by mail-pg0-f46.google.com with SMTP id f188so48220990pgc.3 for ; Sun, 13 Nov 2016 19:10:12 -0800 (PST) Return-Path: To: "Jason A. Donenfeld" References: <27cccef1-06d9-74b3-5b8a-912850119a76@cumulusnetworks.com> <20161113232813.28926-1-Jason@zx2c4.com> <215ed362-725f-a236-d236-bc31bf508005@mib-infotech.co.nz> From: John Huttley Message-ID: Date: Mon, 14 Nov 2016 16:10:06 +1300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Cc: WireGuard mailing list Subject: Re: [WireGuard] Debugging AllowedIps List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Aha, Yes the dmesg command has the debug output. and the solution was to put the explicit /32 for the client on the host not the /24 and 0.0.0.0/0 on the client. Thanks, John On 14/11/16 15:59, Jason A. Donenfeld wrote: > On Mon, Nov 14, 2016 at 3:28 AM, John Huttley wrote: >> I'm using gentoo x64. debug USE is enabled > After recompiling with USE=debug, you'll need to remove and then > insert the module: > > # rmmod wireguard > # modprobe wireguard > > If that doesn't do it, then it means you have dynamic debugging > enabled in your kernel, in which case you'll have to turn on debug > messages via: > > # echo "module wireguard +p" >/sys/kernel/debug/dynamic_debug/control > >> Nothing but the module startup in /var/log/dmesg > A better more up to date source is generally the output of the `dmesg` command. > >> I start the server like this > I assume you're going for a classic client/server topology, in which > the server routes internet traffic. Usually in this case you want > something like: > > -- Server -- > # ip addr add 192.168.1.254/24 dev wg0 > wg0.conf: > [Peer] > PublicKey = ABCD > AllowedIPs = 192.168.1.20/32 > [Peer] > PublicKey = DCBA > AllowedIPs = 192.168.1.21/32 > [Peer] > PublicKey = ABAB > AllowedIPs = 192.168.1.22/32 > > -- Client -- > # ip addr add 192.168.1.20/24 dev wg0 > wg0.conf: > [Peer] > PublicKey = EEEG > AllowedIPs = 0.0.0.0/0