summaryrefslogtreecommitdiff
path: root/src/conf_mode
AgeCommit message (Collapse)Author
2026-11-12Merge pull request #5566 from natali-rs1985/T9466Viacheslav Hletenko
load-balancing: T9466: Fix listen-address check for VRF, link-local and new IPv6 addresses
2026-11-11telegraf: T9329: Add PKI based TLS options for InfluxDB outputOleksandr Kuchmystyi
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`.
2026-11-09telegraf: T9601: Pass Azure Data Explorer credentials via the environment fileNataliia Solomko
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.
2026-11-09load-balancing: T9466: Fix listen-address check for VRF, link-local and new ↵Nataliia Solomko
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
2026-11-08Merge pull request #5629 from natali-rs1985/T9569Christian Breunig
telegraf: T9569: Pass InfluxDB token via a root-only environment file
2026-11-08Merge pull request #5632 from sever-sever/T9582Christian Breunig
T9582: Fix OpenConnect RADIUS accounting server missing from radius_servers
2026-11-08Merge pull request #5633 from natali-rs1985/T9585Christian Breunig
nhrp: T9585: Fix verify() never validating NHRP tunnels
2026-11-06tunnel: T9193: keep accepting a lone zero-keyed GRE tunnel on an any sourceChristian Breunig
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.
2026-11-06tunnel: T9193: do not collide GRE tunnels of different encapsulationChristian Breunig
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.
2026-11-06tunnel: T9193: match GRE tunnel uniqueness check to the KernelLee Clements
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.
2026-11-06nhrp: T9585: Fix verify() never validating NHRP tunnelsNataliia Solomko
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.
2026-11-06telegraf: T9569: Pass InfluxDB token via a root-only environment fileNataliia Solomko
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.
2026-11-06T9582: Fix OpenConnect RADIUS accounting server missing from radius_serversViacheslav Hletenko
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.
2026-11-05qos: T6393: police ingress traffic before redirecting itChristian Breunig
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.
2026-11-05qos: T6393: keep redirect filter when applying an ingress policyChristian Breunig
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.
2026-11-03Merge pull request #5626 from natali-rs1985/T9566Christian Breunig
webproxy: T9566: Pass LDAP bind password via file instead of command line
2026-11-03webproxy: T9566: Pass LDAP bind password via file instead of command lineNataliia Solomko
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.
2026-11-03Merge pull request #5621 from natali-rs1985/T9560Viacheslav Hletenko
openvpn: T9560: Render tls-auth in site-to-site mode
2026-11-02Merge pull request #5588 from c-po/no-exec-bitChristian Breunig
T9477: remove no longer needed executable bit from conf_mode/migration scripts
2026-11-02openvpn: T9560: Render tls-auth in site-to-site modeNataliia Solomko
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.
2026-11-02Merge pull request #5612 from c-po/T9542-ipsec-script-removedViacheslav Hletenko
ipsec: T9542: replace removed ipsec script with swanctl and systemctl
2026-11-02Merge pull request #5620 from natali-rs1985/T9557Viacheslav Hletenko
ha: T9557: Verify real-server port for every virtual-server
2026-11-02ha: T9557: Verify real-server port for every virtual-serverNataliia Solomko
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.
2026-11-01static: T9482: check static routes onlyChristian Breunig
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.
2026-11-01static: T9482: handle a blackhole next to a next-hop of the same distanceRuben Herold
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.
2026-10-30Merge pull request #5611 from natali-rs1985/T9545Christian Breunig
zabbix-agent: T9545: Fix PSK authentication mode validation
2026-10-30Merge pull request #5613 from natali-rs1985/T9546Christian Breunig
nhrp: T9546: Remove nftables rules when NHRP is deleted
2026-10-30ipsec: T9542: replace removed ipsec script with swanctl and systemctlChristian Breunig
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.
2026-10-30nhrp: T9546: Remove nftables rules when NHRP is deletedNataliia Solomko
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.
2026-10-30zabbix-agent: T9545: Fix PSK authentication mode validationNataliia Solomko
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.
2026-10-30Merge pull request #5609 from natali-rs1985/T9536Viacheslav Hletenko
nat64: T9536: Fix check for only one source rule
2026-10-30nat64: T9536: Fix check for only one source ruleNataliia Solomko
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.
2026-10-29Merge pull request #5605 from natali-rs1985/T9531Christian Breunig
pki: T9531: Fix OpenConnect ACME certificate detection with HAProxy
2026-10-29pki: T9531: Fix OpenConnect ACME certificate detection with HAProxyNataliia Solomko
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.
2026-10-26cgnat: T9473: reject external ranges overlapping internal rangesChristian Breunig
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.
2026-10-26cgnat: T9473: report overlapping internal ranges during verifyChristian Breunig
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.
2026-10-26cgnat: T9473: reject external addresses used in more than one rangeChristian Breunig
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.
2026-10-26cgnat: T9473: require a pool below rule translationChristian Breunig
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.
2026-10-26cgnat: T9473: accept only a numeric range as external-port-rangeChristian Breunig
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.
2026-10-24T9477: remove no longer needed executable bit from conf_mode scriptsChristian Breunig
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.
2026-10-22T8382: Add VPP Prometheus exporter supportRitika Chopra
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)
2026-10-22Merge pull request #5459 from ruben-herold/T9289-ipoe-lease-timeViacheslav Hletenko
ipoe-server: T9289: expose accel-ppp lease-time DHCP options
2026-10-22Merge pull request #5583 from alexk37/T9484-vpp-netlink-rmem-maxViacheslav Hletenko
vpp: T9484: keep net.core.rmem_max at VPP's netlink buffer size
2026-10-22Merge pull request #5528 from alexandr-san4ez/T9336-rollingDaniil Baturin
syslog: T9336: Resolve remote FQDN targets within their configured VRF
2026-10-21ipoe-server: T9289: warn about derived renew-time and relay lease timingsRuben Herold
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.
2026-10-21vpp: T9484: keep net.core.rmem_max at VPP's netlink buffer sizeAlex Kudentsov
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.
2026-10-19Merge pull request #5573 from c-po/firewall-fixesChristian Breunig
firewall: T9474: multiple issues in rule processing (time based rules, fragment matching and failing commits)
2026-10-19Merge pull request #5529 from ch4nn0n/T9097-haproxy-check-sslChristian Breunig
haproxy: T9097: add ssl checks-only for TLS health checks
2026-10-19Merge pull request #5579 from c-po/T9394-route-map-in-use-vrfChristian Breunig
policy: T9394: reject route-map deletion if still used inside VRF instance
2026-10-19Merge pull request #5571 from c-po/wlb-fixesChristian Breunig
wlb: T9472: silent daemon failures, ignored options and connections broken by commits