Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Jordan DeBeer <debee1jp@gmail.com>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: NetworkManager Plugin
Date: Wed, 14 Feb 2018 11:58:39 -0500	[thread overview]
Message-ID: <CAFi5oX6LM+A=jbPmhffc4wT+pKmMg8xi=2ebSMg=s7Qg2AY_sw@mail.gmail.com> (raw)
In-Reply-To: <CAHmME9qVoBkdu35n4aGdZ8nCH6ONZhcGb=WCGx2LGbyHgJMTSw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2195 bytes --]

Hello Max,

I went ahead and tested this on Fedora 27 w/ NetworkManager 1.8.6-1.fc27
and was able to get it working.  A few things I noticed:

Starting the VPN with SELinux enabled results in a number of alerts.
Mostly for the sysctl source process.  This is to be expected as you
mentioned you were testing on Arch.  If this ever ends up getting packaged
for Fedora the policies can probably be added to the RPM.

The DNS field under Identity does not currently function.  I am not sure
how you want to handle this field as NetworkManager has their own DNS field
under the IPv4 tab in the GUI.

The Endpoint section of the GUI only accepts IP addresses and not FQDNs.

and the last thing I noticed: the Private Key section is required.  This
breaks functionality if you were to have your private key stored in a
password manager.  This is solvable by just pasting a properly formatted
key (I just used my public key) into the field and adding a Post Up script
to grab the private key string.

I am going to keep playing around with this and possibly work on packaging
it into an RPM.

This adds quite a bit of value to Wireguard imo so glad to see you worked
on this.  Thank you!

Cheers,
Jordan DeBeer

On Wed, Feb 14, 2018 at 10:28 AM, Jason A. Donenfeld <Jason@zx2c4.com>
wrote:

> Hey Max,
>
> This is wonderful news. I'm happy to work with you to make sure this
> comes out perfectly, and maybe when it's finished we can submit it
> upstream to NetworkManager, similar to how systemd-networkd now has
> WireGuard support built-in.
>
> The biggest hurdle I currently see is entirely removing the dependency
> on wg-quick and wg, and talking Netlink yourself to the kernel, just
> like systemd-networkd does. It shouldn't be too hard to adopt the
> libmnl-based code in wg(8) to be suitable for your usage; I can assist
> with this. In general, the fwmark/routing logic of wg-quick should
> probably be done in a NetworkManager-centric way, which means not
> using wg-quick.
>
> Looks like things are off to a great start!
>
> Jason
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #2: Type: text/html, Size: 2889 bytes --]

  reply	other threads:[~2018-02-14 16:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-14 15:05 Max Moser
2018-02-14 15:28 ` Jason A. Donenfeld
2018-02-14 16:58   ` Jordan DeBeer [this message]
2018-02-15  0:34     ` Maximilian Moser
2018-02-15 14:07       ` Jason A. Donenfeld
2018-02-15 14:35         ` Maximilian Moser
2018-02-15 14:46           ` Jason A. Donenfeld
2018-02-15 14:57             ` Maximilian Moser
2018-02-15 20:15               ` Maykel Moya
2018-02-16  5:33                 ` Jason A. Donenfeld
2018-02-16 10:43                   ` Max Moser
2018-02-16 15:07                   ` Manuel Schölling
2018-02-16 21:00                     ` Javier Arteaga
2018-02-14 19:47   ` Daniel Kahn Gillmor

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='CAFi5oX6LM+A=jbPmhffc4wT+pKmMg8xi=2ebSMg=s7Qg2AY_sw@mail.gmail.com' \
    --to=debee1jp@gmail.com \
    --cc=Jason@zx2c4.com \
    --cc=wireguard@lists.zx2c4.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).