Configuration Guide
This document provides a detailed reference for the Tachyon configuration file. The profile uses YAML syntax to manage network traffic, DNS resolution, and proxy routing.
Configuration Example
# ==========================================
# Tachyon Configuration Profile
# ==========================================
# Inbound Proxy: Socks5/Http mixed inbound proxy
inbound_proxy:
host: 127.0.0.1
port: 2333
controller:
host: 127.0.0.1
port: 2334
token: 123456
geolite:
type: Url
url: https://example.com/geolite
interval: 3600
skip_verify: true
# DNS Resolver: Configuration for DNS lookups and custom host mapping
dns_resolver:
trusted_nameservers:
- SYSTEM # Uses the default system DNS for resolution
- dns://8.8.8.8
- dot://dns.google
- doh://dns.google
- dot://test.dns:1234
host_mapping:
# Advanced static host mapping (similar to /etc/hosts)
ipv4.tachyon: ipv4(127.0.0.1)
ipv6.tachyon: ipv6(::1)
"*.domain.tachyon": domain(example.com)
server.tachyon: nameserver(dot://dns.google)
outbound_proxy_default_check_url: http://bing.com
# Outbound Proxies: List of available remote proxy servers
outbound_proxies:
shadowsocks_example:
type: ShadowSocks
host: ss.example.com
port: 1234
password: random-password
cipher: 2022-blake3-aes-128-gcm
trojan_example:
type: Trojan
host: trojan.example.com
port: 1234
password: random-password
sni: trojan.example.com
skip_verify: false
hysteria2_example:
type: Hysteria2
host: hysteria2.example.com
port: 1234
password: random-password
sni: hysteria2.example.com
skip_verify: true
# Outbound Policy Groups: Logic for selecting which proxy to use
outbound_policy_groups:
fastest_example:
type: Fastest # Automatically selects the node with the lowest latency
include:
- DIRECT
- proxy(trojan_example)
- proxy(hysteria2_example)
- proxy(shadowsocks_example)
select_example:
type: Select # Requires manual selection via the UI
include:
- DORP
- DIRECT
- proxy(shadowsocks_example)
- proxy(trojan_example)
- proxy(hysteria2_example)
fallback_example:
type: Fallback
include:
- DIRECT
- proxy(shadowsocks_example)
- proxy(trojan_example)
- proxy(hysteria2_example)
load_balance_example:
type: LoadBalance
include:
- DIRECT
- proxy(shadowsocks_example)
- proxy(trojan_example)
- proxy(hysteria2_example)
# Default rule if no match is found above
rules_final: DIRECT
# Routing Rules: Determines the traffic path based on conditions
rules_match:
- SRC_PROCESS_NAME,curl,DIRECT
- SRC_PROCESS_PATH,/usr/bin,DIRECT
- SRC_IP_CIDR4,192.0.0.1/32,DIRECT
- SRC_IP_CIDR6,ffc0::/16,proxy(trojan_example)
- SRC_PORT,<1024,group(fastest)
- DST_DOMAIN,*google*,group(select)
- DST_GEOIP,HK,DIRECT
- DST_IP_CIDR4,8.8.8.8/32,strict,DIRECT
- DST_IP_CIDR6,ffc0::/16,proxy(trojan_example)
- DST_PORT,443,group(fastest_example)
- NOT,(DST_GEOIP,HK),group(select)
- AND,((DST_GEOIP,HK),(DST_PORT,443)),group(select)
- OR,((DST_GEOIP,HK),(DST_PORT,443)),group(select)
- RUlE_PROVIDER,rule_provider_example,DROP
# External Providers: Import rules and proxy lists from external files
rules_providers:
rule_provider_example_file:
type: File
path: /tmp/rule_provider.yaml
rule_provider_example_url:
type: Url
url: https://rule-provider.example.com
skip_verify: true
proxies_providers:
proxy_provider_example_file:
type: File
path: /tmp/proxy_provider.yaml
proxy_provider_example_url:
type: Url
url: https://proxy-provider.example.com
skip_verify: false
Inbound Proxy
The local entry point for your network traffic. Tachyon uses a "mixed" port that accepts both SOCKS5 and HTTP protocols.
- Host: Usually
127.0.0.1for local use (default127.0.0.1). - Port: The port number your applications or system settings should point to (default
2333).
Controller
The API server(websocket) that allows the Tachyon Desktop UI/Web UI/CLI tools to communicate with the core engine.
- Token: A security password required for external tools to access the controller.
GeoLite
Configures the database used for Geographic IP (GeoIP) matching.
- Update Interval: How often (in seconds) the database updates from the source URL.
DNS Resolver
The DNS module determines how domain names are translated into IP addresses.
Trusted Nameservers
Tachyon supports multiple DNS protocols for privacy and speed:
SYSTEM: Uses your OS default DNS.dns://: Standard UDP DNS (Port 53).dot://: DNS over TLS (Encrypted).doh://: DNS over HTTPS (Encrypted).
Host Mapping
An advanced replacement for the system hosts file.
- ipv4/ipv6: Directly map a domain to an IP.
- domain: Alias one domain to another (CNAME behavior).
- nameserver: Force a specific domain to be resolved by a specific DNS server (e.g., force
*.devto use a local DNS).
Outbound Proxies
This section defines your remote nodes. Tachyon supports modern, high-performance protocols:
| Protocol | Description |
|---|---|
| ShadowSocks | Reliable and fast. Supports 2022-blake3 encryption. |
| Trojan | Mimics standard HTTPS traffic to bypass deep packet inspection. |
| Hysteria2 | Based on QUIC (UDP), optimized for high-latency or unstable networks. |
Policy Groups
Groups allow you to combine multiple proxies and apply logic to how they are used.
- Select: A manual list where the user chooses the active node via the UI.
- Fastest: Automatically tests latency to all nodes and switches to the fastest one.
- Fallback: Prioritizes the first available node; moves down the list if a failure occurs.
- LoadBalance: Spreads traffic across multiple nodes to optimize bandwidth.
Routing Rules
Rules are evaluated from top to bottom. The first match determines the traffic path.
Final Policy
If no rule matches, rules_final will be applied as the default (fallback) policy.
Match Types
- Source-based:
SRC_PROCESS_NAME(app name),SRC_PROCESS_PATH(app path),SRC_IP_CIDR4(local IPV4),SRC_IP_CIDR6(local IPV6), orSRC_PORT. - Destination-based:
DST_DOMAIN(keywords/wildcards),DST_GEOIP(country code), orDST_PORT. - Logic-based:
AND: Matches only if all sub-conditions are true.OR: Matches if any sub-condition is true.NOT: Matches if the condition is false.
- Rule-Provider: Maches if a rule in this provider maches.
Policy
DIRECT: Bypass the proxy and connect normally.DROP: Block the connection entirely.proxy(name): Use a specific proxy node.group(name): Use a specific policy group.
6. External Providers
Manage large sets of data without cluttering your main configuration.
- Rule Providers: Import massive lists of domain/IP rules from local files or remote URLs.
- Proxy Providers: Subscribe to remote proxy lists that update automatically.