Say that containers' ports are reachable from this machine only
CoreDesktop's commit ffbaf71 keeps other machines on the network from reaching ports Docker containers publish, unless you run ufw-docker allow. The Firewall section and the "What CoreDesktop changes" table now say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@ sections:
|
|||||||
body: |
|
body: |
|
||||||
Incoming connections are blocked except SSH (22, keys only), mDNS (5353/udp), LocalSend (53317) and anything arriving over Tailscale.
|
Incoming connections are blocked except SSH (22, keys only), mDNS (5353/udp), LocalSend (53317) and anything arriving over Tailscale.
|
||||||
|
|
||||||
Docker normally publishes container ports around ufw, so **ufw-docker** is installed too. To let a container's port through, or to open a port for something else, such as a dev server you want to reach from another machine:
|
Docker normally publishes container ports around ufw, so **ufw-docker** is installed too. A port a container publishes is reachable from this machine only, not from others on the same network, a café's Wi-Fi say. To let a container's port through, or to open a port for something else, such as a dev server you want to reach from another machine:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo ufw-docker allow {container} {port}
|
sudo ufw-docker allow {container} {port}
|
||||||
@@ -135,7 +135,7 @@ sections:
|
|||||||
- ["pacman hook", "`/etc/pacman.d/hooks/00-coredesktop-guard.hook` runs `/usr/local/lib/coredesktop/pacman-guard`, which stops full upgrades run without `update` (see [System defaults](#system-defaults)). Delete the hook to turn it off"]
|
- ["pacman hook", "`/etc/pacman.d/hooks/00-coredesktop-guard.hook` runs `/usr/local/lib/coredesktop/pacman-guard`, which stops full upgrades run without `update` (see [System defaults](#system-defaults)). Delete the hook to turn it off"]
|
||||||
- ["Mirrors", "reflector rewrites `/etc/pacman.d/mirrorlist` once a week with fast HTTPS mirrors that synced with Arch in the last 12 hours, using `/etc/xdg/reflector/reflector.conf`. To choose your own mirrors, delete that file's first (CoreDesktop) line and edit the rest; to stop CoreDesktop changing your mirrors at all, add `reflector` to `~/.config/coredesktop/skip-packages`"]
|
- ["Mirrors", "reflector rewrites `/etc/pacman.d/mirrorlist` once a week with fast HTTPS mirrors that synced with Arch in the last 12 hours, using `/etc/xdg/reflector/reflector.conf`. To choose your own mirrors, delete that file's first (CoreDesktop) line and edit the rest; to stop CoreDesktop changing your mirrors at all, add `reflector` to `~/.config/coredesktop/skip-packages`"]
|
||||||
- ["SSH", "sshd is on, with key login only (`/etc/ssh/sshd_config.d/10-coredesktop-keys-only.conf`). Client keepalives are in `/etc/ssh/ssh_config.d/20-coredesktop-keepalive.conf`"]
|
- ["SSH", "sshd is on, with key login only (`/etc/ssh/sshd_config.d/10-coredesktop-keys-only.conf`). Client keepalives are in `/etc/ssh/ssh_config.d/20-coredesktop-keepalive.conf`"]
|
||||||
- ["Firewall", "ufw is on, with the [rules above](#firewall), and ufw-docker's rules in `/etc/ufw/after.rules`"]
|
- ["Firewall", "ufw is on, with the [rules above](#firewall), and ufw-docker's rules in `/etc/ufw/after.rules`, changed so that ports containers publish are reachable from this machine only, unless you allow one"]
|
||||||
- ["Login lockout", "`deny` and `unlock_time` in `/etc/security/faillock.conf`"]
|
- ["Login lockout", "`deny` and `unlock_time` in `/etc/security/faillock.conf`"]
|
||||||
- ["systemd", "A 10-second stop timeout (`/etc/systemd/system.conf.d/` and `/etc/systemd/user.conf.d/10-coredesktop-timeout.conf`), systemd-oomd for apps (`/etc/systemd/user/app.slice.d/10-coredesktop-oomd.conf`), and NetworkManager-wait-online masked"]
|
- ["systemd", "A 10-second stop timeout (`/etc/systemd/system.conf.d/` and `/etc/systemd/user.conf.d/10-coredesktop-timeout.conf`), systemd-oomd for apps (`/etc/systemd/user/app.slice.d/10-coredesktop-oomd.conf`), and NetworkManager-wait-online masked"]
|
||||||
- ["`/etc/security/pam_env.conf`", "A PATH line, so SSH commands find `~/.local/bin` and mise"]
|
- ["`/etc/security/pam_env.conf`", "A PATH line, so SSH commands find `~/.local/bin` and mise"]
|
||||||
|
|||||||
Reference in New Issue
Block a user