g3proxy: add protocol inspect policy to h2 and smtp (#207)

This commit is contained in:
Zhang Jingqiang 2024-04-16 18:37:45 +08:00 committed by GitHub
parent 976fea0293
commit 2f70ebdac8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 296 additions and 33 deletions

View file

@ -102,6 +102,17 @@ Set http 1.x interception config.
**default**: set with default value
h2_inspect_policy
-----------------
**optional**, **type**: :ref:`protocol inspect policy <conf_value_dpi_protocol_inspect_policy>`
Set what we should do with HTTP/2.0 traffic.
**default**: intercept
.. versionadded:: 1.9.0
h2_interception
---------------
@ -111,6 +122,17 @@ Set http 2.0 interception config.
**default**: set with default value
smtp_inspect_policy
-------------------
**optional**, **type**: :ref:`protocol inspect policy <conf_value_dpi_protocol_inspect_policy>`
Set what we should do with SMTP traffic.
**default**: intercept
.. versionadded:: 1.9.0
icap_reqmod_service
-------------------

View file

@ -63,6 +63,31 @@ The keys ars:
.. deprecated:: 1.9.0 not used anymore, the max SMTP reply line length should be 512
.. _conf_value_dpi_protocol_inspect_policy:
protocol inspect policy
-----------------------
**type**: string
Set what we should do to a specific application protocol.
The possible value are:
- intercept
Intercept the traffic. This is the default value.
- bypass
Bypass the interception. The traffic will be transferred transparently.
- block
Block the traffic. And we will try to send application level error code to the client.
.. versionadded:: 1.9.0
.. _conf_value_dpi_protocol_inspection:
protocol inspection