Skip to content

Configuration Profile Reference ​

Configuration profiles are based on the INI format, using distinct sections to define global settings, proxy servers, policy groups, traffic routing rules, and HTTP handling. Refer to the respective documents for detailed fields, values, defaults, and constraints.

Sections ​

SectionDescription
GeneralLogging, DNS resolution mechanisms, local traffic interception, and global settings
ProxyProxy transport protocols, connection management, and outbound network configurations
Proxy GroupPolicy groups and outbound selection
Proxy ResourceExternal proxy server list resources
PluginProfile overlays, activation conditions, and precedence
RuleMatching criteria, target actions, and external rule sets
HostStatic address mappings, domain aliases, and per-domain upstream resolvers
KeystoreNamed credentials for SSH private keys and PKCS#12 certificates
MITMHTTPS decryption scope and CA certificate management
ResponseLocal mock HTTP responses
URL RewriteURL rewriting, redirection, and request rejection
Header RewriteHTTP request header manipulation
ScriptCustom scripts for HTTP, DNS, routing rules, cron tasks, and network events

Configuration Format ​

Common delimiters, lists and named fields, quoting and escape rules, groupings, comments, and merge directives are defined in Configuration Syntax. Refer to each section's reference for field types and validation rules.

Top-level list attributes can be written directly as comma-separated sequences (e.g., dns-server = system, 1.1.1.1) or with bracket syntax [...]; inline multi-value list options use bracket syntax [...] (e.g., alpns=[h2, http/1.1]), and single-element values can omit [] (e.g., includes=RemoteNodes); ordered key-value collections use brace syntax {...} (e.g., headers={Host=example.com, X-Tag=1}).

Example ​

ini
[General]
log-level = info
dns-server = system, 1.1.1.1

[Proxy]
Node = socks, proxy.example.com, 1080

[Proxy Group]
Group = select, Node, DIRECT, includes=RemoteNodes

[Proxy Resource]
RemoteNodes = https://example.com/nodes.conf, update-interval=86400

[Plugin]
Extension = ./plugins/extension.conf

[Rule]
DOMAIN,example.com,DIRECT
FINAL,Group

[Host]
static.example.com = 192.0.2.1

[Keystore]
MainCA = p12, base64=<SECRET>, password="<SECRET>"

[MITM]
hostname = *.example.com
ca-keystore-name = MainCA

[Response]
^http://example\.com/status$ = ready

[URL Rewrite]
^http://example\.com/old$ http://example.com/new 302

[Header Rewrite]
http-request ^http://example\.com/ header-add X-Example 1

[Script]
Request = type=http-request, pattern=^http://example\.com/, script-path=./scripts/request.js