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
| Section | Description |
|---|---|
| General | Logging, DNS resolution mechanisms, local traffic interception, and global settings |
| Proxy | Proxy transport protocols, connection management, and outbound network configurations |
| Proxy Group | Policy groups and outbound selection |
| Proxy Resource | External proxy server list resources |
| Plugin | Profile overlays, activation conditions, and precedence |
| Rule | Matching criteria, target actions, and external rule sets |
| Host | Static address mappings, domain aliases, and per-domain upstream resolvers |
| Keystore | Named credentials for SSH private keys and PKCS#12 certificates |
| MITM | HTTPS decryption scope and CA certificate management |
| Response | Local mock HTTP responses |
| URL Rewrite | URL rewriting, redirection, and request rejection |
| Header Rewrite | HTTP request header manipulation |
| Script | Custom 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
[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