As of MAAS 2.6 MAAS will provide source routing configuration to machines to make them send data out the same interface the traffic was received on.
Specifically, for responses it will work for TCP sockets bound to a specific address or 0.0.0.0 and for UDP sockets bound to specific addresses (not 0.0.0.0).
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 information needs to be propagated to LXD containers and KVMs created by Juju machine agents if they are associated with relevant spaces.
Subscribed field critical.