V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
liloli
V2EX  ›  Oracle

oracle cloud 无法打开端口

  •  
  •   liloli · 2021-11-05 15:30:58 +08:00 · 1039 次点击
    这是一个创建于 874 天前的主题,其中的信息可能已经有所发展或是发生改变。
    提前在子网做好了 security lists ,增加了一个 List 用于 tcp 5201 。
    创建的 instance 使用的是 oracle linux 7
    新机登陆后,禁用了 firewalld ,安装并启用 iptables-services 。
    添加一条规则允许入站 TCP 5201 端口
    service iptables save
    service iptables restart
    然而,测试发现 5201 端口依然不通。

    哪位兄弟对 oracle cloud 比较熟悉,麻烦指点一下,谢谢。
    6 条回复    2023-08-21 18:52:11 +08:00
    labnotok
        1
    labnotok  
       2021-11-05 15:40:47 +08:00
    检查下规则顺序,需要插入在前面
    heyenyan
        2
    heyenyan  
       2021-11-05 16:03:53 +08:00
    iptables -F
    Veneris
        3
    Veneris  
       2021-11-05 16:10:11 +08:00
    似乎 Oracle 的机子在控制台要先放开?
    liloli
        4
    liloli  
    OP
       2021-11-05 16:56:40 +08:00
    谢谢,调整了一下顺序,同时又加了一条,终于通了。

    iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
    liloli
        5
    liloli  
    OP
       2021-11-05 16:57:16 +08:00
    @Veneris 对,要在 Subnet 的 Security List 中先放行。
    samyucn
        6
    samyucn  
       220 天前
    apt-get purge netfilter-persistent && reboot
    或 rm -rf /etc/iptables && reboot
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1136 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:58 · PVG 06:58 · LAX 15:58 · JFK 18:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.