connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Grant Erickson <gerickson@nuovations.com>
To: Christian Hewitt <christianshewitt@gmail.com>
Cc: "daniel antoine" <univac55@gmail.com>,
	connman@lists.linux.dev, "Zoltán Böszörményi" <zboszor@gmail.com>
Subject: Re: connman-vpn does'nt work with wireguard
Date: Wed, 24 Apr 2024 09:14:38 -0700	[thread overview]
Message-ID: <9E0CE3E4-BE47-4C6E-B102-570F8DB593E2@nuovations.com> (raw)
In-Reply-To: <5D35F841-0063-422D-B6E6-F2FFBAFFF332@gmail.com>

+Zoltán Böszörményi

On Apr 24, 2024, at 7:50 AM, Christian Hewitt <christianshewitt@gmail.com> wrote:
>> On 24 Apr 2024, at 6:06 PM, Grant Erickson <gerickson@nuovations.com> wrote:
>> On Apr 23, 2024, at 11:05 PM, daniel antoine <univac55@gmail.com> wrote:
>>> I have installed wireguards-tools on my system and I am able to
>>> connect to a VPN server friend with the command wg-quick up 'name of
>>> the interface' . The configuration file in /etc/wiregard has a host
>>> with a FQDN as blabla.com  . It also works if I replace the host by an
>>> IP address (IPv4 or IPv6).
>>> 
>>> I have adapted the configuration file in /var/lib/connman-plugin like vpn.config
>>> 
>>> [provider_wireguard]
>>> Type = WireGuard
>>> Name = vpn
>>> Host = balabla.com
>>> WireGuard.Address = 10.0.6.5 /24
>>> WireGuard.PrivateKey = xxxx
>>> WireGuard.PublicKey = zzzz
>>> WireGuard.AllowedIPs = 10.0.6.0/24
>>> WireGuard.EndpointPort = 51822
>>> WireGuard.PersistentKeepalive = 25
>>> 
>>> My display environment is enlightenment. I see the connection "vpn" in
>>> the connection window. When I click on it , wg show vpn displays the
>>> connection to the server, a ip a command shows an interface wg0  but
>>> it drops after some seconds. I can ping the server 10.0.6.1 until it
>>> drops.
>>> 
>>> If I replace the FQDN by an IP address in this file , for an IPv4
>>> address it makes the wifi connection shutdown and returns. My laptop
>>> is connected by wifi to my livebox. If I put an IPv6 address it does
>>> nothing, no interface wg0 is created.
>>> 
>>> connmanctl shows the vpn service with the command services and the vpn
>>> connection is present in vpnconnection
>>> 
>>> My first question is why connman does not accept an IP address IPv4 or
>>> IPv6 . I have compiled wiregard-tools with WITH_BASHCOMPLETION=yes
>>> and WITH_WGQUICK=yes
>>> 
>>> After why the connection drops
>> 
>> Daniel:
>> 
>> I wonder if you are running into the same issue as Christian Hewitt <christianshewitt@gmail.com> in the thread "RFC: There Are No Routes for Non-default Services
>> “: https://lore.kernel.org/connman/FAB1AC37-E077-4067-B245-5CE862CB22B7@gmail.com/
> 
> The distro I work on (LibreELEC) is bundling this patch to revert the change: 
> 
> https://github.com/LibreELEC/LibreELEC.tv/commit/998f2bcfd5849e3eecda6f753ff5bab68a847aea
> 
> This unfortunately means we’re unable to bump ConnMan until things are resolved/adapted upstream.

Adding Zoltán Böszörményi <zboszor@gmail.com>, the original patch submitter of 9eb1772d31b6 for visibility.

Best,

Grant

  parent reply	other threads:[~2024-04-24 16:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-24  6:05 connman-vpn does'nt work with wireguard daniel antoine
2024-04-24 14:06 ` Grant Erickson
2024-04-24 14:50   ` Christian Hewitt
2024-04-24 15:20     ` Grant Erickson
2024-04-24 16:14     ` Grant Erickson [this message]
2024-04-24 18:22       ` daniel antoine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9E0CE3E4-BE47-4C6E-B102-570F8DB593E2@nuovations.com \
    --to=gerickson@nuovations.com \
    --cc=christianshewitt@gmail.com \
    --cc=connman@lists.linux.dev \
    --cc=univac55@gmail.com \
    --cc=zboszor@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).