Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Penyediaan aturan firewall secara manual untuk instance alat yang terisolasi dari jaringan Google Distributed Cloud (GDC) diperlukan karena alokasi statis jaringan pengelolaan bersama dengan jejak traffic jaringan minimal.
Anda harus menerapkan kebijakan firewall berbasis host secara manual untuk aliran traffic jaringan di jaringan pengelolaan alat GDC yang terisolasi. Untuk menerapkan aturan pemfilteran IP dan port pada antarmuka jaringan mesin bare metal, gunakan library perintah Uncomplicated Firewall (ufw).
Menerapkan aturan firewall
Jaringan pengelolaan untuk perangkat GDC dengan air gap adalah eno1. Alamat IP statis mesin perangkat GDC dengan air gap adalah sebagai berikut:
Nama perangkat
Alamat IP
xx-aa-bm01
198.18.255.228 (admin root/admin org.)
xx-aa-bm02
198.18.255.229
xx-aa-bm03
198.18.255.230
Untuk menerapkan aturan firewall ke jaringan pengelolaan, ikuti langkah-langkah berikut:
Buat koneksi Secure Shell (SSH) dari mesin atau laptop bootstrapper ke mesin bm01 menggunakan kunci SSH default yang disediakan oleh Google.
ssh198.18.255.228
Konfigurasi rute default pada antarmuka pengelolaan bm01:
Konfigurasi kebijakan pada node admin root bm01. Kebijakan ini
mengizinkan traffic dalam daftar yang diizinkan di jaringan pengelolaan antara berbagai perangkat dalam
peralatan air-gapped GDC. Kebijakan ini juga mengizinkan akses SSH dari semua mesin bare metal bersama dengan mesin atau laptop bootstrapper:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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"]]