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
10 lines
326 B
Bash
Executable File
10 lines
326 B
Bash
Executable File
#!/bin/sh
|
|
# /etc/ppp/ip-down.d/modemmenu-dialup: the link's name off the firewall's
|
|
# list, for the next link of that name
|
|
CONF=/etc/modemmenu/dialup.conf
|
|
[ -r "$CONF" ] || exit 0
|
|
# shellcheck source=/dev/null
|
|
. "$CONF"
|
|
[ "${PPP_LOCAL:-}" = "$SERVER_ADDR" ] || exit 0
|
|
exec /usr/local/sbin/modemmenu-dialup detach "$PPP_IFACE"
|