Failover implemented:
- interface takes an ordered list: new connections use the first
interface that works and move to the next one when it goes down -
netifd reports it down, or with track_ip it stops answering - and
return when an earlier one works again; the fallback applies only
when none works
- every interface of a policy has a mark, a routing table and rules of
its own, so running connections stay on the interface they started
on and a return to the first interface resets nothing
- gw4/gw6 apply to a policy with a single interface; with several they
are reported and the gateways come from netifd
- track_ip probes are keyed by the configured interface name and follow
its device across interface events
- an interface netifd reports down is handled as dead from the start,
without route operations that cannot apply
- ubus status reports the interface in use per policy, `shunt check`
and the rpcd backend list a line per policy interface
- update the README
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Dirk Brenken <dev@brenken.org>
The ssl and full variants of nmap, ncat and nping install the same files
as the plain ones, for example /usr/bin/nmap, /usr/bin/ncat and
/usr/bin/nping. Nothing marks them as conflicting, so they can be
selected and installed together.
Declare the conflicts so that only one variant can be selected or
installed.
Checked the Conflicts field in the generated package metadata.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The generic runtime test fails for nsd-control-setup:
nsd-control-setup: No executables in the package provided version 4.6.1
nsd-control-setup is a shell script that prints only its usage. With an
override script the harness skips the generic version probe for every
package built from nsd, so the script checks the version printed by nsd,
nsd-checkconf and nsd-control, and skips nsd-control-setup.
Tested in the CI test container (aarch64_generic, main) with the
snapshot packages. All four packages pass.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The dhcp4 importer points the system resolver at 127.0.0.1 when kea
starts, but kea leaves it there when it stops, so local lookups keep
going to a server that may no longer run.
On stop, if the resolver configuration is the one the importer
generated, put back the relative link to resolv.conf.auto in
/tmp/resolv.conf.d, as dnsmasq does.
Fixes: 367b72fd76 ("kea: importer for legacy isc-dhcp-v4 UCI configs")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
When the dhcp4 importer writes the zones, it removes /tmp/resolv.conf
and appends a new one line by line, so a lookup in between finds no or
a partial file. The file also lies outside /tmp/resolv.conf.d, where
jails sharing the host network cannot follow its replacement.
Write the resolver configuration to a temporary file in
/tmp/resolv.conf.d and rename it over resolv.conf there, as dnsmasq
does. After the importers ran, the init script points /tmp/resolv.conf
at that file if it exists and is not already linked.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- new global option track_ip: health tracking for the devices of route
policies - ICMP echo probes through each device every 5 seconds, from
a raw socket bound to it and routed by a probe mark through a probe
table of its own; three unanswered rounds make a device dead, three
answered ones bring it back
- a dead device is handled like one whose link went down: its policies'
default routes are withdrawn and the fallback takes over
- fallback 'main' policies mark new flows from a chain of their own,
emptied while the device is dead, so flows opened during an outage
keep the normal uplink when the device recovers
- probe marks come from the top of the mark range, policy marks keep
their numbers; without track_ip the ruleset is unchanged
- ubus status, the rpcd backend and `shunt check` report the tracked
devices
- update the README
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Dirk Brenken <dev@brenken.org>
sstp-client ships its own /etc/ppp/chap-secrets, but the file belongs to
ppp, which sstp-client depends on. apk refuses to install sstp-client
next to ppp with "trying to overwrite etc/ppp/chap-secrets owned by
ppp".
Drop the copy and leave the file to ppp, as rp-pppoe did for
/etc/ppp/options.
Checked the generated package metadata and Kconfig.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
httping and httping-nossl both install /usr/bin/httping, but nothing
marks them as conflicting, so they can be selected and installed
together.
Declare the conflict so that they cannot be selected or installed
together.
Checked the Conflicts field in the generated package metadata.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Highlights of this release:
- eBPF & ABI alignment: synchronize 176-byte traffic_stats and 88-byte
qos_limit_cfg ABI with aw-bpf, fixing heap buffer overflows; tune
DNS snoop ringbuf poll timeout to 20ms; fix h_addr macro collision
- Captive Portal: send standard HTTP 302 Found for captive probes across
Apple CNA, Android, and Windows; remove obsolete Apple CNA bypass logic;
enable portal auth by default and guard nftables operations
- Network & Resilience: match authenticated marks before set lookups in
nftables; avoid conntrack flush on FW_ACCESS_ALLOW to preserve auth
responses; check carrier before route recovery
- Long connection: unify heartbeat/metrics and migrate ping to MQTT/WebSocket;
integrate long_conn health into auth online status; add MQTT LWT
- Drop unused legacy /etc/wifidog-msg.html template to resolve file
collision with wifidog (fixes#30948)
Maintainer: me
Compile tested: aarch64_cortex-a53 (chawrt 25.12 / OpenWrt snapshot)
Signed-off-by: Dengfeng Liu <liudf0716@gmail.com>
This version includes several bug fixes and some new features. The new
TrueType font support is disabled as it would add a dependency on
libgd-full including FreeType. To do this, CONFIGURE_VARS has to be set
in the package Makefile for now.
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
tac_plus and tac_plus-pam both install /usr/sbin/tac_plus, but nothing
marks them as conflicting, so they can be selected and installed
together.
Declare the conflict so that they cannot be selected or installed
together.
Checked the Conflicts field in the generated package metadata.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The uanytun, uanytun-nettle, uanytun-sslcrypt and uanytun-nocrypt
variants all install /usr/sbin/uanytun, but nothing marks them as
conflicting, so they can be selected and installed together.
Declare the conflicts so that only one variant can be selected or
installed.
Checked the Conflicts field in the generated package metadata.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
vsftpd and vsftpd-tls both install /usr/sbin/vsftpd, but nothing marks
them as conflicting, so they can be selected and installed together.
Declare the conflict so that they cannot be selected or installed
together.
Checked the Conflicts field in the generated package metadata.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
wifidog and wifidog-tls both install /usr/bin/wifidog, but nothing marks
them as conflicting, so they can be selected and installed together.
Declare the conflict so that they cannot be selected or installed
together.
Checked the Conflicts field in the generated package metadata.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
openvpn-openssl, openvpn-mbedtls and openvpn-wolfssl install the same
files, for example /usr/sbin/openvpn and /etc/openvpn.user. All three
provide openvpn, so apk never installs two of them. In Kconfig only
the implicit conflicts of the default variant openvpn-mbedtls keep the
variants apart, so openvpn-openssl and openvpn-wolfssl can both be
selected and apk then refuses them in the image build.
Let openvpn-mbedtls conflict with the other two and openvpn-openssl
with openvpn-wolfssl.
Checked with defconfig: of each pair one variant drops to m, and
luci-proto-openvpn still selects openvpn-mbedtls.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
pdns-recursor ran the cargo of rust/host from PATH, without the Rust
settings of the build system, and cargo fetched the crates of
settings/rust while building.
Include rust-values.mk of the build system, pass its cargo to configure
and its Rust environment to make, and build from a vendor tarball
generated from the release archive with the crates of settings/rust.
The Rust code is a static library inside pdns_recursor, so it links the
standard library statically. The package takes the architecture
dependencies of Rust.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- always count feed rule hits (restore old behavior);
'ban_nftcount' now controls only the per-element counters
and the base chain rule counters
- reduce the memory footprint of Set element counts,
new awk helper 'f_setcnt' (replace jsonfilter)
- reduce the memory footprint of the Set Reporting,
new awk helper 'f_sethits' (replace jsonfilter)
- readme update
Signed-off-by: Dirk Brenken <dev@brenken.org>
libdbi and its drivers are being removed from the feed: neither has had
a release since 2013. The native MySQL, PostgreSQL and SQLite output
plugins remain.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
libdbi and its drivers are being removed from the feed: neither has had
a release since 2013. Native alternatives remain available:
vhostdb_mysql, vhostdb_pgsql and vhostdb_ldap for virtual hosts, and
authn_file, authn_ldap, authn_pam and authn_sasl for authentication.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Generate and enable an mldsa44-ed25519 host key alongside rsa and
ed25519, and preserve it across sysupgrade. OpenSSH 10.6 enables
mldsa44-ed25519 by default and includes it in sshd's default HostKey
list; match that.
Signed-off-by: John Audia <therealgraysky@proton.me>
hostip was a subpackage of dnscrypt-proxy, which is removed in the
previous commit. Drop its detection and the lookup and parsing branches
in get_registered_ip(), so lookups fall through to BusyBox nslookup when
none of bind-host, knot-host or drill are installed.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
This is the C implementation of dnscrypt-proxy 1.x, which its author
abandoned in 2017 in favour of the Go rewrite. The package builds the
dyne.org fork, pinned to a 2019 commit; the fork has had no code
changes since. The bundled resolver list was last updated in 2021.
Its LuCI frontend is already gone: luci-app-dnscrypt-proxy was removed
in luci.git commit 148863ed8e05 ("luci-app-dnscrypt-proxy: Remove app"),
see https://github.com/openwrt/luci/issues/7310#issuecomment-2408437770.
Nothing in the feeds depends on dnscrypt-proxy, dnscrypt-proxy-resolvers
or hostip.
dnscrypt-proxy2 packages the maintained Go implementation, and
https-dns-proxy and dns-over-https provide encrypted DNS as well.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
- add a new generic 'ban_authkey' option and an '{authkey}' feed URL
placeholder for sources which require a personal API-Key, feeds with
this placeholder are skipped as long as no valid key is set
- mask the key in the debug error log
- switch the 'urlhaus' feed to the authenticated 'urls_recent.txt' export
(requires a free abuse.ch Auth-Key); the old IDS ruleset URL is frozen
since 2024-10
- readme update
Signed-off-by: Dirk Brenken <dev@brenken.org>
Adds new plugins off by default:
- siit
- dynupdate
Also adds extra plugins:
- multicluster github.com/coredns/multicluster
- gslb github.com/dmachard/coredns-gslb
Fixes plugin order.
Adds new UCI option `rw_mount` to pass writable volume to ujail for
GSLB.
Changelog: https://github.com/coredns/coredns/releases/tag/v1.15.0
Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
If liburing library is found (as previously selected by other packages)
the package fails to build on packaging the tcpbridge app.
Select the dependency directly to address this corner case.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
ariang and ariang-nginx both install /www/ariang/index.html, but nothing
marks them as conflicting, so they can be selected and installed
together.
Declare the conflict so that they cannot be selected or installed
together.
Checked the Conflicts field in the generated package metadata.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
umurmur-openssl and umurmur-mbedtls both install /usr/sbin/umurmurd, but
nothing marks them as conflicting, so they can be selected and installed
together.
Declare the conflict so that they cannot be selected or installed
together.
Checked the Conflicts field in the generated package metadata.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
rtorrent and rtorrent-rpc both install /usr/bin/rtorrent, but nothing
marks them as conflicting, so they can be selected and installed
together.
Declare the conflict so that they cannot be selected or installed
together.
Checked with defconfig: rtorrent-rpc drops to m when rtorrent is also
selected.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The ssl and nossl variants of mosquitto, libmosquitto and
mosquitto-client install the same files, for example
/usr/sbin/mosquitto, /usr/lib/libmosquitto.so.1 and
/usr/bin/mosquitto_sub. Each pair shares a PROVIDES, so apk refuses to
install both, but Kconfig lets both be selected and the image build
then fails.
Declare the conflicts on the ssl variants. For mosquitto and
libmosquitto the other direction creates a Kconfig dependency cycle,
because packages that depend on them select the ssl variant depending
on the nossl one.
Checked with defconfig: each ssl variant drops to m when its nossl
variant is selected.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
dnsdist and dnsdist-full install the same files, for example
/usr/bin/dnsdist and /etc/dnsdist.conf. They share PROVIDES:=dnsdist,
so apk never installs both, but Kconfig lets both be selected, and the
image then silently gets only dnsdist-full.
Let dnsdist conflict with dnsdist-full, like ethtool and ethtool-full.
Checked with defconfig: dnsdist drops to m when dnsdist-full is
selected.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
- report br_netfilter under a tproxy policy
- skip IPv6 routes and rules on a kernel without IPv6
- report unknown section types
- count kernel routes per family in the rpcd status
- correct the rtnl return value note in rt.uc
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Dirk Brenken <dev@brenken.org>
The build system can provide a Rust toolchain of its own. Its packages
then use that, and rust/host of this feed must not be built next to it.
Make RUST_ARCH_DEPENDS depend on USE_RUST_TOOLCHAIN being unset, and add
the same condition to pdns-recursor and python3-setuptools-rust, which
use rust/host without RUST_ARCH_DEPENDS. Without the symbol in the build
system nothing changes, as Kconfig takes an unknown symbol for n.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Description:
travelmate 3.0.0, backend rewritten in ucode as procd daemon.
Major release for master only, no backport to 25.x.
- captive portal login scripts are ucode scripts (/etc/travelmate/*.uc),
shell scripts are no longer supported; shipped scripts are ported
- vpn: every netifd vpn protocol is supported, the service follows the
interface protocol
- the scan file is now JSON
- mail template is a ucode template
- new timeout defaults: trm_timeout 30s
- external commands (curl, msmtp, wifi, login scripts, ...) run directly
via argv, no shell is involved; lookup() uses the ucode resolver
(new dependency ucode-mod-resolv)
Compile tested: private build based on OpenWrt SNAPSHOT (r37596-df70de353d)
Run tested: Cudy TR3000 v1, mediatek/filogic, OpenWrt SNAPSHOT (r37596-df70de353d)
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Dirk Brenken <dev@brenken.org>
Local certs were only written to swanctl.conf when auth was set to
pubkey. EAP-TLS also needs the local certificate, so with auth set to
eap-tls no certificate was configured and the authentication failed.
Keep the certs for pubkey and eap-tls, and drop them for all other
authentication methods.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Add the uci option "xauth_id" to the local section. It is only written
if auth is "xauth" or "xauth-<backend>".
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Add the uci option "eap_id" to the local section. Like "aaa_id", it is
only written if auth is "eap-mschapv2" or "eap-tls".
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Add the uci option "aaa_id" to the local section. It is only written
if auth is "eap-mschapv2" or "eap-tls".
Signed-off-by: Florian Eckert <fe@dev.tdt.de>