FT_PROXYΒΆ

Preprocessor for HTTPS and SOCKS v4/4a/5 proxy protocols.

Category:

Preprocessor

Indicates object parts:

yes

The filter classifies the transmitted content and detects the proxy protocol automatically.

OT_HTTPS_PROXY_RESPONSE contains 3 streams (HS_STATUS, HS_HEADER, HS_CONTENT), like HTTP objects. The other objects contain a buffer in a single stream.

When the FF_READ_ONLY_OUT flag is not specified for the FT_PROXY filter, it is possible to modify requests before posting them to the destination (for example, to change the address of the remote server in a proxy request). However, it is possible only when the outgoing packet contains the full proxy request. If a filtered application sends a request in several packets, FT_PROXY switches to read-only mode to avoid blocking other traffic due to a false positive. The indicated objects have the read-only flag in this case.

When the FF_PROXY_INDICATE_HTTPS_PROXY_RESPONSE flag is enabled, it is possible to filter proxy responses in dataPartAvailable/dataAvailable as objects of type OT_HTTPS_PROXY_RESPONSE, having the same structure as generic HTTP objects. The HTTPS proxy requests are indicated via dataAvailable as OT_HTTPS_PROXY_REQUEST objects containing request data in a single stream. If the FF_READ_ONLY_IN flag is enabled, the indicated objects are read-only and the response data is sent to the destination immediately.

References: