bbs.service.sample becomes bbs.service.in. make builds bbs.service from
it with the path of BINDIR, and make install puts it in
SYSTEMD_UNIT_DIR ($(PREFIX)/lib/systemd/system), as D-Modem does for
dmodem-ari.service. The unit now waits for network-online.target and,
when they are there, the database servers and dmodem-login-authd.
SupplementaryGroups=asterisk is a comment, because the unit does not
start on a host without that group. Running.md gives the steps after
make install.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV8YPyMUdSM1QgsczH
Correct the wiki pages where they differ from the code (missing keys,
defaults, commands, packages, menu keys and metric names), complete the
Home page index, and fix Simplified Technical English problems. Correct
the sixel default for ssh listeners in bbs.conf.sample and regenerate
Configuration-Reference.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSvurgAXJHmd8Fs4ud
The menu repository is now D-Modem/login, and modemmenu is dmodem-login.
- go.mod: github.com/D-Modem/login (its authd client) for
github.com/D-Modem/menu
- [dmodem-login] is the section of its auth socket; [modemmenu], the old
name, is still read (both at once is an error), and the setup edits
whichever the file has
- the sample, the wiki (Configuration-Reference made again), the log
lines and the comments name dmodem-login and /run/dmodem-login
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTD8BSptdpaUWGcs65
The receiver sets CANZSTD (0x40) in the ZF1 of its ZRINIT. The sender
sets ZTZSTD (8) in the ZF2 of a ZFILE to send that file as independent
zstd frames (at most 64 KiB of the file each, halved on each ZRPOS).
All positions stay offsets in the file, and the receiver writes and
acknowledges only whole frames, so ZRPOS recovery and resume work as
before. Legacy peers do not set the bit and get plain ZMODEM.
Uploads of a known size that stop early are kept for 7 days and resumed
by ZRPOS when the same user sends the same file again. Downloads seek on
ZRPOS (the download reader did not seek before). A second ZRINIT after
the first is now dropped, so its stale ZRPOS no longer sends a segment
again.
zmodem_zstd in [general] turns zstd off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR1WNeCEtXUcjE8RgY
The first phase of customizable menus, as in Mystic BBS and Synchronet.
- menus_dir: NAME.menu files, with a [menu] section and an [item KEY]
section for each item. An item does one or more commands (with ";"
between them), can be hidden, and can have a requirement. A key is a
character, a word (the caller types a line) or a special key: @first,
@every, @enter. A menu can have a fail menu for callers without access.
- A catalog of commands (bbs.Commands) with data and checks, and the
menu commands menu.gosub, menu.goto, menu.return and menu.main on a
stack of menus. The [menu] lines of bbs.conf keep their syntax.
- The built-in main menu is now a menu file of the Classic theme
(internal/app/menus/main.menu), run by the same engine. An item whose
command is not available to the caller is not shown, and @NOTE@ gives
the counts of new mail, pages and users that wait.
- Text and 3270 front ends: hidden keys and typed words.
- docs/wiki/Customization.md: the menus section, in STE.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRQvYyBEEXAiGy2xSd1
Signed-off-by: Claude <noreply@anthropic.com>
* confui, sysop tools: every option says what it does
Every key the sample shows bare gets help (the catalogue's keyHelp, and
commonHelp for address, max_clients, tls and the certificate files), so
the configuration reference has it too; every menu and action of the
configuration screens has its line of help (helpOfItem, and each list's
entries, Add and Delete); a test opens every page, with one of each named
section and a database, and fails on a line without help.
The sysop tools menu's items say what each does beside it (view.Item
Help: one column on a text terminal, a wider box on a 3270).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRorB6EaJ9gFhio2Fa
* Make the config editor's section lookups skip the regexp for plain lines
Every redraw finds sections through Doc.span, which ran the header regexp
on every line of bbs.conf; with the sample's thousand-odd lines that made
the help walk time out under -race in CI. Lines not starting with [ are
no header, so they skip it now; the walk also opens each page once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRorB6EaJ9gFhio2Fa
---------
Co-authored-by: Claude <noreply@anthropic.com>
Each [dnsrecord NAME] is one record (name, by default NAME, *.domain for
every name under it; type, by default A or AAAA from the address; value
as a zone file writes it; ttl, by default [dns]'s), answered as it is to
anyone, before the services' names and with nothing asked upstream. A
type the name has none of is answered empty; a CNAME is followed to a
target here; a record for a service's name takes the place of its answer
for that type. bbs check refuses one it cannot read.
The configuration screens have them under DNS for callers, DNS records:
the type from a list, an A or AAAA's address from this machine's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRorB6EaJ9gFhio2Fa
The TLS 1.0 server for SSL 2.0-format hellos moved to D-Modem/retrossl,
which also serves SSL 3.0. The OSCAR TLS port now sends SSL 3.0-only
clients there too; the shared ports still send only SSL 2.0-format
hellos, to the route that takes them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRH4kntyPfrY1bFWC3
Most free-text settings of the configuration screens are now lists to pick
from, made from what there is: certificates ([acme]'s, and the files other
servers use) and the key that goes with one; an address's every-address,
this-machine and each-IP forms, marked when another server has it; [dns]
answers from the services' IPs; levels by their names; a menu item's
actions (the doors, menus, screens, scripts, areas), with Add a menu item;
the screens, AKAs, feed groups and areas, the machine's users and groups;
and the fixed values of ACME, TLS, outbound mail and the rest, with notes.
A list may be open (a value of one's own typed too) or of some at once
(by commas). The full-screen list shows notes and checkboxes; a 3270's S
and a plain terminal's number open a numbered table; F1 lists the choices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRorB6EaJ9gFhio2Fa
The root (ca/ca.crt), the one callers install, now signs only sub-CAs
(pathlen 1). The services sub-CA signs tls_cert = ca servers' certificates;
bbs ca subca NAME makes another (proxy, for a TLS proxy such as WebOne's
port) with its own key. Leaves carry their sub-CA's certificate after them.
bbs ca issue takes -ca NAME (default services). A root from before, which
could sign no sub-CAs, is refused with how to replace it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTuaG98f8wiWHbNhPo
tls_cert = ca ([msn], [ymsg], [oscar]) and cert_file = ca ([gemini]) have
the BBS's CA sign the server's certificate for the names its clients ask
for: bbs serve makes the CA if there is none, signs at start and looks
daily, keeping keys across renewals (Gemini's good as long as the CA, as
its clients pin). RSA 2048 throughout; bbs ca init -sha1 for Windows
before XP SP3.
bbs ca issue signs a certificate for a TLS proxy; bbs ca package (and
serve, into ca/install-ca.zip) writes what puts the CA on callers'
machines: the .cer, an .inf and .reg writing the machine's trusted roots
(Windows 95 on), remove-ca.reg, an install .bat (certutil), a macOS/iOS
.mobileconfig, the PEM and a README with the fingerprint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTuaG98f8wiWHbNhPo
With the chat's HTTPS services each on an IP of their own, a port on
every address for another can't be listened on beside them. The editor
now refuses such an edit at once (the old value put back, the reason
shown) instead of only at save. A file already mixed can still be put
right an edit at a time. The DNS server joins Internet services.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTuaG98f8wiWHbNhPo
A front end whose HTTPS (TLS) server is on an IP of its own, with a
self-signed certificate of its own, now has its names answered with that
IP: taken from its https_address (or [oscar] tls_address, or address),
or set as [dns] <service>_answer (an IPv4 and an IPv6 address at most).
One port on every address for one front end and on an IP of its own for
another can't both bind, so that mix is refused at check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTuaG98f8wiWHbNhPo
[dns] answers the old services' login names (MSN Messenger and Passport,
AIM/ICQ, AOL, Yahoo! Messenger, MSN Classic, CompuServe) with the BBS's
own address, for the front ends set up here, so clients find the BBS
without hosts-file edits. Every other name is resolved through the host's
DNS servers (resolv.conf, or systemd-resolved's own list) or a sysop's
primary and backup, cached by TTL (negative answers by SOA), with
recursion limited to private networks and a per-address UDP rate limit.
Since those names all lead to one address, MSN's Passport, Yahoo!'s login
and AIM's TLS can now share port 443 (and the web halves port 80):
internal/vhost takes the connections and routes each by SNI, then Host,
then path, with non-HTTP TLS (OSCAR, SSL 2.0 hellos) going to AIM.
The chat front ends' ports and DNS's are bound as root before dropping
privileges.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTuaG98f8wiWHbNhPo