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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,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 034D8C07E96 for ; Thu, 15 Jul 2021 06:26:05 +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 A1B2F61260 for ; Thu, 15 Jul 2021 06:26:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A1B2F61260 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=spam-free.eu 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 0aa7e372; Thu, 15 Jul 2021 06:26:01 +0000 (UTC) Received: from s2.spam-free.eu (s2.spam-free.eu [195.5.121.125]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id b7481be9 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO) for ; Thu, 15 Jul 2021 06:26:00 +0000 (UTC) Received: from [192.168.129.136] (dslb-094-220-252-156.094.220.pools.vodafone-ip.de [94.220.252.156]) by s2.spam-free.eu (Postfix) with ESMTPSA id 0F27D1C0D00 for ; Thu, 15 Jul 2021 08:26:00 +0200 (CEST) From: Chris Subject: Re: Android: more than one tunnel To: wireguard@lists.zx2c4.com References: <296f17d0-3f0b-6021-7bb3-4b4bf576f6c7@spam-free.eu> Message-ID: <98318db6-2c3d-82a7-4eea-5e8a6b1e313e@spam-free.eu> Date: Thu, 15 Jul 2021 08:25:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: de-DE 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" Hi Eric, thanks for you thoughts. However, this is not the case. I have the same setup on many machines and different OSes. Apart from that: you can still have many tunnels running with overlapping routeing ranges. What will happen within the routeing tables for the routeing decision is a different question. On Android switching on one tunnel just switches off the other. I fear, Simon's reply is correct: " ... There’s only one active service per user or profile. Starting a new service, automatically stops an existing service. ... " So, unfortunately, that would be an unavoidable limitation of Android. Chris On 15/07/2021 00:09, Eric Light wrote: > Hi Chris! > > I don't have any experience with the Android implementation specifically... > but most likely, your two tunnels have overlapping AllowedIPs ranges. When > this happens, bringing up the second interface will override the routing > created by the first interface. > > Most commonly, this happens when someone configures both interfaces with > AllowedIPs = 0.0.0.0/0. To fix this problem, make sure there's no overlap of > AllowedIPs in your tunnel definitions. > > I hope this helps :) > > (my apologies if the problem is something Android-specific that I don't know > about) > > E > > -------------------------------------------- > Q: Why is this email five sentences or less? > A: http://five.sentenc.es > > On Wed, 14 Jul 2021, at 17:49, Chris wrote: >> I have two distinct tunnels defined on Android. >> However, I can only toggle between the two. I cannot have both activated at the >> same time. >> I need both connections. >> Am I missing anything? >> Why not several tunnels with several wg servers??? >> Why is this being prevented? >> >> BR >> Chris >> >>