Public bug reported:

systemd/disco 240 shipped with Ubuntu 19.04 beta does not set endpoints
for [WireguradPeer] properly.

This regression was introduced in v241 and merged into v240.
systemd 241 doesn't set wireguard peer endpoint
https://github.com/systemd/systemd/issues/11579

Revert of the regression was landed on v240 stable branch
https://github.com/systemd/systemd-stable/pull/39

1)2) confirmed with,

systemd/disco 240-6ubuntu5 amd64

3)
put a netdev file /etc/systemd/network/wg0.netdev

---
[NetDev]
Name=wg0
Kind=wireguard

[WireGuard]
PrivateKey=**************
ListenPort=51820

[WireGuardPeer]
PublicKey=*************
AllowedIPs=10.0.0.0/8
Endpoint=192.168.1.1:51820
----

and run
---
# systemctl restart systemd-networkd
# wg show wg0

interface: wg0
  public key: *****************
  private key: (hidden)
  listening port: 51820

peer: *****************
  allowed ips: 10.0.0.0/8
----

4) 
the last command should print remote endpoint address.
---
# wg show wg0

interface: wg0
  public key: *****************
  private key: (hidden)
  listening port: 51820

peer: *****************
  endpoint: 192.168.1.1:51820
  allowed ips: 10.0.0.0/8
----

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: disco systemd-networkd

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1825378

Title:
  systemd-networkd doesn't set wireguard peer endpoint

Status in systemd package in Ubuntu:
  New

Bug description:
  systemd/disco 240 shipped with Ubuntu 19.04 beta does not set
  endpoints for [WireguradPeer] properly.

  This regression was introduced in v241 and merged into v240.
  systemd 241 doesn't set wireguard peer endpoint
  https://github.com/systemd/systemd/issues/11579

  Revert of the regression was landed on v240 stable branch
  https://github.com/systemd/systemd-stable/pull/39

  1)2) confirmed with,

  systemd/disco 240-6ubuntu5 amd64

  3)
  put a netdev file /etc/systemd/network/wg0.netdev

  ---
  [NetDev]
  Name=wg0
  Kind=wireguard

  [WireGuard]
  PrivateKey=**************
  ListenPort=51820

  [WireGuardPeer]
  PublicKey=*************
  AllowedIPs=10.0.0.0/8
  Endpoint=192.168.1.1:51820
  ----

  and run
  ---
  # systemctl restart systemd-networkd
  # wg show wg0

  interface: wg0
    public key: *****************
    private key: (hidden)
    listening port: 51820

  peer: *****************
    allowed ips: 10.0.0.0/8
  ----

  4) 
  the last command should print remote endpoint address.
  ---
  # wg show wg0

  interface: wg0
    public key: *****************
    private key: (hidden)
    listening port: 51820

  peer: *****************
    endpoint: 192.168.1.1:51820
    allowed ips: 10.0.0.0/8
  ----

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1825378/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to