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.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 02C4DC433E1 for ; Thu, 6 Aug 2020 14:18:37 +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 D7E6523121 for ; Thu, 6 Aug 2020 14:18:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pa7+fB42" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D7E6523121 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 56d7c9a6; Thu, 6 Aug 2020 13:53:43 +0000 (UTC) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [2a00:1450:4864:20::32a]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id f503127b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Thu, 6 Aug 2020 10:57:56 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id f18so6357772wmc.0 for ; Thu, 06 Aug 2020 04:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:autocrypt:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=GJy2g6KZBojggoW14GGwXEGl+0b+Nqi0x5h2T0Cg1rI=; b=pa7+fB42hHn8QejTHDTDV4yrqcDfAU5+CEnvhpqhufeM2XWRNTf3Bo/UuD6L6E+PFW iQybzcg1+3YnSgal73uAFx0Ug3UyBUnvA9IgDaKZOoIdMNKhjFcjjG9nCLxdccJ+XZ4q L2dMJGgy8CsUxPsG/t45V7DguD2/lfpMnm7oAy7kYfsbGGhPh6Up7BIVl3MTmu91j0AR d2eUGEmjKuAHhizPkIdCZ4ErFXeDXH0RsY+FOCTIfIu4eI3WdVl8bmIPUk8ayME16pKj nM9jepdFT/4gvWNywzsqt/faF0ncJTVkaKlKoge4PqqoJn2ckEsx6RfFEV7rQRQtvueS zlZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:autocrypt:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=GJy2g6KZBojggoW14GGwXEGl+0b+Nqi0x5h2T0Cg1rI=; b=ihQt9Yv+fTJUE/SEVS0z8erB1GOcpJZ9LK1LIKoPoCZnKe1dtQmV0GBq+4ayerkjOt QkhU+TwFj0DQt78WhJxKxOMPK5nLliXxlXe1C6n+sl+Fzal06d6x0MkiIcnn033zqwxM UOpLUSvHNMW6mWlqzsdcQWUrMFacpMUobWcpBkbs4YeJwofMP4q9bCC8yPsM9UD2oqW7 y1MmRNbiADkKXUqWqVgNdARtok806YQh1fx54mLPikKEw5K+xFqabzko3/yGohF4Va8v Qs4NGsFHzJD2CxEmnV9B230CpDtl5GoCeU7jlrQFNe4+q14X+woMlWFfb078uTdXJC1i 4DFw== X-Gm-Message-State: AOAM530HEQoPTfmbMnCgDLX95kdhX6PmWI9athnyMMC5+RdepEOnZbeh bkrOx55ERmX1Ihwdx+WIHU0gBWgJ X-Google-Smtp-Source: ABdhPJwHfzoh/dUiV/wI7UT2Pti5B8+CMGByyZGSCZr5mWzOVClrAZIrxGQlEBMuhlv1MES3qduZsQ== X-Received: by 2002:a1c:b6d4:: with SMTP id g203mr7873627wmf.92.1596712951022; Thu, 06 Aug 2020 04:22:31 -0700 (PDT) Received: from [192.168.20.100] (20.157.63.94.rev.vodafone.pt. [94.63.157.20]) by smtp.gmail.com with ESMTPSA id 128sm6045363wmz.43.2020.08.06.04.22.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Aug 2020 04:22:30 -0700 (PDT) To: wireguard@lists.zx2c4.com From: Mauro Santos Subject: Android App not setting DNS when allowed IPS not 0.0.0.0/0 Autocrypt: addr=registo.mailling@gmail.com; prefer-encrypt=mutual; keydata= mQINBFHygjwBEAC6LfDt7DeP8/Gu+TpILDYBww8KhRpNlpcpBFjSPPDEPyVvF+pJ7p8eXcCl nFFv4f4rxoP+f3vegZl8X8t1nwbVyVKqiZSLwZADPpW5wsaMvkz4fUIn3wHvz+V6Ind6jOo1 D8PwYs/VV+eGqJUd7UKbQkKw3yV1loiC87qqBVrd/oSqJtLJqc0SJZS/kUgHqdnsAWijU+dE u+7K/cWO2LZBxzZTquwia8T2cj1LMddjb1Du7LlsmmnB9obX6e7nZJDM4tj0iZciyDgRCO6U 8ciedOs+O3fl+MqkB3vXU/nQH+uwLH5x5wBeo1TuSfKyFDynuNGD2Idvnp0sGZbHxK7SJht4 QZwrp2V5Uot9nHjVe77axVjh/OFg6LA7+vAd96tl5jtk3+bQb1evvOU0zfhL93v9mRExKakj EauZmTlQU4rfEty5QBk+87k/XhAtrF/ua0kvGAEchL6IGvTJUbR7GXiOKOa/ei5GAwzhKtgv X+Qj3z1YwK0NjDKFM27rIGv5Ko1YwQGad3mUIRqntfebhZ6p0F5/MbRZRd8MA2qyFLswKHlB UzyB756+gBrujI5ePVj8N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AeGTSZIFfxj3VE4kfjhXyJIPSESIj1USYrWHbmGpblH2X e/JQRAJ/ld+wd/9y5ICh2Y68Cgwoh5Zc648GqQYJtBIqUfrGR950S+B4ViuXXnxuixTUZ+yJ g02PxXQZafuc2Fgg8t9M4ANjjiQ1w92ufLh2BFs5Jm2G4QEPS5O19WyYTSdGKzvaq2Rl/Nmt hJqc Message-ID: Date: Thu, 6 Aug 2020 12:22:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB-large Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 06 Aug 2020 15:53:39 +0200 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" Hello, Like the subject says I have found that when I'm not routing all traffic through the vpn then my dns setting seems to be ignored (tested with nsleaktest.com). If I route all traffic through the vpn then it works as expected. home network: 192.168.20.0/24 vpn "server" is at 192.168.20.10 and internal vpn address is 10.4.4.1, where I have the dns server running and a few other services accessible only though the vpn. "server" config (with systemd-networkd) wireguard.netdev: [NetDev] Name = wireguard Kind = wireguard Description = WireGuard VPN [WireGuard] ListenPort = 4911 PrivateKey = ... #Publickey = ... # Phone [WireGuardPeer] PublicKey = ... AllowedIPs = 10.4.4.3/32 wireguard.network [Match] Name = wireguard [Network] Address = 10.4.4.1/24 "client" config (android vpn app): [Interface] name: msi public key: ... addresses: 10.4.4.3/32 dns servers: 10.4.4.1 [Peer] public key: ... allowed ips: 10.4.4.0/24 endpoint: 192.168.20.10:4911 The problem also persists if I access the vpn from outside my internal network and is "fixed" if I change the allowed ips from 10.4.4.0/24 to 0.0.0.0/0. >From what I have searched, other people with similar problems had a configuration problem, but I don't think it is the case here since my dns servers in on the same machine as other services and I can access the other services without problems. Any ideas on what the problem could be? I have checked the log on the android app but none of the messages in the log seems to indicate any problem, should I be looking for some warning/error messages in particular? -- Mauro Santos