6.13. 配置 SELinux 以在自定义端口中允许内容同步

SELinux 仅允许对 Satellite 的访问,仅在特定端口上进行内容同步。默认情况下,允许连接到运行在以下端口上的 Web 服务器:80、81、443、488、8008、8009、8443 和 9000。

流程

  1. 在 Satellite 上,要验证 SELinux 允许进行内容同步的端口,请按如下所示输入命令:

    # semanage port -l | grep ^http_port_t
    http_port_t     tcp      80, 81, 443, 488, 8008, 8009, 8443, 9000
  2. 要将 SELinux 配置为允许端口进行内容同步,如 10011,请输入以下命令:

    # semanage port -a -t http_port_t -p tcp 10011