mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-02 18:53:59 +01:00
fix(nfs,libvirt): restrict the golden export and bind VNC to loopback (#400)
* fix(nfs): restrict the golden export to its real clients * fix(libvirt): bind VNC consoles to loopback * fix(firewall): drop VNC ports on every host * docs(security): record the NFS and VNC boundaries
This commit is contained in:
1 parent
43f39e8e9f
commit
3acb5d4ee5
6 files changed
+50
-20
No files matched your search
@@ -38,6 +38,11 @@ in
|
||||
# this does not restrict other IPv6 services or loopback access.
|
||||
meta nfproto ipv6 tcp dport { 9100, 9835, 9633 } drop
|
||||
|
||||
# VNC consoles (libvirt on the VM hosts, and x11vnc inside the guests)
|
||||
# are never exposed to the LAN, tailnet, or containers: reach them
|
||||
# through an SSH tunnel. Loopback is accepted by the firewall's own rule.
|
||||
tcp dport { 5900, 5901, 5902, 5903, 5910 } drop
|
||||
|
||||
# The local container bridge and the tailnet have the same access as the
|
||||
# LAN. Kept after the drop above so neither can reach node_exporter.
|
||||
iifname "podman0" accept
|
||||
|
||||
Reference in new issue
Block a user