Skip to main content

Auto select

A group of proxies with a test url in it.

After VPN started, a HTTP HEAD request will be sent towards the test url, delay will be recorded when success response reach.

Proxy with the shortest delay will be the selection of the group.

The test will be triggered at intervals constantly.

note

Auto select group selection can not be changed manually

Sample

Profile sample

[Proxy Group]
AutoTestGroup = url-test, ProxySOCKS5, ProxySOCKS5TLS, url=http://www.gstatic.com/generate_204, interval=600, tolerance=100, timeout=5, hidden=true

[Rule]
# traffic match 'www.google.com' will be redirect through AutoTestGroup's selected proxy
DOMAIN, www.google.com, AutoTestGroup

Policy path sample

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

Just like [Proxy] Section definition but without section header in it.

Use policy path can separate proxies and rules definition, and reduce profile complexity.

Format

{Group name} = select, {proxies, ...}, {policy-path}, {policy-regex-filter}, {url}, {interval}, {tolerance}, {timeout}, {hidden}

Param

NameValueMandatoryNote
group name-truename of group, will be used like a key to the group
proxies-trueA list of proxy name defined in [Proxy] section, divided by comma
policy-path-falseA list of proxy defined in url content
Content format will be presented below
policy-regex-filter-falseUsable if policy-path defined.
A regular expression which will apply on proxy name in policy-path url content, only proxies which match expression will be reserved.
urlhttp scheme urlfalseTest url which is used by HTTP HEAD request.
If url is not defined, 'proxy-test-url' defined in [General] section will be used.
If 'proxy-test-url' is not defined either, 'http://www.gstatic.com/generate_204' will be used.
interval-falseUnit: seconds, define test trigger intervals. Default value: 600
tolerance-falseUnit: millisecond
Proxy selection is only changed when new selected proxy has a lower delay than previous proxy minus this value.
Default value: 100
timeout-falseUnit: seconds
Test exceed this maximum allowed duration will be treated as failure.
Default value: 5
hiddentrue
false
falseWhether to display this proxy group in user interface, even set to false, this group will still take effect.
caution

Only HTTP scheme url is allowed as test url, HTTPS and any other types of scheme url will not be supported.

tip

{proxies} and {policy-path} can be used together in the same proxy group

tip

fallback type proxy group is also supported, but will be treated like 'select' currently.

tip

You can use a profile url as policy path url, only proxy part of the profile will be used