Configuration Template¶
OpenClash Configuration¶
Download the production-ready configuration template:
File: config-template.yaml
Template Overview¶
This configuration includes:
- ✅ LA-only endpoints (VMess + VLESS)
- ✅ Loyalsoldier smart routing rules (345,000+ domains/IPs)
- ✅ Auto-failover with health checks every 3 minutes
- ✅ Load balancing between VMess and VLESS
- ✅ DNS leak prevention (DoH enabled)
Before Using¶
Update the following fields:
-
Server UUID (lines 8, 24):
-
Server address (lines 6, 22):
-
Router IP (if different from 192.168.192.x):
-
Search for "192.168.192" and replace with your subnet
-
Exit node credentials (if using different provider):
- StarVPN SOCKS5 proxy settings
Configuration Sections¶
Proxies¶
- LA-VMess: Primary proxy (WebSocket + TLS)
- LA-VLESS: Backup proxy (WebSocket + TLS)
Proxy Groups¶
- PROXY: Load balance between LA-VMess and LA-VLESS
- Fallback: Auto-failover based on health checks
Rules¶
- Domestic sites → DIRECT
- International sites → PROXY
- LAN traffic → DIRECT
- China IP ranges → DIRECT
Testing Configuration¶
# Upload to router
scp config-template.yaml root@router-ip:/etc/openclash/config.yaml
# Restart OpenClash
ssh root@router-ip "/etc/init.d/openclash restart"
# Check proxy health
curl -s http://router-ip:9090/proxies/LA-VMess | jq '.alive'
# Expected: true
Troubleshooting¶
If proxies show alive=false, see Mux Fix Guide.
Related Documentation: - System Reference - Configuration Guide - Deployment Checklist