Skip to main content

Load Balance

A group of proxies where the selection is chosen randomly.

note

Load Balance group selection cannot be changed manually.

Example

Profile Example

[Proxy Group]
LoadBalanceGroup = load-balance, ProxyHTTP, ProxyHTTPS

[Rule]
# Traffic matching 'www.google.com' will be redirected through LoadBalanceGroup's selected proxy
DOMAIN, www.google.com, LoadBalanceGroup

Policy Path Example

ProxyHTTP = http, 1.2.3.4, 443, username, password
ProxyHTTPS = https, 1.2.3.4, 443, username, password, skip-cert-verify=true, sni=www.google.com
ProxySOCKS5 = socks5, 1.2.3.4, 443, username, password, udp-relay=false

This is similar to the [Proxy] section definition but without the section header.

Using a policy path separates proxies and rules definitions, reducing profile complexity.

Format

{group name} = load-balance, {proxies, ...}, {policy-path}, {policy-regex-filter}, hidden = {hidden}, include-all-proxies = {include-all-proxies}, include-other-group = "{include-other-group}"

Parameters

NameValueMandatoryNote
group name-trueName of the group; serves as the key.
proxies-trueA list of proxy names defined in the [Proxy] section, separated by commas.
policy-path-falseA URL pointing to a list of proxies. Content format is shown below:

ProxyHTTP1 = http, 1.2.3.4, 443, username, password
ProxyHTTP2 = http, 1.2.3.4, 443, username, password
policy-regex-filter-falseApplicable if policy-path/include-all-proxies/include-other-group is defined.
A regular expression applied to proxy names; only proxies matching the expression are included. Note: This is a full-match regular expression.
hiddentrue
false
falseWhether to display this proxy group in the user interface. Even if set to false, the group still takes effect.
include-all-proxiestrue
false
falseIncludes all proxies defined in the profile. Can be used with policy-regex-filter to filter specific proxies.
include-other-group-falseIncludes proxies from other groups specified by name. Can be used with policy-regex-filter. Multiple group names can be separated by commas.
tip

proxies, policy-path, include-all-proxies, and include-other-group can be used together in the same proxy group.

tip

You can use a profile URL as a policy path URL; only proxies defined in the [Proxy] section will be used.