diff --git a/dialup/dialup.conf.sample b/dialup/dialup.conf.sample index fc302e3..039931e 100644 --- a/dialup/dialup.conf.sample +++ b/dialup/dialup.conf.sample @@ -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 diff --git a/dialup/modemmenu-dialup b/dialup/modemmenu-dialup index 09220fa..485e788 100755 --- a/dialup/modemmenu-dialup +++ b/dialup/modemmenu-dialup @@ -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 diff --git a/docs/dialup-network.md b/docs/dialup-network.md index 1fef1cb..23a47db 100644 --- a/docs/dialup-network.md +++ b/docs/dialup-network.md @@ -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`.