[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eManual firewall rule provisioning is necessary for Google Distributed Cloud (GDC) air-gapped appliances due to their static management network allocation.\u003c/p\u003e\n"],["\u003cp\u003eHost-based firewall policies must be applied manually to manage network traffic flows using the Uncomplicated Firewall (\u003ccode\u003eufw\u003c/code\u003e) command library on the management network (\u003ccode\u003eeno1\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebm01\u003c/code\u003e machine, with IP 198.18.255.228, is the root admin/org admin node and requires specific \u003ccode\u003eufw\u003c/code\u003e rules to allow traffic from \u003ccode\u003ebm02\u003c/code\u003e and \u003ccode\u003ebm03\u003c/code\u003e on specified ports and protocols, as well as SSH access.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebm02\u003c/code\u003e (198.18.255.229) and \u003ccode\u003ebm03\u003c/code\u003e (198.18.255.230) org nodes require \u003ccode\u003eufw\u003c/code\u003e rules that permit traffic from the root admin node (\u003ccode\u003ebm01\u003c/code\u003e) on specific ports and protocols, along with SSH access.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eufw\u003c/code\u003e policies must be enabled on \u003ccode\u003ebm01\u003c/code\u003e, \u003ccode\u003ebm02\u003c/code\u003e, and \u003ccode\u003ebm03\u003c/code\u003e after the manual configurations by running \u003ccode\u003esudo ufw enable\u003c/code\u003e to fully implement the rules.\u003c/p\u003e\n"]]],[],null,["# Configure firewall rules\n\nManual provisioning of firewall rules for a Google Distributed Cloud (GDC) air-gapped appliance\ninstance is required due to the static allocation of the management network\nalong with the minimal network traffic footprint.\n\nYou must manually apply host-based firewall policies for the network traffic\nflows in the management network of GDC air-gapped appliance. To apply port\nand IP filtering rules on network interfaces of the bare metal machines, use the\nUncomplicated Firewall (`ufw`) command library.\n\n### Apply firewall rules\n\nThe management network for GDC air-gapped appliance is `eno1`. The static IP\naddresses of the GDC air-gapped appliance machines are as follows:\n\nTo apply the firewall rules to the management network, follow these steps:\n\n1. Establish a Secure Shell (SSH) connection from the bootstrapper machine or\n laptop to the bm01 machine using the default SSH key provided by\n Google.\n\n ssh 198.18.255.228\n\n2. Configure the default routes on the management interface of bm01:\n\n sudo ufw default allow outgoing\n sudo ufw default allow incoming\n\n3. Configure the policies on the bm01 root admin nodes. These policies\n allowlist traffic on the management network between the various devices in\n GDC air-gapped appliance. The policies also allowlist SSH access from all bare\n metal machines along with the bootstrapper machine or laptop:\n\n sudo ufw allow in on eno1 from 198.18.255.229 to 198.18.255.228 port 6385 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.230 to 198.18.255.228 port 6385 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.229 to 198.18.255.228 port 6180 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.230 to 198.18.255.228 port 6180 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.229 to 198.18.255.228 port 5050 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.230 to 198.18.255.228 port 5050 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.229 to 198.18.255.228 port 67 proto udp\n sudo ufw allow in on eno1 from 198.18.255.230 to 198.18.255.228 port 67 proto udp\n sudo ufw allow in on eno1 from 198.18.255.229 to 198.18.255.228 port 69 proto udp\n sudo ufw allow in on eno1 from 198.18.255.230 to 198.18.255.228 port 69 proto udp\n sudo ufw allow in on eno1 from 198.18.255.225 to 198.18.255.228 port 69 proto udp\n sudo ufw allow in on eno1 from 198.18.255.229 to 198.18.255.228 port 22 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.230 to 198.18.255.228 port 22 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.254 to 198.18.255.228 port 22 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.229 to 198.18.255.228 port 123 proto udp\n sudo ufw allow in on eno1 from 198.18.255.230 to 198.18.255.228 port 123 proto udp\n sudo ufw deny in on eno1\n\n4. Enable the `ufw` policies on bm01:\n\n sudo ufw enable\n\n5. Disconnect your SSH Session from bm01.\n\n6. Establish a Secure Shell (SSH) connection from the bootstrapper machine or\n laptop to the bm02 machine using the default SSH key provided by\n Google.\n\n ssh 198.18.255.229\n\n7. Configure the default routes on the management interface of bm02:\n\n sudo ufw default allow outgoing\n sudo ufw default allow incoming\n\n8. Configure the policies on the bm02 org node:\n\n sudo ufw allow in on eno1 from 198.18.255.228 to 198.18.255.229 port 443 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.228 to 198.18.255.229 port 67 proto udp\n sudo ufw allow in on eno1 from 198.18.255.228 to 198.18.255.229 port 68 proto udp \n sudo ufw allow in on eno1 from 198.18.255.228 to 198.18.255.229 port 22 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.254 to 198.18.255.229 port 22 proto tcp\n sudo ufw deny in on eno1\n\n9. Enable the `ufw` policies on bm02:\n\n sudo ufw enable\n\n10. Disconnect your SSH Session from bm02.\n\n11. Establish a Secure Shell (SSH) connection from the bootstrapper machine or\n laptop to the bm03 machine using the default SSH key provided by\n Google.\n\n ssh 198.18.255.230\n\n12. Configure the default routes on the management interface of bm03:\n\n sudo ufw default allow outgoing\n sudo ufw default allow incoming\n\n13. Configure the policies on the bm03 org node:\n\n sudo ufw allow in on eno1 from 198.18.255.228 to 198.18.255.230 port 443 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.228 to 198.18.255.230 port 67 proto udp\n sudo ufw allow in on eno1 from 198.18.255.228 to 198.18.255.230 port 68 proto udp\n sudo ufw allow in on eno1 from 198.18.255.228 to 198.18.255.230 port 22 proto tcp\n sudo ufw allow in on eno1 from 198.18.255.254 to 198.18.255.230 port 22 proto tcp\n sudo ufw deny in on eno1\n\n14. Enable the `ufw` policies:\n\n sudo ufw enable"]]