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

Google Cloud Platform firewall allow os update

· 52CE 我爱测

I have a Virtual Machine running inside Google Cloud. The VM running ubuntu v16. The machine is running behind firewall. The traffic to this machine is restricted - no outgoing traffic allowed from this machine to the internet. T…

问题原文

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

I have a Virtual Machine running inside Google Cloud. The VM running ubuntu v16. The machine is running behind firewall. The traffic to this machine is restricted - no outgoing traffic allowed from this machine to the internet.

The problem is that I want to expose the machine to system updates.

sudo apt-get update && sudo apt-get upgrade -y

Which running automatically as background task.

Is this possible to allow OS updates egress traffic only?

已采纳解答

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

Decide if you will be managing a local repo of updates. Which would allow for more control of both when updates happen and what gets Internet access.

You probably want to use GCP's mirror, us-central1.gce.archive.ubuntu.com (replace us-central1 with your region).

Configure firewall to allow egress from the downloading systems. IPs and not names, but a handful of IP addresses that may change isn't too bad even if you want to be super-specific.

If you have zero Internet access, consider something like a cloud NAT. Unfortunately, GCP doesn't have the equivalent to AWS's IPv6 egress only gateways.

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

资料来源与适用范围

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

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

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