Squid 配置指令 proxy_protocol_access
可用版本:
此指令在 Squid 的 v8 版本中不可用。
对于 v5 之前的旧版本,请参阅以上链接页面。
配置详情
| 选项名称 | proxy_protocol_access |
|---|---|
| 替代 | |
| 要求 | |
| 默认值 | 所有要求 proxy_protocol 头的端口的 TCP 连接都将被拒绝 |
| 建议配置 |
|
Determine which client proxies can be trusted to provide correct information regarding real client IP address using PROXY protocol. Requests may pass through a chain of several other proxies before reaching us. The original source details may by sent in: * HTTP message Forwarded header, or * HTTP message X-Forwarded-For header, or * PROXY protocol connection header. This directive is solely for validating new PROXY protocol connections received from a port flagged with require-proxy-header. It is checked only once after TCP connection setup. A deny match results in TCP connection closure. An allow match is required for Squid to permit the corresponding TCP connection, before Squid even looks for HTTP request headers. If there is an allow match, Squid starts using PROXY header information to determine the source address of the connection for all future ACL checks, logging, etc. SECURITY CONSIDERATIONS: Any host from which we accept client IP details can place incorrect information in the relevant header, and Squid will use the incorrect information as if it were the source address of the request. This may enable remote hosts to bypass any access control restrictions that are based on the client's source addresses. This clause only supports fast acl types. See https://wiki.squid.org.cn/SquidFaq/SquidAcl for details. |
|
