Skip to content

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:

  1. Server UUID (lines 8, 24):

    uuid: ba684106-2b2d-49bf-8e6f-66f5d0bde5c2  # Change this
    

  2. Server address (lines 6, 22):

    server: vmiss.ata.lol  # Change to your VPS hostname
    

  3. Router IP (if different from 192.168.192.x):

  4. Search for "192.168.192" and replace with your subnet

  5. Exit node credentials (if using different provider):

  6. 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