Signed in on the BBS, Your profile's Sign-in code (C, PF10) gives a code
(ABCD-EFGH, 40 bits, no 0/O/1/I), good once for five minutes; a new one
ends the last. The forum's Sign In page takes the code alone; anywhere a
password is asked (web terminal, image boards, API, FTP), it serves once
for the password with the user's name.
Codes are kept in memory as their SHA-256, never logged; a wrong one is
a failed login (throttled, the hack log), a locked account's opens
nothing (BBS.authenticate: the same path as passwords). SSH keys are now
on the profile of accounts modemmenu made too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
[modemmenu] auth_socket: the accounts modemmenu logs in (external, no
password here) log in any other way (telnet, SSH, TN3270, the web forum
and terminal, the API, FTP, NNTP, IRC) with their modemmenu password:
BBS.Authenticate asks modemmenu's [authd] socket, and modemmenu its
backends (users file, LDAP, SQL, PAM) as at its own prompt. Nothing of
the password is kept here.
An account with a password of its own here is never asked of modemmenu.
create_users (yes): a user modemmenu knows and the BBS does not gets an
external account at their first login, a name the BBS takes and the
name_deny_file allows. A wrong password counts as any failed login;
modemmenu not answering is trouble, not counted against the caller.
Connections and modems has the keys.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- the reader gives an address's region (the first subdivision) and city
where the database has them: GeoLite2/GeoIP2 City and DB-IP's City
Lite as MaxMind DBs; DB-IP's city CSV and IP2Location LITE DB3 and up
as CSVs (now read with encoding/csv, quoted fields and all)
- CSVs stream in (gzipped or not) and are kept small: each place once,
each range by its start, IPv4 apart in 4 bytes; DB-IP's city list,
7.8 million ranges, in 135 MB
- geoip.File reads the first time at once and later changes in the
background, the old reader answering meanwhile; the server reads the
database when it starts; the image boards share the BBS's when the
file is the same
- bbs.Place has the city; the log and the sysop's node list show
"Mountain View, California, United States"; who's online, the API and
the forum's flags still show only the country
- checked against MaxMind's reader on DB-IP's city database of October
2026 in both formats: the same country, region and city for 200,000
addresses
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
NANPA's report of 14 October 2026 (reports.nanpa.com/public/
npa_report.csv) has thirteen geographic area codes in service that
libphonenumber's data of 8 October lacks: 357, 436, 457, 465, 471, 483,
621, 624, 679, 729, 837, 861 and 924 (the nine dropped before among
them), and 538, 542 and 543 for personal services.
The generator now takes the report too (-nanpa; make phone-data
NANPA=...) and writes nanpa.go: each area code in service, or announced
with its day, with its country and state or province, or what service
it is. A number in an area code NANPA has in service is one even
before libphonenumber has it; the area's place is NANPA's state or
province unless libphonenumber names the exchange; an announced code
(273 Quebec, 565 Georgia...) becomes a number on its day.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
NANPA's site was out of reach, so the hand-made tables were checked
against Google's libphonenumber (its data of 2026-10-08, kept up from
NANPA and the national regulators) and then replaced by it:
- the area-code check found 273 (Quebec) and 633 (Canadian personal)
missing, and nine US codes it has nowhere (357, 436, 457, 483, 624,
679, 837, 861, 924): those are gone with the old tables
- internal/phone/gen makes metadata.go (every territory's calling code,
international and trunk prefixes, shared-code rules, number kinds and
formats) and places.gz (269,198 prefixes to places, 151 calling codes)
from a libphonenumber checkout: make phone-data
- Parse follows libphonenumber's rules: national prefixes taken off and
transformed, shared codes told apart by leading digits and plans,
the kind of number (fixed line, mobile, toll-free...), the place to
the exchange where known, and numbers written as each country does
(+44 20 7123 4567, +81 3-1234-5678)
- checked against nyaruka/phonenumbers on 34,362 numbers: the same
country, kind and place for all; formats differ only for the Faroes,
where its bundled data is older
- the tables load when first wanted (about 6 MB); the sysop's node list
says which callers are on mobiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- internal/phone reads modem caller IDs with its own tables: the ITU's
country calling codes (shared ones told apart), the NANP's area codes
by state and province, toll-free and other services, and how each
country dials, so national numbers read as [general] phone_country
- [general] geoip (with geoip_credit) is the BBS's country database;
[chan] geoip falls back to it. geoip.File keeps a database file up
to date for both
- bbs.Locate and Node.Place: a caller's place by caller ID, else by
address; the connect log, who's online (the country), the sysop's node
list (number and state) and the API's /who show it
- messages keep the poster's country (messages.country); the web forum
shows its flag by the poster's name in every theme and on Online
Users, with the database's credit at the foot ([http] forum_flags)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
The README's sections become pages (Building, Running, Administration,
Configuration, Modem callers, TN3270, Sixel graphics, Files and FTP, File
transfers, Doors, Newsgroups and NNTP, FidoNet, Security, Development)
with a Home page, sidebar and footer, kept in docs/wiki in the wiki's own
file layout. Administration gains the whole command reference and
Configuration a map of every section. docs/wiki/publish.sh copies them
to the wiki, and the Wiki workflow does it when they change on the
default branch. The README keeps the introduction, a quick start and
links to the pages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr