configuration
Copy config/sekurircd.template.toml to a live file and point the daemon at it with --config.
The template documents every key. To start from answers instead, run tools/makeconf.py
(or sekurircd --makeconf), or use the web wizard; see install. REHASH (or --rehash) reloads it without dropping anyone.
Relative paths: motd, oper_motd, rules, tls.cert_file and tls.key_file resolve against the config file's
directory; logging.directory resolves against the current working directory. Absolute paths always work.
The MOTD, oper MOTD, rules and spam filters are your own files, not tracked by git. The repo ships config/ircd.template.motd,
oper.template.motd, ircd.template.rules and spamfilters.template.conf. At start and on REHASH, the ircd creates a
missing ircd.motd, oper.motd, ircd.rules or spamfilters.conf from its template and never touches one that exists,
so upgrades keep your edits. A short MOTD for connect is optional and never created for you: cp config/ircd.template.smotd config/ircd.smotd
gives a colored one that tells users /MOTD shows the complete one.
config/sekurircd.template.toml (ircd) and
services/services.template.toml (ChanServ).
Every key is listed there with its default and a comment.sections
| Section | What it controls |
|---|---|
[server] | name, network, bind (default 0.0.0.0), port (default 6667), extra_ports (more plaintext ports next to it, e.g. [6668, 6669]; up to 16, opened and closed by /REHASH), IPv6, and proxy_protocol_hosts (load balancers that pass the real client IP with a PROXY protocol v1 line; ignored from anyone else). |
[security] | Line/param/nick length limits, keepalive (ping_interval 120s, ping_timeout 300s),
host_masking and its format, klines_file, default_user_modes (e.g. "iw"), protection_file,
reserved_nicks, command_limits (["WHO 5/10", "NICK 3/60"]: at most that many of a command per window, then "try again"; opers exempt), ident and reverse-DNS lookups, DIE/RESTART passwords, oper_modes (modes every /OPER gets, default "+osw"), oper_auto_join. The flood guard, connection caps and
connect-flood keys still work here but now live in the Protection bundle. |
[tls] | enabled (default false), port (default 6697), extra_ports (more TLS ports with the same certificate; the STS policy names port), cert_file, key_file, request_client_cert (needed for SASL EXTERNAL), sts_duration (IRCv3 STS: tell clients to always use TLS here).
Runs alongside the plaintext listener, never instead of it. |
[websocket] | IRC over WebSocket for browser clients (the web chat, Kiwi IRC, The Lounge): enabled, port (default 8080), tls (wss:// with the [tls] certificate), trusted_proxies (whose X-Forwarded-For / X-Real-IP is believed) and allowed_origins. |
[[classes]] | Different limits for some hosts: the first class whose hosts match applies its max_clients, max_per_ip, sendq_max and flood_max_msgs/flood_window. A host is an IP glob or a CIDR range, and IPv4 and IPv6 can be mixed in one list ("10.0.0.0/8", "2001:db8::/32", "::1"). A glob is matched against the text the server spells the address with: IPv6 in its short form, no leading zeros (c8, not 00c8) and :: for a run of zero groups. A padded glob such as "2602:f992:00c8:b79*" is read as "2602:f992:c8:b79*" (logged, and shown by tools/confcheck.py), but a glob can still miss when an address compresses differently, so prefer a CIDR range ("2602:f992:c8:b793::/64") for IPv6. Unset keys use the global setting. STATS y lists them. scope = "global" publishes a class to every linked server, each of which applies it to its own connections (max_clients and max_per_ip count per server, not across the network); a server with [links] accept_global_classes = false keeps to its own. Opers add and remove classes at run time with /CLASS (see the commands), kept in classes.json. |
[[webirc]] | Trusted web gateways (Kiwi IRC, The Lounge, ...): name, password and hosts (the gateway's IPs, required). Both must match before a WEBIRC line's real user IP is accepted, so bans and limits hit that user, not the whole gateway. |
| accounts | Not an ircd section any more: accounts, NickServ and SASL are the services daemon's, configured in [nickserv] of services/services.toml
(see services). An [accounts] section left from an older release is ignored with a warning, and its accounts.json is used in place. |
[messages] | motd (an optional .smotd next to it, e.g. ircd.smotd, is shown on connect instead and /MOTD still shows the full one; an optional bot.motd in the same directory is shown on MODE +B), oper_motd (shown to opers) and rules (for /RULES) files, and max message length. |
[logging] | enabled, directory, level, debug (protocol trace), file, rotation (max_bytes, backup_count), audit_file (one line per oper action: OPER logins and failures, KILL, the lines, CLASS, DEFCON, REHASH, DIE; passwords left out; off unless named) and syslog (also send the log and audit lines to the system log). |
[[operators]] | One table per /OPER login. See below. |
[admin] | Location and email reported by /ADMIN. |
[[vhosts]] | host plus who may use it with /VHOST: allowed_hosts (ident@IP masks, never nicks) and/or accounts (logged-in accounts, from anywhere), and an optional password or password_hash (a scrypt string from sekurircd --hash-password; /VHOST <host> <password>; with no masks or accounts, anyone who knows it). Per server — for vhosts an account picks from on every server, an oper gives them with /VHOST ADD <account> <host>. |
[channels] | restrict_creation, allowed_channels, default_modes (default "nt"), auto_join. |
[limits] | Sizes that used to be fixed, with those values as the defaults: channels_per_user (200), max_list_size (100, per ban/exception/invite list), topic_length (307), kick_length (300), away_length (399), channel_length (50), monitor_entries (100), silence_entries (15), modes_per_command (6), whowas_entries (200; 0 = no WHOWAS) and registration_timeout (60 s). Most are advertised in ISUPPORT, so set them the same on every server of a network. |
[privacy] | All off. hide_links (LINKS and MAP show non-opers only this server), hide_server_name (a stand-in name for every server in WHOIS, WHO, LINKS, MAP and netsplit QUITs), hide_idle, hide_part_quit_reasons and names_members_only. Opers, and a user about themself, still see everything. |
include | A list of file names or globs (include = ["conf.d/*.toml"], at the top, above every section), relative to the config file: more [sections] and [[tables]] read in order at start and at /REHASH. Each included file starts with a [header], and a section lives in only one file. Errors name the file and line. |
| Protection bundle | A separate optional file, protection.toml (found via [security] protection_file): [exempt], [connection] (caps and connect-flood throttle), [flood], [spam], [blacklist] (DNSBL zones and reply rules) and [scanner] (active open-proxy scan). Overrides the matching legacy keys below. See the protection bundle page. |
[debug_channel] | Oper-only channel (default #server-debug) that relays WARNING+ log lines as notices. With stats_interval, every server's stats line shows up in every server's debug channel, as [server] users .... Enable it with the same name on every server, and set +OsP on it once (see below). |
[links] | Server-to-server linking: mode ("hub", "leaf" or "both"), bind/port, tls, reconnect delays and [[links.peers]]
(each with a password and/or a pinned certificate fingerprint). See server links below, and services for the services link. |
tls
[tls] enabled = true port = 6697 cert_file = "tls/cert.pem" key_file = "tls/key.pem"
A self-signed certificate still encrypts the connection. Clients just need "only allow trusted certificates" unchecked.
Channel mode +z then restricts a channel to clients connected this way.
a real certificate (optional)
If you own a domain pointing at your server and want clients to connect without any trust warning, tools/mkcert.sh gets a free, trusted
Let's Encrypt certificate, drops it where [tls] expects it, enables [tls] if it wasn't,
sets up automatic renewal, and rehashes the running ircd so the new certificate is used without a restart. It is also what browsers need for the web chat
over wss://. Skip it if a self-signed certificate is fine for you.
export DuckDNS_Token=your-token # or prompted; any acme.sh DNS plugin works via --dns tools/mkcert.sh --domain irc.example.org --email you@example.org tools/mkcert.sh --domain irc.example.org --staging # test run with untrusted certs tools/mkcert.sh --domain irc.example.org --dry-run # show what would happen
It installs acme.sh if missing and proves domain ownership with a DNS-01 challenge (a temporary TXT
record), so port 80 doesn't need to be open. The default plugin is DuckDNS; pick another with --dns dns_cf etc. and export that plugin's credentials,
or use --webroot DIR for HTTP-01 instead. Old certificate files are kept as *.bak. Other options: --domain (repeatable),
--config, --pidfile. For web chat it also reminds you to set [websocket] with tls = true if it isn't.
operators
An [[operators]] entry is a /OPER login: name, hosts (ident@IP masks it may log in from)
and exactly one of password_hash (scrypt, recommended) or a legacy plain password.
./bin/sekurircd --hash-password # -> scrypt$16384$8$1$3f9c1a7b2e8d4f56...$91ab... (example, truncated)
[[operators]] name = "admin" password_hash = "scrypt$16384$8$1$<salt-hex>$<digest-hex>" # from the step above hosts = ["*@*"] # or restrict, e.g. ["*@203.0.113.42"]
Already have plain-text passwords in the file? tools/confcheck.py --fix --write turns every one the server can check as a hash
(operators, die_password/restart_password, link peers it only accepts from) into a password_hash: the same passwords keep working.
The ircd logs a reminder at start and on every /REHASH while any are left. The backup it makes still holds the old passwords, so delete it once
/OPER works.
Apply it with /REHASH from an already-opered client, sekurircd --rehash, or a restart, then confirm with
/OPER admin <password>. Rotating a password is the same edit in place. Removing an entry does not deop clients
that are already opered under it until they reconnect.
An optional privileges list limits which oper commands a login may use (without it, everything is allowed):
kill, kline (KLINE/GLINE/ZLINE, SPAMFILTER, PROTECT), sa (SAJOIN/SAPART/SAMODE/SANICK),
host (CHGHOST/SETHOST/CHGIDENT/USERIP), wallops, rehash, die,
link (SQUIT/CONNECT), override (act past channel rules: join through +i/+k/+l/bans, talk through +m/+n/bans,
kick anyone, MODE and TOPIC without ops, message users past +D/+R/+g/+Z), auspex (see what is hidden: real hosts and IPs,
+i users, +p channels, +H opers, idle times, channel keys, TRACE), immune (exempt from SHUN, spam filters and channel
+f/+j limits) and all. NickServ SUSPEND/UNSUSPEND/FDROP/SASET are for services admins
([nickserv] admins, by account), not an oper privilege. privileges = [] makes a helper oper with none of them.
Opers can also come from services: an [[opers]] entry in services.toml makes an account an oper on whichever server it logs in to (see
network operators). [security] accept_services_opers = false makes a server ignore those grants.
An optional modes string (e.g. "+oswH") replaces [security] oper_modes for that login. o is always included; the oper-only H, q, W and F are allowed too.
IPv6
Off by default, so an upgrade changes nothing: without it the server listens and resolves exactly as before, over IPv4 only. Turn it on in
[server]:
[server] ipv6 = true #bind6 = "::" # every interface; [links] bind6 for the link listener #ipv6_limit_prefix = 64 # per-IP limits and cloaks count an IPv6 client by its /64
Every listener (clients, TLS, WebSocket, server links) then also gets an IPv6 socket next to its IPv4 one. These are separate, IPv6-only
sockets, so IPv4 clients keep plain IPv4 addresses and every existing ban keeps matching them. /REHASH turns it on or off.
- Addresses: an IPv6 client shows as e.g.
2001:db8::5. One that would start with:is written0::1, because an IRC parameter can't start with:. Type IPv6 ban masks the same way (0::1,0::/64). - CIDR masks work everywhere an IP is matched, as well as globs: K/G/Z-lines and E-lines,
allowed_ips, operhosts, WEBIRC/class/proxy hosts and protection exemptions, e.g.KLINE *@2001:db8::/32orZLINE 203.0.113.0/24. A literal IP is stored in canonical form, and a/0(everyone) is refused like*. - Limits and cloaks per /64: providers give each IPv6 customer a whole block, so connections per IP, the connect-flood
throttle with its automatic Z-lines, and host cloaks count an IPv6 client by its
/64. Rotating addresses inside it gets around none of them. IPv4 is unaffected. - Lookups: reverse DNS (forward-confirmed), ident, DNSBL (reversed-nibble queries) and link dialing work over IPv6. The proxy scanner stays IPv4-only and skips IPv6 clients.
server links
Servers link into a tree. One server listens ([links] port, a single port for every server that dials in: each one is told apart by the name
it sends, not by port); the others dial it with host/port in their peer entry. You rarely edit these blocks by hand:
the link wizard below does it.
adding a leaf server
A network has one services daemon (NickServ + ChanServ), next to the hub. A leaf runs only the ircd and reaches the hub's NickServ, ChanServ and SASL over the link. If a second services daemon links anyway, the network refuses it (or, when two halves that each run one link up, keeps the older one) and tells opers.
- On the new server:
tools/makeconf.py, answer y to "Is this a leaf of an existing network?". It skips the services questions, writes noservices.toml, and asks for the hub'shost_masking_secretso cloaks match. - Still on the leaf:
tools/linkmgmt.py add, name the hub, choose "this server dials the hub". It writes the leaf's side ([links] mode = "leaf") and prints the hub's side. - On the hub: paste that block into
config/sekurircd.tomland/REHASH(or runtools/linkmgmt.py addthere too). - On the leaf:
./sekurircd start../sekurircd statusshows "services: not run here: this server is a leaf", and/MAPor/LINKSshows it linked.
Turning an existing server into a leaf, or one that has an old services/services.toml:
./sekurircd disable-services # stops them and renames services.toml to services.toml.disabled; users stay connected ./sekurircd enable-services # undo (then ./sekurircd restart-services)
The accounts and channel databases are left where they are. When a leaf is merged into a network, its own accounts are not copied to the hub.
services on their own machine
The services daemon doesn't have to sit next to the hub. It reads nothing from the ircd's disk and only needs the hub's link address, so it can run on a
machine of its own, and then the accounts database is no longer on the internet-facing box. The link carries every IDENTIFY and SASL password,
so across a network it must use TLS: add tls = true to [link] in services.toml. Off by default, so a daemon that
links on 127.0.0.1 is unchanged.
- On the hub:
[links] tls = true(with[tls]enabled), and a[[links.peers]]entry for the daemon (itsnameand password;allowed_ipswith the services machine's address). A hub whose link port uses TLS takes plain text from its own machine only, so a daemon on another one can't link without it. - On the services machine:
services/services.tomlwith[link] host/portof the hub's link listener and:[link] host = "hub.example.net" port = 17000 name = "services.example.net" password = "..." tls = true fingerprint = "sha256:..." # pin the hub's certificate: openssl x509 -in hub.crt -noout -fingerprint -sha256
Withoutfingerprintthe certificate is verified like a web server's: againstca_file(or the system CAs) and for the name inhost. Either way it is checked before the password is sent. - Optional, pin the daemon too:
certandkeyin[link]make it present a certificate, andfingerprint = "sha256:..."on the hub's[[links.peers]]entry for it only lets that certificate in. - Run it alone: with no
config/sekurircd.tomlon that machine,./sekurircd start,stop,restartandstatusmanage the services daemon (and the stats panel, which belongs next to it) and nothing else. With systemd, enableservices.serviceonly.
Still one services daemon per network. A plain-text link to another machine is not refused by default, since installs that were set up that way keep
working, but both sides warn (services in its log, the hub to its opers). To refuse it, set require_tls = true in [link]: the daemon then
links to another machine over TLS or not at all, and says why. The hub's side of the same rule is [links] tls = true, which takes plain text from its
own machine only. tools/makeconf.py and the web wizard ask where services run and write all of this for you, including
require_tls and the hub certificate's fingerprint. /REHASH on the hub still reloads the daemon over the link, and the
[link] TLS settings take a restart like the rest of [link]. A hub that is older than this change already speaks TLS on its link
port, so the daemon can be upgraded first.
the link wizard: add, edit and remove links
tools/linkmgmt.py manages this server's links and tells you exactly what to put on the other one. It asks a few questions (the other
server's name, who dials whom, its address and port, the IPs it may connect from, TLS and certificate pinning, the password, or it generates a strong
one), then:
- writes this server's side: the
[[links.peers]]block and any[links]changes (enabled,mode,tls,port). You see the diff and confirm first; comments and layout are kept. - keeps it safe: a backup
sekurircd.toml.pre-linkmgmt-<date>(private,0600), an atomic write, and the ircd's own--checkon the result. If the server would refuse it, your config is restored untouched. - brings it live: offers to rehash the running ircd, or says when a restart is needed (enabling links, changing TLS, a new listener).
- prints the other server's side, which it can't reach: its
[links]section and peer block (the dialing side gets the password, the accepting side only its scrypt hash), the shared password, and the firewall, restart and/CONNECTsteps. Optionally saved tolink-for-<name>.toml(0600) toscpacross. Delete it afterwards: it holds the password.
tools/linkmgmt.py # menu: list, add, edit, remove, hub, test tools/linkmgmt.py add # link a new server tools/linkmgmt.py edit # password, address, IPs, who dials, pins tools/linkmgmt.py del # remove a link tools/linkmgmt.py hub # turn a linked server into a hub tools/linkmgmt.py fingerprint # this server's cert, for the other to pin tools/linkmgmt.py test HOST PORT --tls # DNS, port, firewall, TLS tools/linkmgmt.py --dry-run add # change nothing, print both sides
$ tools/linkmgmt.py add Name of the other server (its [server] name): irc2.example.net Who opens the connection? 1) irc2.example.net dials irc1.example.net (this server accepts -- usual for a new leaf) 2) irc1.example.net dials irc2.example.net (irc2.example.net accepts) Choice [1]: 1 ... +[[links.peers]] +name = "irc2.example.net" +password_hash = "scrypt$16384$8$1$..." +fingerprint = "sha256:..." +allowed_ips = ["203.0.113.7"] Write this to config/sekurircd.toml? (y/n) [y]: y Written. Backup: config/sekurircd.toml.pre-linkmgmt-20261021-142227 Rehash the running ircd now? (y/n) [y]: y Rehashed. 2) On the OTHER server (irc2.example.net) -- paste these there ...
Turning a leaf into a hub. tools/linkmgmt.py hub makes a server that is linked to a hub also take leaves of its own, and keeps its
uplink: links.mode goes from "leaf" to "both" and it gets a link listener (bind, port). Run it on the
server that becomes the hub and it edits that server's config the same safe way (diff, confirm, backup, --check); or run it on the hub above and it prints
what the server needs, since it can't reach it. Nothing changes on the hub above: the server keeps dialing it through the same peer entry (an
oper_scope or oper_deny on that entry now also covers the opers of the new hub's leaves). The new hub restarts once to switch modes. If its
links use TLS, [links] tls = true applies to its leaves' links as well and the listener reuses its client [tls] certificate, so that must be
enabled. Its first leaf is then added with tools/linkmgmt.py add on the new hub (the leaf dials it, never the hub above too: the network is a tree).
The services link is left alone (it lives in services/services.toml), and the template's commented examples are never touched.
Removing a link doesn't turn tls off, since other links may rely on it.
Encrypt and pin: set [links] tls = true on both servers (the listening one needs [tls] enabled; its certificate is reused) and put
the other server's certificate fingerprint in each peer entry. tools/linkmgmt.py fingerprint prints a server's own.
# on the hub: the leaf that dials in [[links.peers]] name = "irc2.example.net" password_hash = "scrypt$16384$8$1$<salt-hex>$<digest-hex>" # optional once a fingerprint is set fingerprint = "sha256:<the leaf's certificate>" allowed_ips = ["203.0.113.7"] # on the leaf: the hub it dials [[links.peers]] name = "irc1.example.net" password = "the-shared-secret" # optional once a fingerprint is set host = "irc1.example.net" port = 17000 fingerprint = "sha256:<the hub's certificate>"
With a fingerprint, a self-signed certificate is enough (no CA and no tls_insecure_skip_verify), and a server that doesn't show the pinned
certificate is refused before any password is sent or checked. Leave both password keys out and the certificate alone authenticates the link, so
neither server keeps a plain-text secret. After renewing a certificate with a new key, update the fingerprint on the other side and /REHASH.
The services daemon doesn't speak TLS: a TLS link listener still accepts plain links from 127.0.0.1 for it, and only TLS from anywhere else.
The port: anything free works; a number outside the 6660–7000 range that IRC scanners probe (and below 32768, the system's outgoing-port range),
e.g. 17000, cuts the noise. What actually protects it is a firewall rule that only lets your servers in, allowed_ips on each peer,
and the pinned TLS above, or [links] bind on a private network address (WireGuard, your provider's private network) so it isn't public at all.
Changing the port needs a restart of the listening server.
starting and stopping a link
The side whose peer entry has a host dials; the other side accepts. Normally a leaf dials its hub (a mode = "hub" server never dials
out), at start and again after every drop, waiting reconnect_delay and doubling up to reconnect_delay_max. An oper with the
link privilege uses /CONNECT [name] on a server that dials out (to start a link now) and /SQUIT name (to close one; a server
further away is asked through the server it hangs off). A SQUIT only bounces a leaf that has autoconnect on: it dials again after its delay.
To keep a leaf away, take its entry out of the hub's sekurircd.toml and /REHASH the hub. The link is closed at once (opers see
"Link with … closed: its [[links.peers]] entry was removed") and every later attempt is refused, with "no [[links.peers]] entry has that name" in the log.
The same happens when you edit the entry's allowed_ips so that it no longer lists the address the peer is connected from, and to the services
link when its entry goes. A changed password, password_hash or fingerprint does not close an open link (it can't be
checked again, and a rotation shouldn't split the network): /SQUIT it. A hub must keep at least one entry that accepts a leaf: a rehash with none
is refused and changes nothing. The same rule works on a leaf: remove the hub's entry and its uplink closes and isn't dialed again.
limiting which servers may appear behind a link
A linked server may announce whatever is behind it, and its peer accepts that. introduces on a [[links.peers]] entry (either side's) names the servers that may appear behind that peer, as case-insensitive globs; leaf = true says none may. Two hubs, each limiting the other to its own region:
# on newyork.us.sekurnet.org [[links.peers]] name = "frankfurt.eu.sekurnet.org" introduces = ["*.eu.sekurnet.org"] # on frankfurt.eu.sekurnet.org [[links.peers]] name = "newyork.us.sekurnet.org" introduces = ["*.us.sekurnet.org"]
A server that does not fit is refused: it is never entered, so neither it nor its users show on this side, its introducer is asked to drop it, and the link stays up. The peer itself is always accepted, and the list covers every server beyond the link, so a services server behind the peer has to be listed too. A leaf = true peer that announces any server has its link closed. This stops a compromised link, a stolen link password or a misnamed test server from adding servers the network never configured, or from posing as another region's server or as services while the real one is away; it does not limit what the peer says about its own users and channels. Each server enforces its own entries (older servers check nothing), and a rehash that tightens the list closes a link whose servers no longer fit, so the next link-up checks them afresh.
limiting a leaf's opers
By default an IRC operator on any server of the network can use what their privileges allow on every server: KILL a user anywhere, set a
network-wide G-line, SAJOIN a user on another server, REHASH the hub. When a leaf is run by someone else, or you just want its opers to look after
their own server, limit them on the hub, in that leaf's peer entry. The leaf needs no setting: the hub tells it when it links and again
on every /REHASH (no restart, no relink). Hub opers are never limited.
# on the hub [[links.peers]] name = "irc2.example.net" password_hash = "scrypt$16384$8$1$<salt-hex>$<digest-hex>" oper_scope = "local" # "global" (default) | "local" oper_deny = ["override", "auspex"] # taken off that leaf's opers, on top of their own privileges
oper_scope = "local": that leaf's opers keep their own server (KILL, SAJOIN, CHGHOST, K/Z/E-lines, DIE, REHASH, STATS and the rest, as their
privileges allow) but can't reach another one: no KILL, SAJOIN/SAPART/SANICK/CHGHOST/CHGIDENT of a user on another server, no GLINE or SHUN (the
network-wide bans; a K-line stays on their server), no SQUIT of a server that isn't linked to theirs, no REHASH or STATS of another server, no SAMODE on a
channel with users on other servers. Their server says so when they try; if an older or modified leaf sends it anyway the hub drops it, tells the oper,
and posts a notice to its own opers. WHOIS, VERSION and the like, and WALLOPS/GLOBOPS, still work. A limited leaf's own spam filters still shun locally, but those SHUNs don't spread to the rest of the network.
oper_deny takes the same names as an [[operators]] privileges list: kill, kline,
sa, host, wallops, rehash, die, link, override,
auspex, immune, or all. The leaf takes them off every one of its opers as soon as it hears (the hub also
announces a change right after a rehash). override (kick or change modes past channel ranks, join past +i/+k/+b) is the one
oper_scope can't cover, because a channel is shared by every server, so a limited leaf normally denies it too; auspex hides the
real hosts and IPs of your users from them.
What this stops is a leaf's opers and an unmodified leaf. A leaf you don't trust at all can still forge any link traffic: for that, pin its certificate
fingerprint (above) or don't link it. oper_scope and oper_deny belong in the hub's entry (the one without host); a
config that sets them next to host is refused. A leaf runs the limits from the moment it links until it hears otherwise, so a dropped link doesn’t lift them (a restarted leaf has none until it links).
file permissions
sekurircd.toml, services.toml, the TLS key, accounts.json and the ChanServ store hold secrets.
tools/confcheck.py warns about any of them other local users can read or change, and prints the exact fix for each: chmod 600 for
your own files, sudo when another user owns one, or chown to the daemon's user (or 640 through its group) when it runs as
someone else, so the daemon isn't locked out. tools/confcheck.py --fix --write applies the chmod fixes itself for files you own
(--fix alone previews them); the sudo and chown cases are left to you.
host cloaking
[security]
host_masking = true
host_masking_format = "{token}.users.{network}"
host_masking_token_bytes = 4
Real IPs and hostnames stay off the wire. An oper, or the user themselves, still sees the real address via WHOIS.
operators by certificate
An [[operators]] login may name certfp = ["<sha256 hex>"]: /OPER then also needs a TLS client certificate with one of those fingerprints ([tls] request_client_cert = true; colons in the fingerprint are fine). With no password or password_hash the certificate alone is the login. A connection without a matching certificate gets the same "No O-lines" reply as a wrong name.
bans
KLINE, GLINE and ZLINE take an IP mask and an optional duration (1d, 12h, 30m; permanent if omitted).
Set [security] klines_file to persist them across REHASH and restarts. See the protection bundle for DNSBL, the proxy scanner, connect-flood limits and monitoring.
QLINE refuses nicknames by glob, RESV channel names, XLINE realnames (an underscore stands for a space). They apply on every linked server, are kept across restarts in xlines.json next to the K-line file (none: memory only), and an older server in the network simply ignores them. DEFCON tightens one server during an attack, and /CLASS manages connection classes while it runs: see the commands.