在Oracle Cloud Infrastructure Compute节点上打开端口80 [英] Opening port 80 on Oracle Cloud Infrastructure Compute node
问题描述
这是一个基本问题,但是我似乎无法通过阅读Oracle文档来解决.我创建了一个基于Ubuntu的计算节点,并将其连接到子网.在该子网中,我创建了一个有状态规则,其源为0.0.0.0/0,IP协议:TCP,源端口范围:全部,目标端口范围:80.
This is an elementary question however one I cannot seem to resolve by perusing the Oracle documentation. I've created an Ubuntu-based compute node, and it's attached to a subnet. In that subnet I've created a stateful rule with source 0.0.0.0/0, IP protocol: TCP, Source Port Range: All, Destination Port Range: 80.
服务器上没有配置防火墙.
There is no firewall configured on the server.
尽管进行了此配置,但我无法访问计算节点的公共IP.有什么想法吗?
Despite this configuration I can't access the compute node's public IP. Any ideas?
推荐答案
在Oracle Cloud Infrastructure上部署计算实例时,您需要考虑以下几点:
When deploying compute instances at Oracle Cloud Infrastructure you need to take into account few things:
- 创建Internet网关(IGW).
- 定义指向IGW的路由.
- 在安全性列表"中允许与IGW关联的端口80.默认情况下,您只能访问SSH和ICMP 3,4类型.
- 允许在Compute的实例防火墙上连接(默认情况下已启用).
在您的示例中,如果您使用的是OEL形状:
In your example if you are using a OEL shape:
$ sudo firewall-cmd --zone=public --permanent --add-port=80/tcp
$ sudo firewall-cmd --reload
这篇关于在Oracle Cloud Infrastructure Compute节点上打开端口80的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!