[Touch-packages] [Bug 2004478] [NEW] systemd-networkd's dhcp4 client ignores local subnet routes

2023-02-01 Thread Tuetuopay
Public bug reported:

RFC3442 specifies option 121 (Classless Static Routes) that allow a DHCP
server to push arbitrary routes to a client. It has a Local Subnet
Routes section expliciting the behavior of routes with a null (0.0.0.0)
gateway.

Such routes are to be installed on the interface with a Link scope, to
mark them as directly available on the link without any gateway.

Networkd currently drops those routes, which is against the RFC, as
Linux has proper support for such routes.

This has been observed as broken on Ubuntu Jammy 22.04 LTS, but working
in previous LTS (Focall 20.04 and Bionic 18.04 tested).

1. Ubuntu release: 22.04.1 LTS
2. Systemd release: 249.11-0ubuntu3.6
3. Expected behavior: routes from DHCP option 121 with a gateway set to 0.0.0.0 
to be installed as "scope link"
4. Observed behavior: routes are silently dropped by systemd-networkd's dhcp 
client (actually logged with a debug level, effectively silently with the 
default configuration)

I wrote a fix that has been accepted in upstream systemd:
https://github.com/systemd/systemd/pull/26234, which applies cleanly to
the current package's sources obtained through apt-get source.

As this is a fix for something that is an actual regression, can it be
backported to Ubuntu 22.04's systemd tree?

Thanks.

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

-- 
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/2004478

Title:
  systemd-networkd's dhcp4 client ignores local subnet routes

Status in systemd package in Ubuntu:
  New

Bug description:
  RFC3442 specifies option 121 (Classless Static Routes) that allow a
  DHCP server to push arbitrary routes to a client. It has a Local
  Subnet Routes section expliciting the behavior of routes with a null
  (0.0.0.0) gateway.

  Such routes are to be installed on the interface with a Link scope, to
  mark them as directly available on the link without any gateway.

  Networkd currently drops those routes, which is against the RFC, as
  Linux has proper support for such routes.

  This has been observed as broken on Ubuntu Jammy 22.04 LTS, but
  working in previous LTS (Focall 20.04 and Bionic 18.04 tested).

  1. Ubuntu release: 22.04.1 LTS
  2. Systemd release: 249.11-0ubuntu3.6
  3. Expected behavior: routes from DHCP option 121 with a gateway set to 
0.0.0.0 to be installed as "scope link"
  4. Observed behavior: routes are silently dropped by systemd-networkd's dhcp 
client (actually logged with a debug level, effectively silently with the 
default configuration)

  I wrote a fix that has been accepted in upstream systemd:
  https://github.com/systemd/systemd/pull/26234, which applies cleanly
  to the current package's sources obtained through apt-get source.

  As this is a fix for something that is an actual regression, can it be
  backported to Ubuntu 22.04's systemd tree?

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2004478/+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


[Touch-packages] [Bug 2004478] Re: systemd-networkd's dhcp4 client ignores local subnet routes

2023-02-02 Thread Tuetuopay
Sure! Here is a quick test using a veth pair and dnsmasq:

ip link add veth0 up type veth peer name veth1
ip addr add 172.20.0.1/24 dev veth0
cat > /etc/netplan/60-veth1.yaml 

[Touch-packages] [Bug 2004478] Re: systemd-networkd's dhcp4 client ignores local subnet routes

2023-02-10 Thread Tuetuopay
Gentle ping? :)

-- 
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/2004478

Title:
  systemd-networkd's dhcp4 client ignores local subnet routes

Status in systemd package in Ubuntu:
  New

Bug description:
  RFC3442 specifies option 121 (Classless Static Routes) that allow a
  DHCP server to push arbitrary routes to a client. It has a Local
  Subnet Routes section expliciting the behavior of routes with a null
  (0.0.0.0) gateway.

  Such routes are to be installed on the interface with a Link scope, to
  mark them as directly available on the link without any gateway.

  Networkd currently drops those routes, which is against the RFC, as
  Linux has proper support for such routes.

  This has been observed as broken on Ubuntu Jammy 22.04 LTS, but
  working in previous LTS (Focall 20.04 and Bionic 18.04 tested).

  1. Ubuntu release: 22.04.1 LTS
  2. Systemd release: 249.11-0ubuntu3.6
  3. Expected behavior: routes from DHCP option 121 with a gateway set to 
0.0.0.0 to be installed as "scope link"
  4. Observed behavior: routes are silently dropped by systemd-networkd's dhcp 
client (actually logged with a debug level, effectively silently with the 
default configuration)

  I wrote a fix that has been accepted in upstream systemd:
  https://github.com/systemd/systemd/pull/26234, which applies cleanly
  to the current package's sources obtained through apt-get source.

  As this is a fix for something that is an actual regression, can it be
  backported to Ubuntu 22.04's systemd tree?

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2004478/+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


[Touch-packages] [Bug 2004478] Re: systemd-networkd's dhcp4 client ignores local subnet routes

2023-02-10 Thread Tuetuopay
Thanks for the head's up!

-- 
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/2004478

Title:
  systemd-networkd's dhcp4 client ignores local subnet routes

Status in systemd package in Ubuntu:
  New

Bug description:
  RFC3442 specifies option 121 (Classless Static Routes) that allow a
  DHCP server to push arbitrary routes to a client. It has a Local
  Subnet Routes section expliciting the behavior of routes with a null
  (0.0.0.0) gateway.

  Such routes are to be installed on the interface with a Link scope, to
  mark them as directly available on the link without any gateway.

  Networkd currently drops those routes, which is against the RFC, as
  Linux has proper support for such routes.

  This has been observed as broken on Ubuntu Jammy 22.04 LTS, but
  working in previous LTS (Focall 20.04 and Bionic 18.04 tested).

  1. Ubuntu release: 22.04.1 LTS
  2. Systemd release: 249.11-0ubuntu3.6
  3. Expected behavior: routes from DHCP option 121 with a gateway set to 
0.0.0.0 to be installed as "scope link"
  4. Observed behavior: routes are silently dropped by systemd-networkd's dhcp 
client (actually logged with a debug level, effectively silently with the 
default configuration)

  I wrote a fix that has been accepted in upstream systemd:
  https://github.com/systemd/systemd/pull/26234, which applies cleanly
  to the current package's sources obtained through apt-get source.

  As this is a fix for something that is an actual regression, can it be
  backported to Ubuntu 22.04's systemd tree?

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2004478/+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


[Touch-packages] [Bug 2004478] Re: systemd-networkd's dhcp4 client ignores local subnet routes

2023-04-14 Thread Tuetuopay
Thank you so much to everyone involved :)

-- 
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/2004478

Title:
  systemd-networkd's dhcp4 client ignores local subnet routes

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Jammy:
  Fix Released
Status in systemd source package in Kinetic:
  Fix Released

Bug description:
  [Impact]

  If a DHCP server pushes down a local subnet route with a null gateway,
  the systemd-networkd DHCP client does not correctly install the route.
  Instead, the route is ignored.

  [Test Plan]

  Taken from
  https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2004478/comments/2.

  * Start a Jammy LXD container:

  $ lxc launch ubuntu-daily:jammy jammy
  $ lxc exec jammy bash

  * Create a veth pair:

  $ ip link add veth0 up type veth peer name veth1
  $ ip addr add 172.20.0.1/24 dev veth0
  $ cat > /etc/netplan/60-veth1.yaml