xoxo419
V2EX  ›  问与答

阿里云安全组列表和主机中的防火墙有什么关系么?

  •  
  •   xoxo419 · Jun 1, 2018 · 3112 views
    This topic created in 3104 days ago, the information mentioned may be changed or developed.

    eg: 使用 iptables 开放一个自定义端口(6066), 还需要阿里云安全组列表里操作么?

    8 replies  •  2018-06-01 11:28:14 +08:00
    wqsfree
    wqsfree
    Jun 1, 2018
    1
    肯定需要啊,任何端口都要在阿里云的安全组操作。
    xoxo419
    xoxo419
    OP
    Jun 1, 2018
    2
    @wqsfree 3306 和 80 这些是不需要?
    wqsfree
    wqsfree
    Jun 1, 2018❤️1
    3
    @xoxo419 因为这些是你在开阿里云主机的时候,安全组默认就给你开了,兄弟。
    CodingMonkey
    CodingMonkey
    Jun 1, 2018❤️2
    4
    阿里云安全组相当于外面的一层防火墙
    xoxo419
    xoxo419
    OP
    Jun 1, 2018
    5
    @CodingMonkey 也就是说 阿里云的 vps 有两层防火墙? 主机一层, 阿里云一层.
    xoxo419
    xoxo419
    OP
    Jun 1, 2018
    6
    @wqsfree
    @CodingMonkey 安全组开了端口, 主机是不是不用做操作也行呢?
    xiazaizhe
    xiazaizhe
    Jun 1, 2018❤️1
    7
    @xoxo419 任何服务器或 VPS 都有系统自带的防火墙,然后大多数主机商会额外加一层,比如阿里云就是额外加了一层
    xoxo419
    xoxo419
    OP
    Jun 1, 2018
    8
    @wqsfree
    @CodingMonkey
    @xiazaizhe

    我刚又做了一次实验.

    端口不做任何处理, 使用 nc -l 0.0.0.0 [端口], 然后我在我本地的电脑 nc -v [服务器 IP] [端口] , 任意端口都可以通 .

    但奇怪的是在阿里云上有两台服务器. 一台可以, 另外一台就无法接通端口.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4221 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 234ms · UTC 08:34 · PVG 16:34 · LAX 00:34 · JFK 03:34
    ♥ Do have faith in what you're doing.