第 3 章 配置 Ansible Automation Platform 以使用出口代理


您可以部署 Ansible Automation Platform,以便通过代理服务器正常工作的平台中的出口。出口代理允许客户端向网络服务发出间接(通过代理服务器)请求。客户端首先连接到代理服务器,并请求一些资源,如位于其他服务器上的电子邮件。然后,代理服务器连接到指定的服务器,并从中检索资源。

3.1. 概述

对于所有 RPM 和容器化安装方法,应在系统和 Ansible Automation Platform 组件级别配置出口代理。对于容器化安装程序,节点上 podman 的系统代理配置解决了通过代理访问大多数问题。对于 RPM 安装,同时需要系统和组件配置。

3.1.1. 代理后端

对于 HTTP 和 HTTPS 代理,您可以使用 squid 服务器。Squid 是 Web 支持的 HTTP、HTTPS 和 FTP 的转发代理,通过缓存并重复使用频繁请求的网页来减少带宽并改进了响应时间。它根据 GNU GPL 许可。转发代理是截获网络流量进入另一网络(通常是互联网)的系统,并代表内部系统发送它。squid 代理允许所有必需的通信通过它。

确保 squid 代理后端上打开了所有必需的 Ansible Automation Platform control plane 端口。Ansible Automation Platform 特定端口:

acl Safe_ports port 81
acl Safe_ports port 82
acl Safe_ports port 389
acl Safe_ports port 444
acl Safe_ports port 445
acl SSL_ports port 22

以下端口用于容器化安装:

acl SSL_ports port 444
acl SSL_ports port 445
acl SSL_ports port 8443
acl SSL_ports port 8444
acl SSL_ports port 8445
acl SSL_ports port 8446
acl SSL_ports port 44321
acl SSL_ports port 44322

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部