5.12. 添加新 HTTP 代理
使用此流程将 HTTP 代理添加到 Satellite。然后,您可以指定要用于产品、存储库和支持的计算资源的 HTTP 代理。
如果 Satellite 服务器使用代理与 subscription.rhsm.redhat.com 或 subscription.rhn.redhat.com 通信,并且 cdn.redhat.com 不得对这些通信执行 SSL 检查。
流程
- 在 Satellite Web UI 中,进入到 Infrastructure > HTTP Proxies 并选择 New HTTP Proxy。
- 在 Name 字段中输入 HTTP 代理的名称。
在 URL 字段中,输入 HTTP 代理的 URL,包括端口号。可用的主机名如下:
Expand 主机名 端口 协议 subscription.rhsm.redhat.com
443
HTTPS
subscription.rhn.redhat.com
443
HTTPS
cdn.redhat.com
443
HTTPS
api.access.redhat.com (如果使用 Red Hat Insights)
443
HTTPS
cert-api.access.redhat.com (如果使用 Red Hat Insights)
443
HTTPS
- 如果您的 HTTP 代理需要身份验证,输入用户名和密码。
- 可选:在 Test URL 字段中,输入 HTTP 代理 URL,然后点 Test Connection 以确保您可以从 Satellite 连接到 HTTP 代理。
- 点 Locations 标签页并添加一个位置。
- 点 Organization 标签页并添加一个机构。
- 点 Submit。
对于 CLI 用户
在 Satellite 服务器上,输入以下命令添加新 HTTP 代理:
hammer http-proxy create --name proxy-name \ --url proxy-URL:port-number
# hammer http-proxy create --name proxy-name \ --url proxy-URL:port-number
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 如果您的 HTTP 代理需要身份验证,请添加
--username 名称和
-- password密码
选项。
如需更多信息,请参阅知识库文章如何 通过红帽客户门户网站上的防火墙或代理访问 Red Hat Subscription Manager (RHSM)。