| Age | Commit message (Collapse) | Author |
|
ospf: T9606: add "compatible" node for RFC1583 and RFC7474 options
|
|
validation
FRR now makes strict RFC7474 sequence number validation for OSPF
cryptographic authentication optional. It is on by default and only the
"no compatible rfc7474" form is shown.
The new CLI node "compatible rfc7474" enables strict validation. When it is
not set, "no compatible rfc7474" is rendered. Migration does not set it, so
the previous behaviour of non-strict sequence number validation is kept on
upgraded routers. Users must explicitly enable strict validation.
|
|
The RFC1583 option sat under "parameters" although FRR groups it with its
other "compatible" commands. It now lives under "compatible rfc1583" for the
default and VRF instances. Migration moves an existing setting and drops a
"parameters" node left empty by the move.
|
|
load-balancing: T9466: Fix listen-address check for VRF, link-local and new IPv6 addresses
|
|
telegraf: T9329: Add PKI based TLS options for InfluxDB output
|
|
dhcpv6-client: T6301: do not block commits on an unanswered Release
|
|
Add a reusable `tls` node for Telegraf outputs and use it for InfluxDB:
`ca-certificate`, `certificate`, `server-name` and `insecure`.
Referenced PKI objects are written to `/run/telegraf/certs`.
|
|
telegraf: T9601: Pass Azure Data Explorer credentials via the environment file
|
|
debian: T9587: restore SUID bit on vyos-op-run
|
|
The Azure client ID, secret and tenant ID were only set in the commit
process environment, so they never reached the telegraf service and the
Azure Data Explorer output could not authenticate. The secret also stayed
in the configuration daemon after the commit.
The credentials are now written to the same root-only environment file
as the InfluxDB token, and changing them restarts telegraf.
|
|
IPv6 addresses
The listen-address check ignored the HAProxy VRF. An address on an
interface in that VRF was reported as not assigned. With "vrf default"
the port check always failed.
Changing the VRF only reloaded HAProxy, so it kept running in the old
VRF.
HAProxy cannot parse a link-local address with its "%interface" scope.
The commit passed, but HAProxy failed to load the config.
A new IPv6 address cannot be used until duplicate address detection
finishes. Adding it together with the listen-address, as on every boot,
was refused as "port used by another service".
Now:
- addresses and ports are checked inside the HAProxy VRF, and "default"
means no VRF
- HAProxy restarts when its VRF changes
- a link-local address is passed to HAProxy as "bind <address> interface
<interface>"; one without an interface is refused
- the check waits until a new IPv6 address can be used
|
|
The special character check for operator-level users allowed any
whitespace, including newlines. Tag node values are substituted into a
shell command which runs as root, so an operator could append arbitrary
commands, e.g. "vyos-op-run show interfaces ethernet $'eth0\nid'".
Only plain spaces are accepted now, everything else is rejected before
privileges are raised. The operator smoketest covers this case.
|
|
No smoketest logged in as an operator-level user, so losing the SUID bit
on the op-mode runner went unnoticed.
Add a test which checks the SUID bit, then logs in via SSH as an operator
and verifies that commands in the command-policy return the same output
as for an admin, while commands outside of it are rejected.
|
|
telegraf: T9569: Pass InfluxDB token via a root-only environment file
|
|
T9582: Fix OpenConnect RADIUS accounting server missing from radius_servers
|
|
http-api: T9588: Keep config strings out of world-readable /tmp
|
|
nhrp: T9585: Fix verify() never validating NHRP tunnels
|
|
The lookup for an address on all interfaces carried a copy of the zone
index and VRF filtering that already exists in the lookup returning the
matching interfaces. It now delegates to it, so the two cannot drift.
The per-interface address match is written as a single condition, the
comments are trimmed, and the docstrings state that anything but a
single address raises ValueError instead of being reported as not
assigned.
The sflow zone index smoketest removes the dummy interface it creates,
and the unit tests drop a stale task reference and a duplicate import.
|
|
indexes
The helper that tells whether an address is assigned to an interface
accepted ranges and addresses with a zone index. A range ended in a
traceback. A zone index was ignored, so an address on the loopback
interface was reported as assigned to the interface named in the zone.
The helper now rejects everything that is not a single address, a zone
index included. The functions that look for an address on all
interfaces use the zone to pick the one interface to check, so a zone
that names an interface which does not hold the address is no longer
accepted. The command that lists the addresses is passed as a list, so
the interface name and the namespace do not reach a shell.
Unit tests and a smoketest cover the cases.
|
|
When stopped, dhcp6c removes its leases at once but then retransmits the
Release for ~30 seconds if the server never replies. As the client is stopped
or restarted synchronously, every commit deleting "address dhcpv6", changing
"dhcpv6-options" or moving the interface to another VRF hung for that long.
Stopping the client now waits at most 5 seconds for it to exit before it is
killed, which is treated as a clean stop so the unit does not end up failed.
Add a smoketest dropping the Release on a veth pair with a local DHCPv6
server, verifying the commit returns quickly and the lease is removed.
|
|
A GRE tunnel with source-address 0.0.0.0, no remote and "parameters ip key
0" used to commit, but was refused once a zero key stopped counting as a key
for such a tunnel. That breaks existing configurations on upgrade.
Accept it again whenever a key is configured at all. A zero key still cannot
tell two such tunnels apart, and the collision check keeps refusing the
second one, so only the single-tunnel case changes back.
|
|
The Kernel keeps gre and gretap tunnels in tables of their own, so a gre and
a gretap tunnel may share local address, remote address and GRE key. Only
compare tunnels of the same encapsulation.
|
|
The pairwise GRE collision check did not follow the Kernel's notion of a
duplicate tunnel. With a key set it ignored remote and source-interface,
rejecting tunnels the Kernel keeps apart. Without one it refused keyless
tunnels on different source-interfaces, and collided a keyless tunnel with
a keyed one, which also left the keyless tunnel failing every later commit.
A zero key was judged differently depending on which side was verified.
Two tunnels now collide only when local address, remote, source-interface
and key all match, as ip_tunnel_find() decides. An any address counts as
unset, and a zero key is treated as no key only where neither endpoint is
set. Keys are compared as the value the Kernel stores, so octal spellings
such as "010" are caught and invalid ones such as "08" are refused on
commit. Error messages name the configured source and the shared node.
Smoketests cover the new cases.
|
|
The /config-file endpoint wrote config strings to /tmp/config.file,
readable by any local user and never removed. A file pre-created at
that path by another user made every later request fail.
The string now goes to a private temp file that is always removed.
The load and merge helpers, and the vyconf session, also remove their
own /tmp copy when loading raises, e.g. on a syntax error.
|
|
The NHRP configuration checks looked for the tunnel settings at the top
level of the shared FRR config dict, but they are nested under the
'nhrp' key. None of the checks ran, so invalid configs committed
silently: a missing tunnel interface, a non-mGRE tunnel or one with a
remote address, a missing network-id, and map/nhs entries without
valid NBMA addresses. The result was an inactive NHRP or a generic
frr-reload failure.
The checks now read the NHRP part of the config, and an NHRP tunnel
that refers to a missing interface is rejected with a clear error.
|
|
The InfluxDB token was set with Environment= in the systemd drop-in, so
any local user could read it with "systemctl show".
The token is now written to a root-only environment file loaded by
systemd, and no longer shows up in "systemctl show". Telegraf is
restarted when the token changes, as a reload would keep the old value.
|
|
https: T9559: fix bogus port conflict with "vrf default"
|
|
Fix swapped dict_search() arguments and check the valueless
"accounting mode radius" node with "is not None", so the accounting
server key is written to /run/ocserv/radius_servers.
Add smoketest with separate authentication and accounting servers.
|
|
With an ingress limiter and "redirect" on the same interface, the redirect
filter was evaluated first and took all traffic, so the limiter never
applied.
The limiter filters of such an interface now redirect the traffic after
policing it: what exceeds the rate is handled by "exceed", conforming
traffic is redirected. A "not-exceed ok" is passed on to the redirect
instead of ending the actions. The interface's own redirect filter moves
to the lowest priority and only catches traffic no limiter class matched;
an interface commit only replaces that filter and keeps the limiter in
place.
|
|
An interface with both an ingress QoS policy and "redirect" lost its redirect
filter on every QoS commit, including boot. QoS re-applied the interface
redirect first and then re-created the ingress qdisc for its own policy,
dropping the redirect filter again.
Mirror and redirect are now re-applied after the QoS policies, and the
redirect re-uses an existing ingress qdisc instead of failing to add it.
|
|
A VLAN sub-interface used as mirror or redirect target (e.g. bond0.10) was
only accepted if it already existed in the Kernel. The configuration
committed at runtime, but at boot the source interface is committed before
the VLAN is created - verify failed and the whole source interface was
rolled back, as reported for tunnel targets.
A VLAN target is now also accepted if its parent interface has the vif,
vif-s or vif-c configured on the CLI. VLAN sub-interfaces learn which
interfaces mirror or redirect into them and install their filters once
created, as other interfaces already do.
Add a config load test mirroring and redirecting into tunnel and bond VLAN
targets, which are committed after the ethernet sources.
|
|
Extend the interface base tests: a mirror or redirect target that is neither
configured nor existing is rejected, and mirroring (redirecting) all test
interfaces into a GRE tunnel created in the very same commit, i.e. after them
due to its higher priority, succeeds with a filter on every source.
|
|
Committing "set service https vrf default" failed with "TCP port 443 in vrf
default is already used by another service" although nothing listened on the
port. The port check bound its test socket to a VRF device named "default",
which does not exist, and reported that failure as a port conflict.
The default VRF is now treated like no VRF at all. A VRF device that does not
exist no longer counts as a busy port, as nothing can listen in it; any other
error is raised instead of being reported as a conflict. The same check is
used by the Prometheus VPP exporter.
|
|
webproxy: T9566: Pass LDAP bind password via file instead of command line
|
|
The LDAP bind password was passed to `basic_ldap_auth` with `-w`, so any
local user could read it from `/proc/*/cmdline`. It was also written in
plain text to `squid.conf`.
The password is now written atomically to /run/squid-ldap.secret (0600,
owned by proxy), unchanged including spaces, and passed with -W. The
file is removed when LDAP authentication no longer uses a password.
|
|
openvpn: T9560: Render tls-auth in site-to-site mode
|
|
In site-to-site mode "tls auth-key" was accepted but never used. The key
direction is now taken from "tls role": active uses 1, passive uses 0.
A raw "openvpn-option --tls-auth" in site-to-site mode, the only way to
use the key until now, is left as it is: no tls-auth is rendered next to
it, so existing tunnels keep working.
|
|
ha: T9557: Verify real-server port for every virtual-server
|
|
The real-server port check ran only for the last virtual-server, so a
real-server without a port on any other virtual-server passed verify and
keepalived received a real_server entry with no port. The check now runs
for each virtual-server.
|
|
The default route of a DHCP or PPPoE interface changes with an
interface-only commit or a lease event, without a commit of the static
routes. If it gets the same prefix and distance as a blackhole or reject
route, FRR refuses the reload and every static route added with it is
lost.
The rendered FRR configuration is now checked for a blackhole or reject
route next to any other route of the same prefix and distance, per VRF
and table. Such a blackhole or reject route is not rendered, and an
error naming it is logged to the journal. Prefixes are compared in their
normalized form, as FRR stores them.
|
|
Verification also refused a blackhole or reject default route next to
the default route of a PPPoE interface, or of a DHCP interface once its
lease had a router. Those routes change without a commit of the static
routes, by an interface-only commit or a lease event. The check missed
those cases, depended on the lease, and was not covered by the
migration, so a PPPoE configuration with a plain blackhole default route
failed to load after the upgrade. Only conflicts between static routes
are refused now, the renderer handles the interface default routes.
The default distance is looked up only for a route without a distance.
The migration comment claimed FRR keeps the route configured first. A
conflict makes frr-reload lose every static route of that reload. A
unit test covers the migration, and the config test asserts which route
was disabled.
|
|
FRR staticd refuses a blackhole or reject route next to a next-hop or
interface route of the same prefix and distance. VyOS accepted the
combination, the commit failed later in frr-reload and on some FRR
versions the config manager stalled.
Add a disable node to blackhole and reject. Verification refuses an
enabled blackhole or reject route next to a next-hop, interface or
dhcp-interface route of the same distance, and blackhole together with
reject, in routes, tables and VRFs. The same applies to the default
route of a PPPoE interface and of a DHCP interface that has a gateway.
A commit that changes only such an interface does not run the check,
frr-reload refuses it and the commit is rolled back.
A config migration sets disable on the route FRR did not apply, so
existing configurations keep loading and route as before.
|
|
ruben-herold/T9543-ipsec-reset-default-connection-type
ipsec: T9543: start a peer again on reset when connection-type is unset
|
|
The reset test configured its peers with a local address that was not
present on any interface, so starting the peer at commit relied on how
charon handles a source address the router does not own. Assign the
address to the interface IPsec is bound to and remove it again at the
end of the test.
|
|
Since connection-type defaults to initiate, it is always present in the
peer configuration. The swanctl template and the reset command still
handled an unset value as a separate case, which can no longer happen.
Compare against the value directly instead.
The reset smoketest only checked for error messages that cannot appear,
because a failed reset already aborts the test. It now verifies that
reset does not start a peer that is not started at commit.
|
|
T3871: bind interface names to hardware slots instead of hw-id
|
|
frrender: T9442: cache the FRR configuration only after it was applied
|
|
A failed reload only dropped the in-memory cache. The record of the
configuration FRR runs still held the previous one, so the DHCP render
helper skipped a return to it while FRR kept a part of the failed
configuration. After a rejected reload test, the rendered file also kept
the rejected configuration.
Change detection now also requires the rendered file to match the
applied one, and a failed reload removes that record. The next commit
then renders and reloads FRR again, even when it returns to the
previous configuration.
A smoketest stops FRR during a commit and verifies that committing again
brings the configuration into FRR.
|
|
A radio is not in the interface mapping file, as every interface on a phy
carries that phy's address and there is nothing there to anchor a name to.
Nothing checked that the rescan finds one on the system instead, so the
regression which left a radio without a configuration node went unnoticed.
Run the installed helper against a copy of the running configuration, on an
interface the testcase creates for itself so it does not depend on what
another one left behind. Reverting the fix makes it fail, with no node for
the radio at all.
It lives in a file of its own because the test shim keys its configuration
session on the process id, and a second testcase class in one file tears
that session down underneath the first.
|
|
Deleting the ethernet configuration of a member of a jumbo bond dropped that
member to the default MTU while the bond went on using it at 9000. It stayed
the active slave, so jumbo frames were discarded in both directions, small
ones passed, and nothing was logged.
A bond owns its members' MTU just as it owns their address - the ethernet
path already refuses to let a member set either, and says so. The reset now
waits, like the address, until the bond has released the port.
The bonding smoketest covers both halves on a running system: while the
member is enslaved it must keep the bond's address and MTU, and once the
bond releases it, it must get its own address and the default MTU back.
|