Skip to content

SekurIRCd 1.3.0

Choose a tag to compare

@gcanosa gcanosa released this 21 Oct 12:55
· 130 commits to main since this release

IPv6 (opt-in, off by default)

With [server] ipv6 = false (the default) nothing changes: the server listens and resolves over IPv4 exactly as before, so upgrading is safe. Set ipv6 = true and every listener (clients, TLS, WebSocket, server links) also gets an IPv6 socket on bind6 ("::"; [links] bind6 for the link listener). They are separate, IPv6-only sockets: IPv4 clients keep plain IPv4 addresses and every existing ban keeps matching them. /REHASH turns it on or off.

  • IPv6 clients show as e.g. 2001:db8::5; one that would start with : is written 0::1 (an IRC parameter can't start with :). Type IPv6 ban masks the same way.
  • Reverse DNS (forward-confirmed), ident, DNSBL (reversed-nibble queries) and link dialing work over IPv6. The proxy scanner stays IPv4-only.

CIDR masks, per-/64 limits

  • Everywhere an IP is matched (K/G/Z-lines and E-lines, allowed_ips, oper hosts, WEBIRC/class/proxy hosts, protection exemptions) takes CIDR as well as globs: KLINE *@2001:db8::/32, ZLINE 203.0.113.0/24. A /0 is refused like *.
  • Connections per IP, the connect-flood throttle and its automatic Z-lines, and host cloaks count an IPv6 client by its /64 (ipv6_limit_prefix), so rotating addresses inside a subscriber's block gets around none of them. IPv4 is unaffected.

Fix

Every WEBIRC or X-Forwarded-For connection leaked one slot of the gateway's per-IP count, so a busy web chat gateway was eventually refused with "Too many connections from your host".

Link wizard

tools/linkmgmt.py add, edit and del now write this server's side of a link: they show the diff and ask, keep a private backup, have the ircd's own --check validate the result (restoring the backup if it is refused), then rehash or say a restart is needed. The other server's side is still printed to paste there, and can be saved to a private file to copy over. --dry-run keeps the print-only behaviour.

Upgrading

Nothing to convert; existing configs load unchanged and IPv6 stays off until you turn it on. tools/confcheck.py lists the new options.

139 end-to-end integration tests.

SHA-256 sekurircd-1.3.0.tar.gz: e7035c71cb5fcc6f2121f168924a4e01af3aa685a49d8032495d50d99fddeded