Skip to content

SekurIRCd 1.3.4

Choose a tag to compare

@gcanosa gcanosa released this 16 Nov 20:23
· 64 commits to main since this release

Network stats panel (new, opt-in)

  • A web dashboard for the people who run the network (stats/netstats.py, Python 3.11+, standard library only): a world map of the servers and their links, users over time, every netsplit with its real reason, link and services uptime, per-server version, CPU and memory, a connections-per-hour heatmap, account growth, protection (DNSBL hits, proxies found, spam filter actions and rules), bans, and outside health checks (ports, TLS certificate days left). History in SQLite: per minute for 7 days, hourly for 90, daily for retention_days.
  • Admin and viewer logins (netstats.py --user --admin|--viewer --add NAME), an optional public viewer page, or static pages for a website from cron (netstats.py render).
  • ./sekurircd enable-stats / disable-stats / start-stats, or answer yes in tools/makeconf.py or the web wizard. Nothing is collected or started without stats/stats.toml.
  • HTTPS: set [http] hostname and you get the Caddyfile block for it (Caddy fetches the certificate); failed logins behind a proxy are counted per visitor. Bound to a public address, it prints the ufw/firewalld/iptables/pf commands for the port and warns when logins would travel without TLS.
  • Collected by bin/services from a new SVCSTATS hub feed (older hubs ignore it). Docs: docs/stats.html.

Always-on (Ergo-style)

  • /msg NickServ SET ALWAYS-ON ON keeps your nick in its channels after your connection drops, marked away "Detached (always-on)"; a SASL login resumes it with no QUIT/JOIN seen by others. Works across servers (a new DETACH link message) and survives an ircd restart (alwayson.json, which also keeps channel modes, keys, topics and lists). Expiry: [nickserv] always_on_expire_days (default 30, 0 = never); admins can turn it off with always_on = false.

Opers and the network

  • Rehash, network-wide: every rehash (SIGHUP included) is announced to opers on every server, with what changed or why it failed. REHASH <server> and REHASH *.
  • Netsplits carry the real reason: "Ping timeout: 180 seconds", "Connection closed by peer", "Read error: ...", "SendQ exceeded", "SQUIT by : ". Splits elsewhere in the network are announced on every server.
  • Far connects: oper user mode +F shows clients connecting and exiting on other servers.
  • New oper privileges override, auspex and immune cover powers every oper used to have regardless of their privileges list. A login without a list still gets everything; a login with a list must add these to keep them, so review limited logins before upgrading.
  • [security] oper_modes (default +osw) and per-login modes = "...".
  • STATS is much more complete: every RFC letter plus the common modern ones, remote STATS <letter> <server>, K/G/Z lines with setter and expiry.
  • One services daemon per network, enforced: a second one is refused, and opers are told.
  • The stats line reaches every server's debug channel, separates local and network users, and ends with the server's version and spam filter counts.
  • Linked servers compare their host_masking_secret (through a keyed hash, never the secret) and warn when cloaks would differ.

Services (1.5.0)

  • ChanServ without the channel password when you're logged in: the founder can do everything, =account ACCESS entries what their level allows; protection as in Anope.
  • ChanServ TOPICAPPEND, TOPICPREPEND, TOPICSWAP.
  • NickServ SET AJOIN, LISTLOGINS, LISTCHANS, STATUS/ACC, last-login notice after IDENTIFY/SASL, and a full HELP reference.
  • An =account ACCESS entry now gives its mode when the user identifies after joining.

Config and tools

  • Config wizard: tools/makeconf.py (also sekurircd --makeconf) and the same wizard on the website write a complete sekurircd.toml, services.toml, protection.toml and stats.toml. Leaf servers are a first-class choice.
  • The TOML parser is now tomlc17 (TOML 1.1). Existing configs parse to the same settings.
  • tools/backup-config.sh --restore, confcheck --fix --write fixes permissions, ./sekurircd disable-services/enable-services.
  • tools/linkmgmt.py: TLS links fixed on servers with [tls] off, a new certs command.
  • tools/upgrade.py: choosing the latest release or a specific tag no longer crashes with KeyError: 'branch'.
  • Templates rewritten to be easier to read.

Fixes

  • WebSocket: a frame split across reads was unmasked twice and arrived garbled.
  • ChanServ: the last-word password check could be brute-forced by users already on the access list; misses now have a cooldown.
  • TOPIC of a public channel is readable without joining. default_user_modes accepts p, I, R and D.
  • Users behind a TLS web gateway or reverse proxy get +z.
  • ISUPPORT tokens and CAP lists are alphabetical; TARGMAX, AWAYLEN and KICKLEN tell the truth.

The full list is in the changelog.

Upgrading: tools/upgrade.py, then review [[operators]] logins that have a privileges list (see above). Upgrade the ircd and services together.