| Age | Commit message (Collapse) | Author |
|
load-balancing: T9466: Fix listen-address check for VRF, link-local and new IPv6 addresses
|
|
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`.
|
|
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
|
|
telegraf: T9569: Pass InfluxDB token via a root-only environment file
|
|
T9582: Fix OpenConnect RADIUS accounting server missing from radius_servers
|
|
nhrp: T9585: Fix verify() never validating NHRP tunnels
|
|
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 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.
|
|
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.
|
|
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
|
|
T9477: remove no longer needed executable bit from conf_mode/migration scripts
|
|
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.
|
|
ipsec: T9542: replace removed ipsec script with swanctl and systemctl
|
|
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.
|
|
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.
|
|
zabbix-agent: T9545: Fix PSK authentication mode validation
|
|
nhrp: T9546: Remove nftables rules when NHRP is deleted
|
|
strongSwan 6.x no longer ships the legacy ipsec starter script, so
"show vpn debug", "show vpn debug peer" and "show vpn ipsec status"
failed with "ipsec: command not found", and QAT acceleration could not
stop or start the IPsec daemon.
Debug output and status now come from swanctl, filtered per IKE
connection and child SA, and QAT controls strongswan.service via
systemctl. Debugging a peer without any IPsec configuration now
reports the peer as not found instead of raising a traceback.
|
|
Deleting NHRP left its nft tables in place. The conf script skipped
regenerating the ruleset on delete but still reloaded the existing file,
so the multicast drop rules stayed active.
On delete the ruleset is now rendered without NHRP config, which only
removes the NHRP tables. The smoketest checks after each test that no
NHRP tables remain.
|
|
The pre-shared-secret check compared the authentication mode against
"pre_shared_secret", but key mangling only applies to keys, so the CLI
value keeps its hyphens and the check never matched. PSK mode could be
committed without an identity or secret, leaving the agent with
TLSConnect=psk and no key, so it failed to start silently.
The check now matches the CLI value and rejects PSK mode with a missing
identity or secret, including when no psk node is configured at all.
|
|
nat64: T9536: Fix check for only one source rule
|
|
The verify step was meant to allow only one NAT64 netfilter instance, but
it looked for a "mode" node that does not exist in the CLI, so it never
matched. A second source rule was accepted and Jool created a second
netfilter instance without error, although the Jool documentation states
that only one is allowed per network namespace. Which instance translates
traffic is then undefined.
Every rule is created with the netfilter framework, so verify now counts
all configured source rules and rejects the commit when there is more than
one. A dead check that tried to recreate an instance on a "mode" change is
removed for the same reason.
|
|
pki: T9531: Fix OpenConnect ACME certificate detection with HAProxy
|
|
When HAProxy was configured, OpenConnect's certificate was checked
against a variable left over from the HAProxy loop instead of the ACME
certificate being processed. If no HAProxy service had an SSL
certificate, every pki commit failed with UnboundLocalError.
Now OpenConnect is listed only for the certificate it actually uses.
|
|
An external pool could hand out addresses that also belong to an
internal pool, so a subscriber could be translated to the address of
another subscriber.
External ranges overlapping an internal range of the pools in use are
now rejected.
|
|
An internal address in two ranges, of one pool or of the pools of two
rules, produced overlapping nftables map elements. The commit then only
failed on the nftables syntax check with "Configuration file errors
encountered!", which gave no hint at the cause.
Overlapping internal ranges are now rejected during verify, naming both
ranges and their pools.
|
|
Ports are allocated per external range, starting over for each one. An
address listed in two ranges of one pool, or in the pools of two rules
with overlapping port ranges, was therefore handed out twice: two
subscribers got the same external address and port block. The capacity
check also counted such an address twice.
Such overlaps are now rejected. Pools of different rules may still share
an address when their port ranges are distinct.
|
|
A rule with an empty translation node passed the check for a defined
translation pool and then crashed the commit with a Python KeyError.
The translation pool is now checked the same way as the source pool and
a missing one is reported as a configuration error.
|
|
The external port range accepted a single port, a service name and a
range whose start lies above its end. The first two crashed the commit
with a Python traceback, the last one failed with a misleading "not
enough ports" error.
The CLI now only accepts a numeric range within 1-65535, and a reversed
range is rejected with a clear error.
|
|
With the full integration of vyos-configd, conf_mode scripts are loaded as
Python modules and are no longer meant to be executed individually.
Drop the executable bit and the now meaningless shebang. The remaining
callers that ran a script directly (boot, op-mode, dhclient hook, vyshim
fallback, ...) now invoke it through python3. The build now aborts if a
conf_mode script is executable.
|
|
Integrate the VPP Prometheus exporter with VyOS configuration. Upon
being configured via VyOS CLI, the exporter reads VPP statistics and
exposes selected metrics at /metrics endpoint for Prometheus to
scrape. VPP exporter service can co-exist with node-exporter (both
independently) to export VPP and kernel stats respectively.
The implementation provides functionality:
CLI configuration for the exporter, including its listen port, VRF,
and selectable stat groups: interfaces, err, buffer-pools, system,
workers, nodes, memory, nat44, and acl.
Default stat groups of interfaces, err, buffer-pools, system, workers,
and memory. Explicitly selecting any groups replaces that default set.
The exporter is opt-in: configuring vpp-exporter enables and starts
it. Removing the configuration stops the exporter independently of
VPP. While configured, it follows VPP’s lifecycle and restarts when
its own configuration changes.
Validation that requires VPP to be configured before configuring the
exporter, and rejects VPP removal while the exporter remains
configured.
Node metrics through the nodes group when VPP’s per-node-counters
setting is enabled. Selecting nodes without that setting produces a
warning. Removing the exporter leaves per-node-counters unchanged.
VRF support for the exporter service.
Co-authored-by: @inetman28
PR-Ref: #5339 (Addressed review comments, removed regex CLI options)
|
|
ipoe-server: T9289: expose accel-ppp lease-time DHCP options
|
|
vpp: T9484: keep net.core.rmem_max at VPP's netlink buffer size
|
|
syslog: T9336: Resolve remote FQDN targets within their configured VRF
|
|
Warn when only "rebind-time" is set and accel-ppp lowers the renewal
time it derives from "lease-time" to stay below it. The existing
warning only covered a configured "renew-time".
Warn when "lease-time", "renew-time" or "rebind-time" is configured
and an interface uses "external-dhcp dhcp-relay". accel-ppp then takes
the lease timings from the reply of the external DHCP server and only
falls back to the configured values.
Refuse a lease-time that would overflow accel-ppp's maximum lease time:
without max-lease-time it adds a tenth to the lease time, and the sum
has to fit into a signed 32 bit integer.
|
|
VPP requests a 256 MiB netlink receive buffer (nl-rx-buffer-size), but
the kernel caps it at net.core.rmem_max, which VyOS sets to 2 MiB, so
VPP gets 4 MiB. A large routing table over VPP interfaces can overflow
it, and linux-cp then falls back to a full resync.
Setting the sysctl from the CLI does not help at boot: system sysctl
runs after vpp, so VPP has already opened its socket.
- vpp.py raises net.core.rmem_max to the requested size before VPP is
(re)started; a higher value is kept.
- VPP re-opens its netlink socket on every resync and sizes it again, so
system sysctl no longer applies a lower value while VPP is configured;
it uses the required size and prints a warning.
- When VPP is removed, vpp.py sets net.core.rmem_max back to the value
from system sysctl, or to the default from sysctl.d, read with the new
vyos.utils.system.sysctl_read_default().
- startup.conf.j2 takes nl-rx-buffer-size from the same value
(default_resource_map) instead of its own constant.
|
|
firewall: T9474: multiple issues in rule processing (time based rules, fragment matching and failing commits)
|
|
haproxy: T9097: add ssl checks-only for TLS health checks
|
|
policy: T9394: reject route-map deletion if still used inside VRF instance
|
|
wlb: T9472: silent daemon failures, ignored options and connections broken by commits
|