Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Il provisioning manuale delle regole firewall per un'istanza dell'appliance Google Distributed Cloud (GDC) air-gapped è necessario a causa dell'allocazione statica della rete di gestione e dell'impronta minima del traffico di rete.
Devi applicare manualmente le policy firewall basate sull'host per i flussi di traffico di rete
nella rete di gestione dell'appliance GDC air-gapped. Per applicare regole di filtro IP e porte alle interfacce di rete delle macchine bare metal, utilizza la libreria di comandi Uncomplicated Firewall (ufw).
Applica regole firewall
La rete di gestione per l'appliance GDC con air gap è eno1. Gli indirizzi IP statici delle macchine dell'appliance con air gap di GDC sono i seguenti:
Per applicare le regole firewall alla rete di gestione:
Stabilisci una connessione Secure Shell (SSH) dalla macchina bootstrapper o
dal laptop alla macchina bm01 utilizzando la chiave SSH predefinita fornita da
Google.
ssh198.18.255.228
Configura le route predefinite sull'interfaccia di gestione di bm01:
Configura i criteri sui nodi di amministrazione radice bm01. Queste norme
consentono il traffico nella rete di gestione tra i vari dispositivi
dell'appliance GDC air-gapped. I criteri consentono anche l'accesso SSH da tutte le macchine bare metal, nonché dalla macchina o dal laptop bootstrapper:
Stabilisci una connessione Secure Shell (SSH) dalla macchina bootstrapper o
dal laptop alla macchina bm02 utilizzando la chiave SSH predefinita fornita da
Google.
ssh198.18.255.229
Configura le route predefinite sull'interfaccia di gestione di bm02:
Stabilisci una connessione Secure Shell (SSH) dalla macchina bootstrapper o
dal laptop alla macchina bm03 utilizzando la chiave SSH predefinita fornita da
Google.
ssh198.18.255.230
Configura le route predefinite sull'interfaccia di gestione di bm03:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\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"]]