š Config Files Guide
Learn how to import, create, and manage configuration files in Shadowrocket
What are Config Files? Configuration files (.conf) contain server settings, rules, and preferences that can be imported to quickly set up Shadowrocket.
š„ Importing Config Files
Method 1: Direct File Import
- Download the .conf file from your provider
- Open Shadowrocket app
- Tap "+" ā "Import from File"
- Browse and select the configuration file
- Review the imported settings
- Tap "Import" to add all servers and rules
Method 2: URL Import
- Get configuration URL from your provider
- Tap "+" ā "Import from URL"
- Paste the configuration URL
- Tap "Download"
- Review and confirm the import
š Configuration File Structure
Basic .conf File Example:
[General] # Shadowrocket Configuration bypass-system = true skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local bypass-tun = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16 dns-server = 8.8.8.8, 8.8.4.4 fallback-dns-server = system [Rule] # Block ads DOMAIN-SUFFIX,doubleclick.net,REJECT DOMAIN-SUFFIX,googlesyndication.com,REJECT # Direct connections DOMAIN-SUFFIX,apple.com,DIRECT DOMAIN-SUFFIX,icloud.com,DIRECT # Proxy rules DOMAIN-SUFFIX,youtube.com,PROXY DOMAIN-SUFFIX,twitter.com,PROXY FINAL,DIRECT [Proxy] # Server configurations ss1 = ss, server1.example.com, 443, encrypt-method=aes-256-gcm, password=password123 vmess1 = vmess, server2.example.com, 443, username=uuid-here, ws=true, tls=true [Proxy Group] # Server groups š Proxy = select, ss1, vmess1, DIRECT
āļø Configuration Sections
[General] Section
- bypass-system: Use system proxy settings
- skip-proxy: Local network ranges
- dns-server: Primary DNS servers
- fallback-dns-server: Backup DNS
- ipv6: Enable IPv6 support
- test-timeout: Connection test timeout
[Rule] Section
- DOMAIN-SUFFIX: Match domain endings
- DOMAIN: Exact domain match
- DOMAIN-KEYWORD: Contains keyword
- IP-CIDR: IP address ranges
- GEOIP: Geographic IP rules
- FINAL: Default action
[Proxy] Section
- ss: Shadowsocks servers
- vmess: V2Ray servers
- trojan: Trojan servers
- http/https: HTTP proxies
- socks5: SOCKS5 proxies
[Proxy Group]
- select: Manual selection
- url-test: Auto-select fastest
- fallback: Failover servers
- load-balance: Balance traffic
š ļø Creating Custom Configs
Step-by-Step Config Creation:
- Start with General Settings: Set DNS, bypass rules
- Add Your Servers: Include all proxy servers
- Create Proxy Groups: Organize servers by region/purpose
- Define Rules: Set routing for different domains/IPs
- Test Configuration: Validate syntax and connectivity
- Save and Share: Export for backup or sharing
Advanced Rules Examples:
# Streaming services DOMAIN-SUFFIX,netflix.com,š¬ Streaming DOMAIN-SUFFIX,hulu.com,š¬ Streaming DOMAIN-SUFFIX,disneyplus.com,š¬ Streaming # Social media DOMAIN-SUFFIX,facebook.com,š± Social DOMAIN-SUFFIX,instagram.com,š± Social DOMAIN-SUFFIX,twitter.com,š± Social # Gaming DOMAIN-SUFFIX,steam.com,š® Gaming DOMAIN-SUFFIX,battle.net,š® Gaming DOMAIN-SUFFIX,epicgames.com,š® Gaming # Ad blocking DOMAIN-SUFFIX,googlesyndication.com,REJECT DOMAIN-SUFFIX,googleadservices.com,REJECT DOMAIN-KEYWORD,ads,REJECT
š± Platform-Specific Config Tips
iOS/iPhone:
- Use AirDrop to transfer .conf files
- Import via Files app integration
- Share configs via iCloud Drive
- Use iTunes file sharing
- Enable "Open in Shadowrocket"
Android:
- Download configs to Downloads folder
- Use file manager to locate files
- Share via Bluetooth or WiFi Direct
- Store in cloud storage (Google Drive)
- Use QR codes for sharing
Windows/macOS:
- Drag and drop files into app
- Use "Import from File" menu
- Double-click .conf files
- Import from clipboard
- Batch import multiple configs
Best Practices:
- Always backup working configs
- Test configs before sharing
- Use descriptive server names
- Keep configs updated regularly
- Document custom rules
š§ Troubleshooting Config Issues
Import Failed
- Check file format is .conf or valid text
- Verify syntax is correct (no typos)
- Ensure file is not corrupted
- Try importing individual sections
Rules Not Working
- Check rule order (more specific first)
- Verify domain/IP syntax
- Test with simple rules first
- Clear DNS cache after changes
Servers Not Connecting
- Validate server credentials
- Check server addresses and ports
- Test individual servers manually
- Verify encryption methods
š Popular Config Templates
Gaming Optimized:
- Low latency server selection
- Gaming platform rules
- Speed test integration
- Fallback configurations
Streaming Focused:
- Regional streaming rules
- High bandwidth servers
- Content platform routing
- Buffer optimization
Privacy Enhanced:
- Maximum encryption
- DNS leak prevention
- Ad/tracker blocking
- Kill switch rules
Business Use:
- Corporate network rules
- Work app priorities
- Security compliance
- Audit logging
šÆ Master Configuration Files!
With config files, you can create powerful, customized Shadowrocket setups.