[Bug 1724666] Re: source-based routing
Mathieu Trudel-Lapierre
mathieu.tl at gmail.com
Fri May 25 18:01:18 UTC 2018
This has been fixed upstream and in ubuntu 18.04:
netplan.io (0.34) bionic; urgency=medium
* New release 0.34 (LP: #1754019):
* Implement "optional: true" to correctly write systemd network definitions
with "RequiredForOnline=false", so that these networks do not block boot.
(LP: #1664844)
* Implement 'help' as a subcommand of any netplan command, so that running
'netplan * help' always returns some helpful information. (LP: #1748629)
* Reinstate snap support for dealing with the NetworkManager snap.
(LP: #1747714)
* Added bash completion. (LP: #1749869)
* Implement 'netplan ip leases': allows users to retrieve lease information
for the backend in use; to query for custom DHCP options.
* Don't silently break bridge-priority; fix it instead. (LP: #1752162)
* Miscellaneous coverage, linting, and fuzzing fixes.
* Refactor subcommands into separate source files, automate command loading
and various code cleanups.
* Disable "ifupdown-migrate"; which is incomplete and thus risks breaking
systems. Better iterate over it without showing it as a viable option.
* Add better routing support, implement initial routing policy support.
- Add 'on-link' support. (LP: #1735193)
* debian/control:
- Renamed source and "real" binary to netplan.io.
- Added a transitional package for nplan.
- Updated Vcs-* fields to point to the Github project we now use.
- Updated Standards-Version, debhelper.
* debian/compat: bump to debhelper compat level 11.
* debian/copyright: Update Format: field for https.
* debian/netplan.io.install: obligatory file to install files.
* debian/source/format: now we're 3.0 native, for reals.
Policy-routing is available, for the most part; and at least to fully support the example provided in the original description.
** Changed in: netplan
Status: New => Fix Released
** Also affects: netplan.io (Ubuntu)
Importance: Undecided
Status: New
** Changed in: netplan.io (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1724666
Title:
source-based routing
Status in netplan:
Fix Released
Status in netplan.io package in Ubuntu:
Fix Released
Bug description:
Currently use a short script in if-up.d as follows:
#!/bin/sh
set -e
if [ "$METHOD" = loopback ]; then
exit 0
elif [ "$METHOD" = dhcp ]; then
exit 0
elif [ "$METHOD" = static ]; then
if [ "$IF_GATEWAY" ]; then
echo "exiting..."
exit 0
fi
fi
IF_GATEWAY="$(echo "$IF_ADDRESS" | cut -d. -f1-3).254"
ip route flush table "$IFACE"
ip route add default via "$IF_GATEWAY" table "$IFACE"
ip rule del lookup "$IFACE" || true
ip rule add from "$IF_ADDRESS" lookup "$IFACE"
Basically, if the interface is a loopback, dhcp, or already has a default gateway, it does nothing. For any other interface, it adds a default route to the route table causing all responses to inbound traffic to use the same interface to respond on. This is for use in multi-homed environments. All I have seen in netplan is to add a static route which ends up in the default routing table. Obviously that won't work in multi-homed, as you would end up with multiple default routes and asymmetric routing.
To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1724666/+subscriptions
More information about the foundations-bugs
mailing list