大网数据广告活动
服务器运维问答

How to Set Firewall Rules on a GCP VM with Multiple NICs?

· 52CE 我爱测

GCP allows a VM to have multiple NICs, but firewall rules are governed by TAGS which unfortunately are attached at the VM level, NOT at the NIC level. So how would I configure totally different firewall rules on each NIC, given t…

问题原文

原帖链接 · user450409 · CC BY-SA 4.0

GCP allows a VM to have multiple NICs, but firewall rules are governed by TAGS which unfortunately are attached at the VM level, NOT at the NIC level. So how would I configure totally different firewall rules on each NIC, given that tags only work on the VM level? Also in my case each NIC is in a separate VPC. Google's documentation is less than helpful.

已采纳解答

原帖链接 · John Hanley · CC BY-SA 4.0

Google Cloud does not support attaching multiple NICs to the same VPC. Each Firewall rule is associated with one VPC.

So how would I configure totally different firewall rules on each NIC, given that tags only work on the VM level?

Create separate Firewall rules for each VPC.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-05-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。