mirror of
https://github.com/D-Modem/login.git
synced 2026-11-28 12:28:07 -08:00
The program is dmodem-login (like dmodemd and dmodem-ari), the Go module github.com/D-Modem/login, the site d-modem.github.io/login. Its files, units, sockets, PAM service, pppd plugin, environment (DMODEM_LOGIN_*) and nftables tables follow. An old installation keeps working: - make install puts a modemmenu link to dmodem-login, and a modemmenu.so link to the plugin, which also takes its old modemmenu-socket option - the default configuration, users file, state_dir and PAM service fall back to modemmenu's when only those are there (config.Legacy) docs/rename.md (Simplified Technical English) lists the new names and what an old installation must change (the -serve socket, the units, the /etc/modemmenu files, the old nftables tables). CI's bbs job moves a bbs that still imports github.com/D-Modem/menu to the new path. The pppd plugin builds clean with -Wall -Wextra on GCC and Clang. COMMERCIAL-LICENSE.md and CONTRIBUTING.md (legal text) are not changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRTD8BSptdpaUWGcs65
55 lines
2.2 KiB
Plaintext
55 lines
2.2 KiB
Plaintext
# /etc/dmodem-login/dialup.conf: the dial-up callers' network, read by
|
|
# dmodem-login-dialup (at boot, by dmodem-login-dialup.service) and by pppd's
|
|
# ip-up.d/ip-down.d hooks. Shell syntax.
|
|
#
|
|
# Callers get addresses from dmodem-login's [ppp_pool] in SUBNET, in a
|
|
# routing table of their own (a VRF), so that the host's own networks are
|
|
# not theirs: they reach the host's services on SERVER_ADDR (the ports
|
|
# below), the internet through EGRESS, and of the host's LANs only what
|
|
# ALLOW_CIDRS lets through.
|
|
|
|
# the VRF device and its routing table
|
|
VRF=dialup
|
|
VRF_TABLE=77
|
|
|
|
# the callers' subnet: [ppp_pool] range is in it, and its local is
|
|
# SERVER_ADDR. Pick one no network of the host uses: 100.64.0.0/10
|
|
# (RFC 6598, carrier-grade NAT) is not a LAN's, though Tailscale uses it.
|
|
SUBNET=100.120.224.0/19
|
|
SERVER_ADDR=100.120.224.1
|
|
|
|
# Where the callers' traffic leaves:
|
|
# vlan a VLAN of its own on UPLINK (UPLINK.VLAN_ID), with its own
|
|
# address and gateway: dial-up never shares the host's LAN
|
|
# uplink out of UPLINK, through the host's gateway (NAT), filtered
|
|
# none no internet: the host's services only
|
|
EGRESS=uplink
|
|
UPLINK=eth0
|
|
|
|
# EGRESS=vlan: the VLAN, this host's address on it, its router
|
|
VLAN_ID=77
|
|
VLAN_ADDR=10.177.0.2/24
|
|
VLAN_GATEWAY=10.177.0.1
|
|
|
|
# EGRESS=uplink: the gateway ("": the host's default gateway on UPLINK)
|
|
UPLINK_GATEWAY=
|
|
|
|
# masquerade the callers behind the egress address (no: the router on the
|
|
# VLAN routes SUBNET back to VLAN_ADDR itself)
|
|
NAT=yes
|
|
|
|
# What callers may reach. Other callers: never (SUBNET is always
|
|
# dropped). BLOCK_CIDRS are dropped (the private ranges by default, so the
|
|
# host's LANs are out of reach), except ALLOW_CIDRS, which the sysop opens,
|
|
# e.g. ALLOW_CIDRS="192.168.1.20/32" for one machine. The internet
|
|
# (anything else) is open while INTERNET=yes.
|
|
ALLOW_CIDRS=""
|
|
BLOCK_CIDRS="10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 100.64.0.0/10 169.254.0.0/16 224.0.0.0/4 240.0.0.0/4"
|
|
INTERNET=yes
|
|
|
|
# the host's services callers may use on SERVER_ADDR: DNS (the resolver
|
|
# of dmodem-login-dns.service), telnet, HTTP(S), MSN 1863, Yahoo 5050,
|
|
# OSCAR/AOL 5190. The host's other ports are closed to them.
|
|
HOST_TCP_PORTS="53 23 80 443 1863 5050 5190"
|
|
HOST_UDP_PORTS="53"
|