Hello, Community!
VyOS development in November was focused on producing 1.4.5-S1 and 1.5.1-S1 security releases, but there are lots of changes in the rolling release as well, including the long-awaited fully predictable network interface naming mechanism that eliminates the need for hw-id settings in the config and thus makes configuration files portable between machines, as a nice side effect.
Apart from that, there are multiple bug fixes and a few small features.
Network interface naming stability was a sore topic in VyOS for a long time. Thankfully, it wasn't a frequent problem, but when it did happen, its effects could be disastrously bad. The worst part was that it was difficult to predict when it could happen, and some users unexpectedly ended up with broken configurations after upgrades or hardware changes.
The original method of mapping names from the configuration file, such as eth0, to physical devices was to match the hw-id option to the card with that hardware MAC address.
That caused two problems. First, the fact that NIC initialization in the kernel is not a fully predictable process could interfere with the mapping and cause naming troubles. Second, copying a configuration file from one machine to another without removing hw-id options was guaranteed to fail because the new machine wouldn't have the same MAC addresses, and the interface supposed to be named eth0 would never keep that name on the new machine.
The first step towards preventing unexpected NIC name changes on boot was to use hardware slot-based mapping for NICs that could not be conclusively mapped to any interface present in the configuration file with a hw-id option.
Now we made the final move away from naming based on MAC addresses. After [PR #5479], there is no hw-id option in interface configurations anymore, so configuration files are finally portable between machines.
The new system tries to use the most stable udev property it can find. Whenever possible, it uses onboard names or firmware slots that never change even if PCI renumbering occurs. It guarantees that if you replace a card in the same slot, it will keep its original name, and that removing a card from a slot and later adding a new card to a different slot will not take the original name.
Any testing of this feature is welcome! Note that at the moment, there is no way to easily rename a network interface without editing the JSON file with mappings by hand, but we plan to provide commands for that in the future.
OSPF parameters rfc1583-compatibility is now renamed to compatible rfc1583, in line with other options that were already grouped under the compatible subtree (T9606).
Configuration node values larger than 8KB now cause errors immediately rather than silently failing to load at the next reboot (T9623).
IPoE server now provides lease time settings: set service ipoe-server <lease-time N|max-lease-time N|renew-time N|rebind-time N> (T9289).
Prometheus now supports VPP metrics; you can configure them under set service monitoring prometheus vpp-exporter (T8382).
add system image now verifies secure boot signatures and prevents installation of unsigned images if UEFI secure boot is enabled (T9496).
Security
This month we have conducted a security audit of the VyOS codebase using one of the frontier models. To our relief, it didn't yield any new remote code execution vulnerabilities or anything else that would trigger an emergency security release.
However, it did find some issues we overlooked that will become important when we officially introduce operator-level users as a non-experimental security feature, and we will need to hide secret data from unprivileged users.
Here are the fixes in that series we have made already:
The LDAP password from web proxy settings is now passed to Squid in a file rather than a command-line option, so it's no longer visible in the process command line in /proc (T9566).
InfluxDB tokens are now passed in files not readable for unprivileged users (T9569).
Commands that perform HTTP downloads no longer send basic auth credentials to other hosts after redirects (T9568).
HTTP API server no longer writes any sensitive information to the world-readable /tmp/ directory (T9588).
For a long time, the commit-confirm command in VyOS had an implicit assumption that all commits are fast and complete in a negligible amount of time compared to the confirmation timer (ten minutes by default). The confirmation timer started the moment the user entered the commit-confirm command, so the time until an automatic revert was counted from the start of the commit, not from the moment the configuration was fully applied.
Unfortunately, that assumption is not always true. Despite our efforts to make every commit fast, there are still cases when a commit with a large amount of changes can take minutes. That assumption is especially dangerous when the commit-confirm action is set to reload rather than hard reboot (set system config-management commit-confirm action reload). That could lead to situations where commit-confirm 1, for example, would attempt to revert the configuration to the previous revision while the commit was in progress, which was guaranteed to fail and leave the system in an inconsistent state.
Now the time starts ticking from the moment when the commit is finished, so this should no longer be a problem. The behavior for the case when the commit-confirm action is set to reboot is unchanged as of now. That is not an excuse to tolerate slow commits, of course: we'll keep working to make even large commits much faster than they are now.
Syslog servers identified by domain names rather than IP addresses (like set system syslog remote syslog.example.net vrf MGMT) work correctly now (T9336).
set vpn pptp remote-access ppp-options mppe <require|prefer|deny> option is no longer silently ignored (T9462).
VPP netlink buffer is set to the right size to avoid overflow and Linux-CP synchronization errors (T9484).
The CGNAT option validation now provides clearer error messages for multiple incorrect configurations (T9473).
generate pki openvpn shared-secret install correctly strips the key header now (T9149).
Trying to delete a network interface that is used as a mirror or redirect target for another interface correctly leads to a commit error now (T9491).
Mirroring to tunnel interfaces works correctly again and no longer causes configuration loading errors at boot time (T6393).
The migration script for wireless modem interfaces correctly renamed authentication user to authentication username (T9503).
IPv6 autoconfiguration for wireless modem interfaces works correctly now (T9388).
run show wan-load-balance connection now shows only connections associated with WAN load balancing, not all connections (T9525).
The PKI configuration script now correctly detects ACME certificates when both OpenConnect VPN and HAProxy are configured (T9531).
OpenConnect RADIUS accounting server options are no longer ignored in error (T9582).
PPPoE client correctly handles the default route option when connect-on-demand is set (T9533).
LDPd ttl-security disable option no longer produces an incorrect FRR command that leads to configuration errors (T9534).
Commits where FRR configuration failed to be applied correctly no longer cause problems for subsequent commits with FRR configuration changes (T9442).
VyOS no longer accepts combinations of blackhole routes and other routes with the same distance that FRR would reject as incorrect (T9482).
Automatic GeoIP database update now works as expected and no longer silently fails (T9495).
NAT64 no longer mistakenly allows the user to create more than one source rule, which is not supported by Jool (T9536).
FQDNs in source or destination options of prerouting firewall rules no longer cause errors (T9544).
Deleting NHRP configurations no longer leaves stale firewall rules in the system (T9546).
NHRP now correctly raises errors on incorrect configurations that were previously ignored (T9585).
show vpn debug peer command works correctly again (T9542).
run reset vpn ipsec site-to-site peer now works correctly when peer connection-type is unset (T9543).
high-availability virtual-server correctly checks all real server ports (T9557).
tls auth-key option in site-to-site OpenVPN tunnels is no longer erroneously ignored (T9560).
set service https vrf default no longer fails with a spurious port availability error (T9559).
GRE tunnels with the same key no longer cause spurious configuration errors if their source interfaces and addresses are different (T9193).
Unanswered DHCPv6 release requests no longer block commits, so commit time is improved (T6301).
Fixed a spurious conflict between local SSH and HAProxy listening on port 22 (T9466).
The vyos-op-run binary correctly has the suid bit again after a regression, so operator-level users work again (T9587).