- the samples' subnet moves to 100.77.0.0/24, in RFC 6598's shared
address space, which no home or office LAN uses (Tailscale's caveat
noted)
- an empty ALLOW_CIDRS (the default) or port list left a stray brace in
the nftables rules, so modemmenu-dialup up failed: the set's elements
line is now built apart
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTwDhoXdaYHRwQ4BT
- [ppp_pool]: each PPP caller gets its own address of a range
({ppp_local}, {ppp_remote}, {ppp_dns}, {ppp_dns2} and MODEM_PPP_*),
as flock'd lock files in state_dir/ppp-pool shared by every modemmenu
and -serve session, so several lines can run PPP at once. The samples
move to 10.77.0.0/24 with the pool.
- dialup/: modemmenu-dialup puts the callers' links in a VRF of their
own, egress by a VLAN, the host's uplink (NAT) or none, with an
nftables firewall: only the listed service ports of the host, no
private range (host LANs, other callers) unless ALLOW_CIDRS opens it.
pppd's ip-up.d/ip-down.d hooks attach each link.
- modemmenu-dns: dnsmasq in the VRF on 10.77.0.1, with overrides from
/etc/modemmenu/dns.d/*.conf (AIM/ICQ, AOL, MSN, Yahoo names ready).
- make install-dialup, docs/dialup-network.md; confref reads section
names with underscores.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTwDhoXdaYHRwQ4BT
All of modemmenu was one package main in the repository's root. It is
now one module with the program and the pieces it is made of apart:
cmd/modemmenu/ the program (the login, the menu, access, limits,
the selections, -serve, AutoPPP, drop files, the
auth socket's server)
internal/config/ modemmenu.conf's sections and keys, {name} templates
internal/term/ the caller's line, terminal detection, PETSCII
internal/auth/ the backends and password changes
internal/telnet/ the telnet client of mode = telnet items
authd/ the auth socket's protocol and a client, for a BBS
to import (bbs's internal/menuauth is a copy of it)
samples/ the .conf, .users, .pam and .service samples
make builds ./cmd/modemmenu and installs the samples from samples/; the
docs, confref and the site's reference follow. The tests are where
their code is, none lost. TestSampleHasEveryKey now reads the keys of
internal/ too (and the exported Get, Bool...: it would have found none).
.gitignore's "modemmenu" ignored cmd/modemmenu/ as well: it is
/modemmenu now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRbjf74j8oq9R3PXhA
docs/reference.md lists every section and key of modemmenu.conf with its
help, the sample's value and the other values the sample shows, read
from the comments of modemmenu.conf.sample by go run ./tools/confref.
TestSampleHasEveryKey fails when the code reads a key the sample doesn't
show: max_input and an item's terminal were missing and are now in it.
The docs index and Configuration link the reference.
mkdocs.yml builds docs/ and the README with brand's shared theme
(Zensical); .github/workflows/pages.yml calls brand's site workflow,
which also fails when docs/reference.md is out of date.
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
Co-authored-by: Claude <noreply@anthropic.com>
Building, running from app_dmodem, configuration, authentication, PPP,
security notes and the tests move from the 827-line README into docs/,
unchanged but for their heading levels and relative links. The README
keeps a summary, the sample session, features, a quick start, the
suite's repositories and the licence. D-Modem-RE becomes D-Modem.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn