Source routing configuration is not conditional

Bug #1829155 reported by Dmitrii Shcherbakov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Medium
Unassigned

Bug Description

As of 2.6 the source routing functionality will help end hosts with using multiple default gateways and routing response traffic out the same interface it has been received on.

https://github.com/maas/maas/commit/442d47053e6f96bf5a94904f16968e9e5e5c965c
https://github.com/maas/maas/commit/45f2632b8164f105eab69baa88ee401cf0f68b56

Example netplan (routing-policy is only added for interfaces that have an address with a subnet that has a default gateway defined in MAAS):
https://paste.ubuntu.com/p/rm9wD949G2/

This functionality is not conditional though, so it is not possible to disable this on a per-interface basis for some hosts.

Tags: cpe-onsite
Revision history for this message
Blake Rouse (blake-rouse) wrote :

What is the use-case for this to be configurable?

Changed in maas:
status: New → Incomplete
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Dimitrii,

As per the spec and agreements of previous cycle, the ability to disable this per interface was not part of the roadmap.

That said, ti wouldn't seem that having a per interface way of doing this make sense, rather this would make better sense to do it per subnet?

Changed in maas:
milestone: none → next
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Hi {Andres, Blake},

I think doing it on a per-subnet basis is a bit restrictive because there may be different types of hosts attached to the same subnet. For example, a host deployed by MAAS may act as a (software) router.

Other hosts would use it as a default gateway but the router host itself wouldn't need to have a gateway configured for that subnet and it would need to avoid policy rules to be configured on it. The router will of course have rp_filter set to 0 globally on a per-interface basis via some other tooling or cloud-init.

root@OpenWrt:~# sysctl -a | grep rp_filter | head -n2
net.ipv4.conf.all.arp_filter = 0
net.ipv4.conf.all.rp_filter = 0

Example user story: https://serverfault.com/q/816393

The primary use-case for the feature is still end hosts and the default behavior makes sense but I think we have to leave the room for the above as well.

Changed in maas:
status: Incomplete → New
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Okay. Thank you for the explanation and use-case.

Changed in maas:
status: New → Triaged
importance: Undecided → High
Changed in maas:
milestone: next → none
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

We moved this feature request to the internal backlog for future consideration.

summary: - [2.6-beta3] source routing configuration is not conditional
+ Source routing configuration is not conditional
Changed in maas:
importance: High → Medium
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.