mirror of
https://github.com/D-Modem/login.git
synced 2026-11-28 20:38:06 -08:00
- [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
1.6 KiB
1.6 KiB
Building
Go 1.22 or later:
make # or: go build ./cmd/modemmenu (-tags pam for PAM)
make PAM=0 # without PAM, when libpam's headers are there
make test
make install # /usr/local/bin/modemmenu, and the samples into
# /etc/asterisk (and /etc/pam.d) if there are none
make builds with PAM when libpam's headers are installed
(libpam0g-dev on Debian and Ubuntu, pam-devel on Fedora). Without
them modemmenu builds with the other backends, and auth = system is a
configuration error.
The source
One Go module, one program:
| Where | What |
|---|---|
cmd/modemmenu/ |
the program: the login, the menu, access rules and time limits, the selections, -serve, AutoPPP, drop files, the auth socket's server |
internal/config/ |
modemmenu.conf's sections and keys, and the {name} templates |
internal/term/ |
the caller's line: reads, writes and line editing, terminal detection, PETSCII |
internal/auth/ |
the backends (users file, LDAP, SQL, system by PAM) and password changes |
internal/telnet/ |
the telnet client of mode = telnet items |
authd/ |
the auth socket's protocol and a client, for other programs (a BBS) to import |
pppd/ |
pppd's modemmenu.so plugin, in C |
dialup/ |
the PPP callers' network: VRF, firewall, DNS with overrides (make install-dialup) |
samples/ |
modemmenu.conf, the users file, PAM and systemd samples |
freepbx/ |
the FreePBX setup |
tools/confref/ |
makes docs/reference.md from samples/modemmenu.conf.sample |