Common fields¶
name¶
Required. The name of the policy group.
Note
If there are special symbols, they should be enclosed in quotes.
type¶
Required. The type of the policy group.
proxies¶
include proxies or other proxy-groups.
use¶
include proxy-providers
url¶
Health check test URL.
interval¶
Health check interval. If not 0, enable periodic testing, in seconds.
lazy¶
Lazy mode. Default is true
. Do not test unless this policy group is selected.
timeout¶
Health check timeout, in milliseconds.
max-failed-times¶
Maximum number of failures before triggering a forced health check. Default is 5.
disable-udp¶
Disable UDP
for this proxy-groups.
interface-name¶
Specify the outbound interface for the proxy-groups.
Priority: Proxies > Proxy Groups > Global
routing-mark¶
Attach a routing markwhen the proxy-groups goes outbound.
Priority: Proxies > Proxy Groups > Global
include-all¶
Include all proxies and proxy-providers.
Includes without policy groups. Other policy groups can be included in proxies
.
include-all-proxies¶
Include all proxies
Includes without policy groups. Other policy groups can be included in proxies
.
include-all-providers¶
Include all proxy-providers.
This will disable include proxy-providers.
filter¶
Filter nodes that meet the keywords or regular expressions. Multiple regular expressions can be separated by `.
Only applies to include proxy-providers and include all outbound proxies.
exclude-filter¶
Exclude proxies that match keywords or regular expressions. Multiple regular expressions can be separated by `.
exclude-type¶
Exclude proxies types.
Note that the syntax for proxy-groups
and proxy-providers
is different and does not support regular expressions. They are separated by |
.
expected-status¶
Expected HTTP response status code during health check. If this field is configured, the node is considered available only when the response status code is consistent with the expected status. Default is *
, indicating no requirements for the response status.
Syntax¶
Use /
to match multiple status codes, use -
to match status code ranges, and mix the syntax.
Examples¶
Match status codes 200 and 302:
Match status codes from 400 to 503:
Match status codes 200 and 302, as well as from 400 to 503:
hidden¶
Returns hidden status in the API to hide the display of this proxy-groups (requires front-end adaptation using the API).
icon¶
Returns the string entered in icon in the API to display in this proxy-groups (requires front-end adaptation using the API).