dialup: callers always isolated from each other

Anything from one caller to another (SUBNET) is dropped before
ALLOW_CIDRS is looked at, so no allowed range can open it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTwDhoXdaYHRwQ4BT
This commit is contained in:
Claude committed 2026-11-08 13:50:32 +00:00
1 parent 06d7aa7734
commit 3577eeffbe
3 files changed
+15 -9

No files matched your search

+5 -5
View File
@@ -37,11 +37,11 @@ UPLINK_GATEWAY=
# VLAN routes SUBNET back to VLAN_ADDR itself)
NAT=yes
# What callers may reach. BLOCK_CIDRS are dropped (the private ranges by
# default, so the host's LANs and the other callers are out of reach),
# except ALLOW_CIDRS, which the sysop opens, e.g. ALLOW_CIDRS="192.168.1.20/32"
# for one machine, or SUBNET for callers to reach each other. The
# internet (anything else) is open while INTERNET=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
+2
View File
@@ -67,6 +67,8 @@ table inet $NFT_TABLE {
ct state established,related accept
meta nfproto ipv6 drop
ip saddr != $SUBNET drop
# callers never reach each other, whatever ALLOW_CIDRS says
ip daddr $SUBNET drop
ip daddr @allow accept
ip daddr @block drop
$internet
+8 -4
View File
@@ -72,13 +72,17 @@ up, from `/etc/modemmenu/dialup.conf`:
`SERVER_ADDR` (DNS, telnet, HTTP(S), MSN 1863, Yahoo 5050, OSCAR and
AOL 5190 by default), and ping. SSH, the PBX's web UI and every other
port of the host are closed to them.
- callers are isolated from each other: anything from one caller to
`SUBNET` (another caller) is dropped, before and whatever
`ALLOW_CIDRS` says. They still meet in the host's services (the BBS,
the messengers) on 10.77.0.1.
- onward: `BLOCK_CIDRS` are dropped (every private range, link-local
and multicast, by default), so the host's LANs, and the other callers,
are out of reach, except `ALLOW_CIDRS`, which the sysop opens:
and multicast, by default), so the host's LANs are out of reach,
except `ALLOW_CIDRS`, which the sysop opens:
```
ALLOW_CIDRS="192.168.1.20/32" # one machine on the LAN
ALLOW_CIDRS="192.168.1.0/24 10.77.0.0/24" # a LAN, and caller to caller
ALLOW_CIDRS="192.168.1.20/32" # one machine on the LAN
ALLOW_CIDRS="192.168.1.0/24" # a whole LAN
```
The rest, the internet, is open while `INTERNET=yes`.