Skip to content

IRC (WeirdsPlace)

The WeirdsPlace IRC server irc2.weirdsplace.nl and its services run on the wp-irc-new LXC (VMID 161, Ubuntu 24.04, 2 cores / 1 GB / 8 GB) under the user alex, managed by systemd. Internally reachable as irc.home.janwiebe.eu (AdGuard record straight to the LXC; IRC is not HTTP, so not via Traefik).

Piece Version Where Unit
UnrealIRCd 6.2.8 /home/alex/irc/unrealircd (conf/, data/, logs/) unrealircd.service
Anope services 2.0.21 /home/alex/service/services (conf/, data/) anope.service
Port What
6667 clients
6697 clients, TLS (self-signed cert in conf/tls/)
7070 server links (Anope connects here from 127.0.0.1)

The old compose file published port 7000 for Anope, but nothing ever listened there (m_httpd/webcpanel are commented out in modules.conf), so it is not carried over.

Code: roles/irc_server + playbooks/irc.yml (Semaphore template irc). The role builds both programs from source as alex (UnrealIRCd only with a valid signature from release key 36E6F657…48BB56D), installs the systemd units and refuses to restart on a failing configtest. Upgrading = bump unrealircd_version / anope_version in roles/irc_server/defaults/main.yml and run the playbook. The IRC configuration and the Anope database are not templated: edit them in place.

systemctl status unrealircd anope
sudo -u alex /home/alex/irc/unrealircd/unrealircd configtest     # before every restart
sudo -u alex /home/alex/irc/unrealircd/unrealircd rehash          # reload the config
journalctl -u unrealircd -u anope

Migration from wp-irc-old (2026-11-27)

wp-irc-old (VM 100 on node06) ran UnrealIRCd 3.2.10.4 and Anope 2.0.6 as two docker-compose stacks (ghcr.io/jwklijnsma/wp01-irc, ghcr.io/jwklijnsma/services-wp). It keeps running until clients are moved over; nothing on it was changed.

  1. /home/alex/irc and /home/alex/service copied 1:1 (the old 3.2 tree stays in /home/alex/irc/Unreal3.2 for reference; Anope 2.0.6 backup in services.anope-2.0.6-backup).
  2. UnrealIRCd 6 has no upgrade-conf for 3.2 any more, so the config was converted with /usr/local/sbin/unreal32to6 (roles/irc_server/files/unreal32to6.py): unrealircd.conf + opers.conf, links.conf, webirc.conf, aliases-custom.conf, spamfilter-custom.conf, badwords-custom.conf. Secrets are carried over, never printed. What could not be translated is in conf/conversion-notes.txt:
  3. set::hosts, host-on-oper-up, snomask-on-oper, oper-only-stats, throttle have no 6.x equivalent (use oper::vhost for oper hosts; connection throttling = connthrottle defaults)
  4. badword quit blocks dropped (6.x filters quits with the channel list)
  5. cloaking stays on cloak_md5 with the old keys, so existing cloaked hosts/bans still match
  6. spamfilter regexes containing :// are written as :/[/] (6.x would treat them as URLs)
  7. links to irc1/irc2 were commented out in 3.2 already; 6.x can not link to 3.2 servers anyway
  8. Anope: uplink → 127.0.0.1:7070, protocol module unreal → unreal4 (needed for 6.x; old file kept as conf/services.conf.anope-2.0.6). The 2.0 database format is unchanged.
  9. Oper passwords are still plain text as in 3.2 (6.x accepts that). Hash them when convenient: ./unrealircd mkpasswd and replace password "…" in opers.conf.

Switching clients: point irc.weirdsplace.nl (public DNS on web01) and any port forwards from 10.0.3.27 to wp-irc-new, then stop the two compose stacks on wp-irc-old.