From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 78885550 for ; Mon, 14 Nov 2016 02:57:26 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 66057f90 for ; Mon, 14 Nov 2016 02:57:26 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id b972eeae (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Mon, 14 Nov 2016 02:57:26 +0000 (UTC) Received: by mail-lf0-f41.google.com with SMTP id o141so48796269lff.1 for ; Sun, 13 Nov 2016 18:59:58 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <215ed362-725f-a236-d236-bc31bf508005@mib-infotech.co.nz> References: <27cccef1-06d9-74b3-5b8a-912850119a76@cumulusnetworks.com> <20161113232813.28926-1-Jason@zx2c4.com> <215ed362-725f-a236-d236-bc31bf508005@mib-infotech.co.nz> From: "Jason A. Donenfeld" Date: Mon, 14 Nov 2016 03:59:55 +0100 Message-ID: To: John Huttley Content-Type: text/plain; charset=UTF-8 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: , 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