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
11 lines
397 B
Bash
Executable File
11 lines
397 B
Bash
Executable File
#!/bin/sh
|
|
# /etc/ppp/ip-up.d/modemmenu-dialup: a dial-up caller's link (its local
|
|
# address is dialup.conf's SERVER_ADDR) into the callers' VRF and
|
|
# firewall; pppd's other links are left alone
|
|
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 attach "$PPP_IFACE"
|