在Oracle Cloud Infrastructure Compute节点上打开端口80 [英] Opening port 80 on Oracle Cloud Infrastructure Compute node

查看:832
本文介绍了在Oracle Cloud Infrastructure Compute节点上打开端口80的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个基本问题,但是我似乎无法通过阅读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:

  1. 创建Internet网关(IGW).
  2. 定义指向IGW的路由.
  3. 在安全性列表"中允许与IGW关联的端口80.默认情况下,您只能访问SSH和ICMP 3,4类型.
  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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆