├── shadowsocks ├── server │ └── config.json └── client │ └── config.json ├── shadowtls-trojan ├── server │ └── config.json └── client │ └── config.json ├── vmess-ws ├── server │ └── config.json └── client │ └── config.json ├── shadowtls-vmess ├── server │ └── config.json └── client │ └── config.json ├── README.md ├── shadowtls-v2-trojan ├── server │ └── config.json └── client │ └── config.json ├── shadowtls-v2-shadowsocks ├── server │ └── config.json └── client │ └── config.json ├── shadowtls-v2-vmess ├── server │ └── config.json └── client │ └── config.json ├── trojan-tls-tcp ├── server │ └── config.json └── client │ └── config.json ├── vmess-tls-tcp ├── server │ └── config.json └── client │ └── config.json ├── vmess-tls-grpc ├── server │ └── config.json └── client │ └── config.json ├── vmess-tls-quic ├── server │ └── config.json └── client │ └── config.json ├── trojan-tls-quic ├── server │ └── config.json └── client │ └── config.json ├── trojan-tls-ws ├── server │ └── config.json └── client │ └── config.json ├── vmess-tls-ws ├── server │ └── config.json └── client │ └── config.json ├── hysteria ├── server │ └── config.json └── client │ └── config.json ├── trojan-tls-grpc ├── server │ └── config.json └── client │ └── config.json └── nginx-cdn ├── nginx.conf ├── server └── config.json └── client └── config.json /shadowsocks/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "shadowsocks", 7 | "tag": "shadowsocks-in", 8 | "listen": "::", 9 | "listen_port": 5353, 10 | "method": "2022-blake3-aes-128-gcm", 11 | "password": "8JCsPssfgS8tiRwiMlhARg==" 12 | }], 13 | "outbounds": [{ 14 | "type": "direct", 15 | "tag": "direct" 16 | }] 17 | } -------------------------------------------------------------------------------- /shadowtls-trojan/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "shadowtls", 7 | "listen": "::", 8 | "listen_port": 8443, 9 | "handshake": { 10 | "server": "www.wikimedia.org", 11 | "server_port": 443 12 | }, 13 | "detour": "trojan-in" 14 | }, { 15 | "type": "trojan", 16 | "tag": "trojan-in", 17 | "listen": "127.0.0.1", 18 | "users": [{ 19 | "name": "bitcoinvps.cloud", 20 | "password": "talosliphe" 21 | }] 22 | }], 23 | "outbounds": [{ 24 | "type": "direct", 25 | "tag": "direct" 26 | }] 27 | } -------------------------------------------------------------------------------- /vmess-ws/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "vmess", 7 | "tag": "vmess-ws-in", 8 | "listen": "::", 9 | "listen_port": 80, 10 | "users": [{ 11 | "name": "bitcoinvps.cloud", 12 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 13 | "alterId": 0 14 | }], 15 | "transport": { 16 | "type": "ws", 17 | "path": "/stream", 18 | "max_early_data": 0, 19 | "early_data_header_name": "Sec-WebSocket-Protocol" 20 | } 21 | }], 22 | "outbounds": [{ 23 | "type": "direct", 24 | "tag": "direct" 25 | }] 26 | } -------------------------------------------------------------------------------- /shadowtls-vmess/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "shadowtls", 7 | "listen": "::", 8 | "listen_port": 8443, 9 | "handshake": { 10 | "server": "www.wikimedia.org", 11 | "server_port": 443 12 | }, 13 | "detour": "vmess-in" 14 | }, { 15 | "type": "vmess", 16 | "tag": "vmess-in", 17 | "listen": "127.0.0.1", 18 | "users": [{ 19 | "name": "bitcoinvps.cloud", 20 | "uuid": "18543660-1aa6-49bc-8be6-f6dfc7e87de0", 21 | "alterId": 0 22 | }] 23 | }], 24 | "outbounds": [{ 25 | "type": "direct", 26 | "tag": "direct" 27 | }] 28 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ultimate Sing-Box Guide: Get Sing-Box Up and Running in No Time! 2 | 3 | ## [Sing-Box Installation](https://vpnrouter.homes/install-singbox/) 4 | 5 | ## [Effortless Configuration: Find Your Perfect config.json from Our Ready-Made List](https://vpnrouter.homes/singbox-ready/) 6 | 7 | ## [Create Your Custom config.json: Unlock the Power of Our easy json Blocks](https://vpnrouter.homes/build-singbox-config/) 8 | 9 | ## [Master the Sing-Box: A Guide to Essential Commands](https://vpnrouter.homes/commands/) 10 | 11 | ## [Transform Your Home Network with Singbox VPN Router Gateway](https://vpnrouter.homes/home-vpn-router-setup/) 12 | -------------------------------------------------------------------------------- /shadowtls-v2-trojan/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "shadowtls", 7 | "listen": "::", 8 | "listen_port": 8443, 9 | "version": 2, 10 | "password": "woman life liberty", 11 | "handshake": { 12 | "server": "www.wikimedia.org", 13 | "server_port": 443 14 | }, 15 | "detour": "trojan-in" 16 | }, { 17 | "type": "trojan", 18 | "tag": "trojan-in", 19 | "listen": "127.0.0.1", 20 | "users": [{ 21 | "name": "bitcoinvps.cloud", 22 | "password": "talosliphe" 23 | }] 24 | }], 25 | "outbounds": [{ 26 | "type": "direct", 27 | "tag": "direct" 28 | }] 29 | } -------------------------------------------------------------------------------- /shadowtls-v2-shadowsocks/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "shadowtls", 7 | "listen": "::", 8 | "listen_port": 4443, 9 | "version": 2, 10 | "password": "woman life liberty", 11 | "handshake": { 12 | "server": "google.com", 13 | "server_port": 443 14 | }, 15 | "detour": "shadowsocks-in" 16 | }, { 17 | "type": "shadowsocks", 18 | "tag": "shadowsocks-in", 19 | "listen": "127.0.0.1", 20 | "method": "2022-blake3-aes-128-gcm", 21 | "password": "8JCsPssfgS8tiRwiMlhARg==" 22 | }], 23 | "outbounds": [{ 24 | "type": "direct", 25 | "tag": "direct" 26 | }] 27 | } -------------------------------------------------------------------------------- /shadowtls-v2-vmess/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "shadowtls", 7 | "version": 2, 8 | "password": "woman life liberty", 9 | "listen": "::", 10 | "listen_port": 8443, 11 | "handshake": { 12 | "server": "www.wikimedia.org", 13 | "server_port": 443 14 | }, 15 | "detour": "vmess-in" 16 | }, { 17 | "type": "vmess", 18 | "tag": "vmess-in", 19 | "listen": "127.0.0.1", 20 | "users": [{ 21 | "name": "bitcoinvps.cloud", 22 | "uuid": "18543660-1aa6-49bc-8be6-f6dfc7e87de0", 23 | "alterId": 0 24 | }] 25 | }], 26 | "outbounds": [{ 27 | "type": "direct", 28 | "tag": "direct" 29 | }] 30 | } -------------------------------------------------------------------------------- /trojan-tls-tcp/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "trojan", 7 | "tag": "trojan-tls-in", 8 | "listen": "::", 9 | "listen_port": 443, 10 | "users": [{ 11 | "name": "bitcoinvps.cloud", 12 | "password": "Xa79c9adrudlqoq10afr" 13 | }], 14 | "tls": { 15 | "enabled": true, 16 | "server_name": "subdomain.example.com", 17 | "alpn": [ 18 | "http/1.1" 19 | ], 20 | "min_version": "1.2", 21 | "max_version": "1.3", 22 | "acme": { 23 | "domain": [ 24 | "subdomain.example.com" 25 | ], 26 | "data_directory": "/etc/sing-box", 27 | "default_server_name": "", 28 | "email": "singbox@example.com", 29 | "provider": "letsencrypt" 30 | } 31 | } 32 | }], 33 | "outbounds": [{ 34 | "type": "direct", 35 | "tag": "direct" 36 | }] 37 | } -------------------------------------------------------------------------------- /vmess-tls-tcp/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "vmess", 7 | "tag": "vmess-tls-in", 8 | "listen": "::", 9 | "listen_port": 443, 10 | "users": [{ 11 | "name": "bitcoinvps.cloud", 12 | "uuid": "18543660-1aa6-49bc-8be6-f6dfc7e87de0", 13 | "alterId": 0 14 | }], 15 | "tls": { 16 | "enabled": true, 17 | "server_name": "subdomain.example.com", 18 | "alpn": [ 19 | "http/1.1" 20 | ], 21 | "min_version": "1.2", 22 | "max_version": "1.3", 23 | "acme": { 24 | "domain": [ 25 | "subdomain.example.com" 26 | ], 27 | "data_directory": "/etc/sing-box", 28 | "default_server_name": "", 29 | "email": "singbox@example.com", 30 | "provider": "letsencrypt" 31 | } 32 | } 33 | }], 34 | "outbounds": [{ 35 | "type": "direct", 36 | "tag": "direct" 37 | }] 38 | } -------------------------------------------------------------------------------- /vmess-tls-grpc/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "vmess", 7 | "tag": "vmess-tls-grpc-in", 8 | "listen": "::", 9 | "listen_port": 2086, 10 | "users": [{ 11 | "name": "bitcoinvps.cloud", 12 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 13 | "alterId": 0 14 | }], 15 | "tls": { 16 | "enabled": true, 17 | "server_name": "subdomain.example.com", 18 | "alpn": [ 19 | "http/1.1" 20 | ], 21 | "min_version": "1.2", 22 | "max_version": "1.3", 23 | "acme": { 24 | "domain": ["subdomain.example.com"], 25 | "data_directory": "/etc/sing-box", 26 | "default_server_name": "", 27 | "email": "singbox@example.com", 28 | "provider": "letsencrypt" 29 | } 30 | }, 31 | "transport": { 32 | "type": "grpc" 33 | } 34 | }], 35 | "outbounds": [{ 36 | "type": "direct", 37 | "tag": "direct" 38 | }] 39 | } -------------------------------------------------------------------------------- /vmess-tls-quic/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "vmess", 7 | "tag": "vmess-tls-quic-in", 8 | "listen": "::", 9 | "listen_port": 2052, 10 | "users": [{ 11 | "name": "bitcoinvps.cloud", 12 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 13 | "alterId": 0 14 | }], 15 | "tls": { 16 | "enabled": true, 17 | "server_name": "subdomain.example.com", 18 | "alpn": [ 19 | "http/1.1" 20 | ], 21 | "min_version": "1.2", 22 | "max_version": "1.3", 23 | "acme": { 24 | "domain": ["subdomain.example.com"], 25 | "data_directory": "/etc/sing-box", 26 | "default_server_name": "", 27 | "email": "singbox@example.com", 28 | "provider": "letsencrypt" 29 | } 30 | }, 31 | "transport": { 32 | "type": "quic" 33 | } 34 | }], 35 | "outbounds": [{ 36 | "type": "direct", 37 | "tag": "direct" 38 | }] 39 | } -------------------------------------------------------------------------------- /trojan-tls-quic/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "trojan", 7 | "tag": "trojan-tls-quic-in", 8 | "listen": "::", 9 | "listen_port": 8880, 10 | "udp_timeout": 300, 11 | "users": [{ 12 | "name": "bitcoinvps.cloud", 13 | "password": "yemufratad9YlYuwaBrA" 14 | }], 15 | "tls": { 16 | "enabled": true, 17 | "server_name": "subdomain.example.com", 18 | "alpn": [ 19 | "http/1.1" 20 | ], 21 | "min_version": "1.2", 22 | "max_version": "1.3", 23 | "acme": { 24 | "domain": [ 25 | "subdomain.example.com" 26 | ], 27 | "data_directory": "/etc/sing-box", 28 | "default_server_name": "", 29 | "email": "singbox@example.com", 30 | "provider": "letsencrypt" 31 | } 32 | }, 33 | "transport": { 34 | "type": "quic" 35 | } 36 | }], 37 | "outbounds": [{ 38 | "type": "direct", 39 | "tag": "direct" 40 | }] 41 | } -------------------------------------------------------------------------------- /trojan-tls-ws/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "trojan", 7 | "tag": "trojan-ws-in", 8 | "listen": "::", 9 | "listen_port": 443, 10 | "users": [{ 11 | "name": "bitcoinvps.cloud", 12 | "password": "yemufratad9YlYuwaBrA" 13 | }], 14 | "tls": { 15 | "enabled": true, 16 | "server_name": "subdomain.example.com", 17 | "alpn": [ 18 | "http/1.1" 19 | ], 20 | "min_version": "1.2", 21 | "max_version": "1.3", 22 | "acme": { 23 | "domain": [ 24 | "subdomain.example.com" 25 | ], 26 | "data_directory": "/etc/sing-box", 27 | "default_server_name": "", 28 | "email": "singbox@example.com", 29 | "provider": "letsencrypt" 30 | } 31 | }, 32 | "transport": { 33 | "type": "ws", 34 | "path": "/tv", 35 | "max_early_data": 0, 36 | "early_data_header_name": "Sec-WebSocket-Protocol" 37 | } 38 | }], 39 | "outbounds": [{ 40 | "type": "direct", 41 | "tag": "direct" 42 | }] 43 | } -------------------------------------------------------------------------------- /vmess-tls-ws/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "vmess", 7 | "tag": "vmess-ws-in", 8 | "listen": "::", 9 | "listen_port": 443, 10 | "users": [{ 11 | "name": "bitcoinvps.cloud", 12 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 13 | "alterId": 0 14 | }], 15 | "tls": { 16 | "enabled": true, 17 | "server_name": "subdomain.example.com", 18 | "alpn": [ 19 | "http/1.1" 20 | ], 21 | "min_version": "1.2", 22 | "max_version": "1.3", 23 | "acme": { 24 | "domain": ["subdomain.example.com"], 25 | "data_directory": "/etc/sing-box", 26 | "default_server_name": "", 27 | "email": "singbox@example.com", 28 | "provider": "letsencrypt" 29 | } 30 | }, 31 | "transport": { 32 | "type": "ws", 33 | "path": "/stream", 34 | "max_early_data": 0, 35 | "early_data_header_name": "Sec-WebSocket-Protocol" 36 | } 37 | }], 38 | "outbounds": [{ 39 | "type": "direct", 40 | "tag": "direct" 41 | }] 42 | } -------------------------------------------------------------------------------- /hysteria/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "hysteria", 7 | "tag": "hysteria-in", 8 | "listen": "::", 9 | "listen_port": 8443, 10 | "up_mbps": 500, 11 | "down_mbps": 500, 12 | "users": [{ 13 | "name": "bitcoinvps.cloud", 14 | "auth": "8JCsPssfgS8tiRwiMlhARg==", 15 | "auth_str": "upiTU?rUW3+4e6Radro" 16 | }], 17 | "max_conn_client": 2048, 18 | "disable_mtu_discovery": false, 19 | "tls": { 20 | "enabled": true, 21 | "server_name": "subdomain.example.com", 22 | "alpn": [ 23 | "h3" 24 | ], 25 | "min_version": "1.2", 26 | "max_version": "1.3", 27 | "certificate_path": "", 28 | "key_path": "", 29 | "acme": { 30 | "domain": ["subdomain.example.com"], 31 | "data_directory": "/etc/sing-box", 32 | "default_server_name": "", 33 | "email": "singbox@example.com", 34 | "provider": "letsencrypt" 35 | } 36 | } 37 | }], 38 | "outbounds": [{ 39 | "type": "direct", 40 | "tag": "direct" 41 | }] 42 | } -------------------------------------------------------------------------------- /trojan-tls-grpc/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "trojan", 7 | "tag": "trojan-tls-grpc-in", 8 | "listen": "::", 9 | "listen_port": 2082, 10 | "tcp_fast_open": true, 11 | "udp_fragment": true, 12 | "udp_timeout": 300, 13 | "proxy_protocol": true, 14 | "proxy_protocol_accept_no_header": true, 15 | "users": [{ 16 | "name": "bitcoinvps.cloud", 17 | "password": "yemufratad9YlYuwaBrA" 18 | }], 19 | "tls": { 20 | "enabled": true, 21 | "server_name": "subdomain.example.com", 22 | "alpn": [ 23 | "http/1.1" 24 | ], 25 | "min_version": "1.2", 26 | "max_version": "1.3", 27 | "acme": { 28 | "domain": [ 29 | "subdomain.example.com" 30 | ], 31 | "data_directory": "/etc/sing-box", 32 | "default_server_name": "", 33 | "email": "singbox@example.com", 34 | "provider": "letsencrypt" 35 | } 36 | }, 37 | "transport": { 38 | "type": "grpc" 39 | } 40 | }], 41 | "outbounds": [{ 42 | "type": "direct", 43 | "tag": "direct" 44 | }] 45 | } -------------------------------------------------------------------------------- /nginx-cdn/nginx.conf: -------------------------------------------------------------------------------- 1 | stream { 2 | map $ssl_preread_server_name $singbox { 3 | trojan.example.com trojan; 4 | trojan-ws.example.com trojan-ws; 5 | trojan-ws-6.example.com trojan-ws-6; 6 | vmess.example.com vmess; 7 | vmess-ws.example.com vmess-ws; 8 | vmess-ws-6.example.com vmess-ws-6; 9 | } 10 | upstream trojan { 11 | server 127.0.0.1:52000; 12 | } 13 | upstream trojan-ws { 14 | server 127.0.0.1:52001; 15 | } 16 | upstream trojan-ws-6 { 17 | server 127.0.0.1:52002; 18 | } 19 | upstream vmess { 20 | server 127.0.0.1:52003; 21 | } 22 | upstream vmess-ws { 23 | server 127.0.0.1:52004; 24 | } 25 | upstream vmess-ws-6 { 26 | server 127.0.0.1:52005; 27 | } 28 | server { 29 | listen 443 reuseport; 30 | listen [::]:443 reuseport; 31 | proxy_pass $singbox; 32 | ssl_preread on; 33 | proxy_protocol on; 34 | } 35 | } -------------------------------------------------------------------------------- /shadowsocks/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "shadowsocks", 56 | "tag": "shadowsocks-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 5353, 59 | "method": "2022-blake3-aes-128-gcm", 60 | "password": "8JCsPssfgS8tiRwiMlhARg==" 61 | }, 62 | { 63 | "type": "direct", 64 | "tag": "direct" 65 | }, { 66 | "type": "block", 67 | "tag": "block" 68 | }, 69 | { 70 | "type": "dns", 71 | "tag": "dns-out" 72 | } 73 | ], 74 | "route": { 75 | "geoip": { 76 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 77 | "download_detour": "direct" 78 | }, 79 | "geosite": { 80 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 81 | "download_detour": "direct" 82 | }, 83 | "rules": [{ 84 | "protocol": "dns", 85 | "outbound": "dns-out" 86 | }, 87 | { 88 | "geoip": "private", 89 | "outbound": "direct" 90 | }, 91 | { 92 | "geosite": "category-ads-all", 93 | "outbound": "block" 94 | }, 95 | { 96 | "domain_keyword": [ 97 | "yektanet", 98 | "adengine.telewebion.com" 99 | ], 100 | "outbound": "block" 101 | }, 102 | { 103 | "domain_suffix": [ 104 | ".ir", 105 | "aparat.com", 106 | "digikala.com", 107 | "telewebion.com", 108 | "varzesh3.com" 109 | ], 110 | "outbound": "direct" 111 | }, 112 | { 113 | "port": [ 114 | 22, 115 | 3389 116 | ], 117 | "outbound": "direct" 118 | } 119 | ], 120 | "final": "shadowsocks-out", 121 | "auto_detect_interface": true 122 | } 123 | } -------------------------------------------------------------------------------- /shadowtls-trojan/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "trojan", 56 | "tag": "trojan-out", 57 | "password": "talosliphe", 58 | "detour": "shadowtls-out" 59 | }, { 60 | "type": "shadowtls", 61 | "tag": "shadowtls-out", 62 | "server": "SERVER-IP-ADDRESS", 63 | "server_port": 8443, 64 | "tls": { 65 | "enabled": true, 66 | "server_name": "www.wikimedia.org" 67 | } 68 | }, 69 | { 70 | "type": "direct", 71 | "tag": "direct" 72 | }, { 73 | "type": "block", 74 | "tag": "block" 75 | }, 76 | { 77 | "type": "dns", 78 | "tag": "dns-out" 79 | } 80 | ], 81 | "route": { 82 | "geoip": { 83 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 84 | "download_detour": "direct" 85 | }, 86 | "geosite": { 87 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 88 | "download_detour": "direct" 89 | }, 90 | "rules": [{ 91 | "protocol": "dns", 92 | "outbound": "dns-out" 93 | }, 94 | { 95 | "geoip": "private", 96 | "outbound": "direct" 97 | }, 98 | { 99 | "geosite": "category-ads-all", 100 | "outbound": "block" 101 | }, 102 | { 103 | "domain_keyword": [ 104 | "yektanet", 105 | "adengine.telewebion.com" 106 | ], 107 | "outbound": "block" 108 | }, 109 | { 110 | "domain_suffix": [ 111 | ".ir", 112 | "aparat.com", 113 | "digikala.com", 114 | "telewebion.com", 115 | "varzesh3.com" 116 | ], 117 | "outbound": "direct" 118 | }, 119 | { 120 | "port": [ 121 | 22, 122 | 3389 123 | ], 124 | "outbound": "direct" 125 | } 126 | ], 127 | "final": "trojan-out", 128 | "auto_detect_interface": true 129 | } 130 | } -------------------------------------------------------------------------------- /shadowtls-v2-trojan/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "trojan", 56 | "tag": "trojan-out", 57 | "password": "talosliphe", 58 | "detour": "shadowtls-out" 59 | }, { 60 | "type": "shadowtls", 61 | "tag": "shadowtls-out", 62 | "server": "SERVER-IP-ADDRESS", 63 | "server_port": 8443, 64 | "version": 2, 65 | "password": "woman life liberty", 66 | "tls": { 67 | "enabled": true, 68 | "server_name": "www.wikimedia.org" 69 | } 70 | }, 71 | { 72 | "type": "direct", 73 | "tag": "direct" 74 | }, { 75 | "type": "block", 76 | "tag": "block" 77 | }, 78 | { 79 | "type": "dns", 80 | "tag": "dns-out" 81 | } 82 | ], 83 | "route": { 84 | "geoip": { 85 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 86 | "download_detour": "direct" 87 | }, 88 | "geosite": { 89 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 90 | "download_detour": "direct" 91 | }, 92 | "rules": [{ 93 | "protocol": "dns", 94 | "outbound": "dns-out" 95 | }, 96 | { 97 | "geoip": "private", 98 | "outbound": "direct" 99 | }, 100 | { 101 | "geosite": "category-ads-all", 102 | "outbound": "block" 103 | }, 104 | { 105 | "domain_keyword": [ 106 | "yektanet", 107 | "adengine.telewebion.com" 108 | ], 109 | "outbound": "block" 110 | }, 111 | { 112 | "domain_suffix": [ 113 | ".ir", 114 | "aparat.com", 115 | "digikala.com", 116 | "telewebion.com", 117 | "varzesh3.com" 118 | ], 119 | "outbound": "direct" 120 | }, 121 | { 122 | "port": [ 123 | 22, 124 | 3389 125 | ], 126 | "outbound": "direct" 127 | } 128 | ], 129 | "final": "trojan-out", 130 | "auto_detect_interface": true 131 | } 132 | } -------------------------------------------------------------------------------- /hysteria/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "hysteria", 56 | "tag": "hysteria-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 8443, 59 | "up_mbps": 500, 60 | "down_mbps": 500, 61 | "auth": "8JCsPssfgS8tiRwiMlhARg==", 62 | "auth_str": "upiTU?rUW3+4e6Radro", 63 | "disable_mtu_discovery": false, 64 | "tls": { 65 | "enabled": true, 66 | "disable_sni": false, 67 | "server_name": "subdomain.example.com", 68 | "insecure": false, 69 | "alpn": [ 70 | "h3" 71 | ] 72 | }, 73 | "connect_timeout": "5s" 74 | }, 75 | { 76 | "type": "direct", 77 | "tag": "direct" 78 | }, { 79 | "type": "block", 80 | "tag": "block" 81 | }, 82 | { 83 | "type": "dns", 84 | "tag": "dns-out" 85 | } 86 | ], 87 | "route": { 88 | "geoip": { 89 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 90 | "download_detour": "direct" 91 | }, 92 | "geosite": { 93 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 94 | "download_detour": "direct" 95 | }, 96 | "rules": [{ 97 | "protocol": "dns", 98 | "outbound": "dns-out" 99 | }, 100 | { 101 | "geoip": "private", 102 | "outbound": "direct" 103 | }, 104 | { 105 | "geosite": "category-ads-all", 106 | "outbound": "block" 107 | }, 108 | { 109 | "domain_keyword": [ 110 | "yektanet", 111 | "adengine.telewebion.com" 112 | ], 113 | "outbound": "block" 114 | }, 115 | { 116 | "domain_suffix": [ 117 | ".ir", 118 | "aparat.com", 119 | "digikala.com", 120 | "telewebion.com", 121 | "varzesh3.com" 122 | ], 123 | "outbound": "direct" 124 | }, 125 | { 126 | "port": [ 127 | 22, 128 | 3389 129 | ], 130 | "outbound": "direct" 131 | } 132 | ], 133 | "final": "hysteria-out", 134 | "auto_detect_interface": true 135 | } 136 | } -------------------------------------------------------------------------------- /trojan-tls-ws/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "trojan", 56 | "tag": "trojan-ws-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 443, 59 | "password": "yemufratad9YlYuwaBrA", 60 | "tls": { 61 | "enabled": true, 62 | "disable_sni": false, 63 | "server_name": "subdomain.example.com", 64 | "insecure": false, 65 | "alpn": [ 66 | "http/1.1" 67 | ] 68 | }, 69 | "transport": { 70 | "type": "ws", 71 | "path": "/tv", 72 | "max_early_data": 0, 73 | "early_data_header_name": "Sec-WebSocket-Protocol" 74 | }, 75 | "connect_timeout": "5s" 76 | }, 77 | { 78 | "type": "direct", 79 | "tag": "direct" 80 | }, { 81 | "type": "block", 82 | "tag": "block" 83 | }, 84 | { 85 | "type": "dns", 86 | "tag": "dns-out" 87 | } 88 | ], 89 | "route": { 90 | "geoip": { 91 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 92 | "download_detour": "direct" 93 | }, 94 | "geosite": { 95 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 96 | "download_detour": "direct" 97 | }, 98 | "rules": [{ 99 | "protocol": "dns", 100 | "outbound": "dns-out" 101 | }, 102 | { 103 | "geoip": "private", 104 | "outbound": "direct" 105 | }, 106 | { 107 | "geosite": "category-ads-all", 108 | "outbound": "block" 109 | }, 110 | { 111 | "domain_keyword": [ 112 | "yektanet", 113 | "adengine.telewebion.com" 114 | ], 115 | "outbound": "block" 116 | }, 117 | { 118 | "domain_suffix": [ 119 | ".ir", 120 | "aparat.com", 121 | "digikala.com", 122 | "telewebion.com", 123 | "varzesh3.com" 124 | ], 125 | "outbound": "direct" 126 | }, 127 | { 128 | "port": [ 129 | 22, 130 | 3389 131 | ], 132 | "outbound": "direct" 133 | } 134 | ], 135 | "final": "trojan-ws-out", 136 | "auto_detect_interface": true 137 | } 138 | } -------------------------------------------------------------------------------- /trojan-tls-tcp/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "trojan", 56 | "tag": "trojan-tls-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 443, 59 | "password": "Xa79c9adrudlqoq10afr", 60 | "tls": { 61 | "enabled": true, 62 | "disable_sni": false, 63 | "server_name": "subdomain.example.com", 64 | "insecure": false, 65 | "alpn": [ 66 | "http/1.1" 67 | ] 68 | }, 69 | "multiplex": { 70 | "enabled": true, 71 | "protocol": "smux", 72 | "max_connections": 4, 73 | "min_streams": 5, 74 | "max_streams": 0 75 | }, 76 | "connect_timeout": "5s" 77 | }, 78 | { 79 | "type": "direct", 80 | "tag": "direct" 81 | }, { 82 | "type": "block", 83 | "tag": "block" 84 | }, 85 | { 86 | "type": "dns", 87 | "tag": "dns-out" 88 | } 89 | ], 90 | "route": { 91 | "geoip": { 92 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 93 | "download_detour": "direct" 94 | }, 95 | "geosite": { 96 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 97 | "download_detour": "direct" 98 | }, 99 | "rules": [{ 100 | "protocol": "dns", 101 | "outbound": "dns-out" 102 | }, 103 | { 104 | "geoip": "private", 105 | "outbound": "direct" 106 | }, 107 | { 108 | "geosite": "category-ads-all", 109 | "outbound": "block" 110 | }, 111 | { 112 | "domain_keyword": [ 113 | "yektanet", 114 | "adengine.telewebion.com" 115 | ], 116 | "outbound": "block" 117 | }, 118 | { 119 | "domain_suffix": [ 120 | ".ir", 121 | "aparat.com", 122 | "digikala.com", 123 | "telewebion.com", 124 | "varzesh3.com" 125 | ], 126 | "outbound": "direct" 127 | }, 128 | { 129 | "port": [ 130 | 22, 131 | 3389 132 | ], 133 | "outbound": "direct" 134 | } 135 | ], 136 | "final": "trojan-tls-out", 137 | "auto_detect_interface": true 138 | } 139 | } -------------------------------------------------------------------------------- /shadowtls-v2-shadowsocks/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "shadowsocks", 56 | "tag": "shadowsocks-out", 57 | "method": "2022-blake3-aes-128-gcm", 58 | "password": "8JCsPssfgS8tiRwiMlhARg==", 59 | "detour": "shadowtls-out", 60 | "multiplex": { 61 | "enabled": true, 62 | "max_connections": 4, 63 | "min_streams": 4 64 | } 65 | }, 66 | { 67 | "type": "shadowtls", 68 | "tag": "shadowtls-out", 69 | "server": "SERVER-IP-ADDRESS", 70 | "server_port": 4443, 71 | "version": 2, 72 | "password": "woman life liberty", 73 | "tls": { 74 | "enabled": true, 75 | "server_name": "google.com" 76 | } 77 | }, 78 | { 79 | "type": "direct", 80 | "tag": "direct" 81 | }, { 82 | "type": "block", 83 | "tag": "block" 84 | }, 85 | { 86 | "type": "dns", 87 | "tag": "dns-out" 88 | } 89 | ], 90 | "route": { 91 | "geoip": { 92 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 93 | "download_detour": "direct" 94 | }, 95 | "geosite": { 96 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 97 | "download_detour": "direct" 98 | }, 99 | "rules": [{ 100 | "protocol": "dns", 101 | "outbound": "dns-out" 102 | }, 103 | { 104 | "geoip": "private", 105 | "outbound": "direct" 106 | }, 107 | { 108 | "geosite": "category-ads-all", 109 | "outbound": "block" 110 | }, 111 | { 112 | "domain_keyword": [ 113 | "yektanet", 114 | "adengine.telewebion.com" 115 | ], 116 | "outbound": "block" 117 | }, 118 | { 119 | "domain_suffix": [ 120 | ".ir", 121 | "aparat.com", 122 | "digikala.com", 123 | "telewebion.com", 124 | "varzesh3.com" 125 | ], 126 | "outbound": "direct" 127 | }, 128 | { 129 | "port": [ 130 | 22, 131 | 3389 132 | ], 133 | "outbound": "direct" 134 | } 135 | ], 136 | "final": "shadowsocks-out", 137 | "auto_detect_interface": true 138 | } 139 | } -------------------------------------------------------------------------------- /trojan-tls-quic/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "trojan", 56 | "tag": "trojan-tls-quic-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 8880, 59 | "password": "yemufratad9YlYuwaBrA", 60 | "tls": { 61 | "enabled": true, 62 | "disable_sni": false, 63 | "server_name": "subdomain.example.com", 64 | "insecure": false, 65 | "alpn": [ 66 | "http/1.1" 67 | ] 68 | }, 69 | "multiplex": { 70 | "enabled": true, 71 | "protocol": "smux", 72 | "max_connections": 5, 73 | "min_streams": 4, 74 | "max_streams": 0 75 | }, 76 | "transport": { 77 | "type": "quic" 78 | }, 79 | "connect_timeout": "5s" 80 | }, 81 | { 82 | "type": "direct", 83 | "tag": "direct" 84 | }, { 85 | "type": "block", 86 | "tag": "block" 87 | }, 88 | { 89 | "type": "dns", 90 | "tag": "dns-out" 91 | } 92 | ], 93 | "route": { 94 | "geoip": { 95 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 96 | "download_detour": "direct" 97 | }, 98 | "geosite": { 99 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 100 | "download_detour": "direct" 101 | }, 102 | "rules": [{ 103 | "protocol": "dns", 104 | "outbound": "dns-out" 105 | }, 106 | { 107 | "geoip": "private", 108 | "outbound": "direct" 109 | }, 110 | { 111 | "geosite": "category-ads-all", 112 | "outbound": "block" 113 | }, 114 | { 115 | "domain_keyword": [ 116 | "yektanet", 117 | "adengine.telewebion.com" 118 | ], 119 | "outbound": "block" 120 | }, 121 | { 122 | "domain_suffix": [ 123 | ".ir", 124 | "aparat.com", 125 | "digikala.com", 126 | "telewebion.com", 127 | "varzesh3.com" 128 | ], 129 | "outbound": "direct" 130 | }, 131 | { 132 | "port": [ 133 | 22, 134 | 3389 135 | ], 136 | "outbound": "direct" 137 | } 138 | ], 139 | "final": "trojan-tls-quic-out", 140 | "auto_detect_interface": true 141 | } 142 | } -------------------------------------------------------------------------------- /vmess-ws/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "vmess", 56 | "tag": "vmess-ws-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 80, 59 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 60 | "security": "auto", 61 | "alter_id": 0, 62 | "global_padding": false, 63 | "authenticated_length": true, 64 | "multiplex": { 65 | "enabled": true, 66 | "protocol": "smux", 67 | "max_connections": 5, 68 | "min_streams": 4, 69 | "max_streams": 0 70 | }, 71 | "transport": { 72 | "type": "ws", 73 | "path": "/stream", 74 | "max_early_data": 0, 75 | "early_data_header_name": "Sec-WebSocket-Protocol" 76 | }, 77 | "connect_timeout": "5s" 78 | }, 79 | { 80 | "type": "direct", 81 | "tag": "direct" 82 | }, { 83 | "type": "block", 84 | "tag": "block" 85 | }, 86 | { 87 | "type": "dns", 88 | "tag": "dns-out" 89 | } 90 | ], 91 | "route": { 92 | "geoip": { 93 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 94 | "download_detour": "direct" 95 | }, 96 | "geosite": { 97 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 98 | "download_detour": "direct" 99 | }, 100 | "rules": [{ 101 | "protocol": "dns", 102 | "outbound": "dns-out" 103 | }, 104 | { 105 | "geoip": "private", 106 | "outbound": "direct" 107 | }, 108 | { 109 | "geosite": "category-ads-all", 110 | "outbound": "block" 111 | }, 112 | { 113 | "domain_keyword": [ 114 | "yektanet", 115 | "adengine.telewebion.com" 116 | ], 117 | "outbound": "block" 118 | }, 119 | { 120 | "domain_suffix": [ 121 | ".ir", 122 | "aparat.com", 123 | "digikala.com", 124 | "telewebion.com", 125 | "varzesh3.com" 126 | ], 127 | "outbound": "direct" 128 | }, 129 | { 130 | "port": [ 131 | 22, 132 | 3389 133 | ], 134 | "outbound": "direct" 135 | } 136 | ], 137 | "final": "vmess-ws-out", 138 | "auto_detect_interface": true 139 | } 140 | } -------------------------------------------------------------------------------- /trojan-tls-grpc/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "trojan", 56 | "tag": "trojan-tls-grpc-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 2082, 59 | "password": "yemufratad9YlYuwaBrA", 60 | "tls": { 61 | "enabled": true, 62 | "disable_sni": false, 63 | "server_name": "subdomain.example.com", 64 | "insecure": false, 65 | "alpn": [ 66 | "http/1.1" 67 | ] 68 | }, 69 | "multiplex": { 70 | "enabled": true, 71 | "protocol": "smux", 72 | "max_connections": 5, 73 | "min_streams": 4, 74 | "max_streams": 0 75 | }, 76 | "transport": { 77 | "type": "grpc" 78 | }, 79 | "connect_timeout": "5s", 80 | "tcp_fast_open": true, 81 | "udp_fragment": true 82 | }, 83 | { 84 | "type": "direct", 85 | "tag": "direct" 86 | }, { 87 | "type": "block", 88 | "tag": "block" 89 | }, 90 | { 91 | "type": "dns", 92 | "tag": "dns-out" 93 | } 94 | ], 95 | "route": { 96 | "geoip": { 97 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 98 | "download_detour": "direct" 99 | }, 100 | "geosite": { 101 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 102 | "download_detour": "direct" 103 | }, 104 | "rules": [{ 105 | "protocol": "dns", 106 | "outbound": "dns-out" 107 | }, 108 | { 109 | "geoip": "private", 110 | "outbound": "direct" 111 | }, 112 | { 113 | "geosite": "category-ads-all", 114 | "outbound": "block" 115 | }, 116 | { 117 | "domain_keyword": [ 118 | "yektanet", 119 | "adengine.telewebion.com" 120 | ], 121 | "outbound": "block" 122 | }, 123 | { 124 | "domain_suffix": [ 125 | ".ir", 126 | "aparat.com", 127 | "digikala.com", 128 | "telewebion.com", 129 | "varzesh3.com" 130 | ], 131 | "outbound": "direct" 132 | }, 133 | { 134 | "port": [ 135 | 22, 136 | 3389 137 | ], 138 | "outbound": "direct" 139 | } 140 | ], 141 | "final": "trojan-tls-grpc-out", 142 | "auto_detect_interface": true 143 | } 144 | } -------------------------------------------------------------------------------- /vmess-tls-tcp/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "vmess", 56 | "tag": "vmess-tls-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 443, 59 | "uuid": "18543660-1aa6-49bc-8be6-f6dfc7e87de0", 60 | "security": "auto", 61 | "alter_id": 0, 62 | "global_padding": false, 63 | "authenticated_length": true, 64 | "tls": { 65 | "enabled": true, 66 | "disable_sni": false, 67 | "server_name": "subdomain.example.com", 68 | "insecure": false, 69 | "alpn": [ 70 | "http/1.1" 71 | ] 72 | }, 73 | "multiplex": { 74 | "enabled": true, 75 | "protocol": "smux", 76 | "max_connections": 5, 77 | "min_streams": 4, 78 | "max_streams": 0 79 | }, 80 | "connect_timeout": "5s" 81 | }, 82 | { 83 | "type": "direct", 84 | "tag": "direct" 85 | }, { 86 | "type": "block", 87 | "tag": "block" 88 | }, 89 | { 90 | "type": "dns", 91 | "tag": "dns-out" 92 | } 93 | ], 94 | "route": { 95 | "geoip": { 96 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 97 | "download_detour": "direct" 98 | }, 99 | "geosite": { 100 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 101 | "download_detour": "direct" 102 | }, 103 | "rules": [{ 104 | "protocol": "dns", 105 | "outbound": "dns-out" 106 | }, 107 | { 108 | "geoip": "private", 109 | "outbound": "direct" 110 | }, 111 | { 112 | "geosite": "category-ads-all", 113 | "outbound": "block" 114 | }, 115 | { 116 | "domain_keyword": [ 117 | "yektanet", 118 | "adengine.telewebion.com" 119 | ], 120 | "outbound": "block" 121 | }, 122 | { 123 | "domain_suffix": [ 124 | ".ir", 125 | "aparat.com", 126 | "digikala.com", 127 | "telewebion.com", 128 | "varzesh3.com" 129 | ], 130 | "outbound": "direct" 131 | }, 132 | { 133 | "port": [ 134 | 22, 135 | 3389 136 | ], 137 | "outbound": "direct" 138 | } 139 | ], 140 | "final": "vmess-tls-out", 141 | "auto_detect_interface": true 142 | } 143 | } -------------------------------------------------------------------------------- /shadowtls-vmess/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "vmess", 56 | "tag": "vmess-out", 57 | "uuid": "18543660-1aa6-49bc-8be6-f6dfc7e87de0", 58 | "security": "auto", 59 | "alter_id": 0, 60 | "global_padding": false, 61 | "authenticated_length": true, 62 | "multiplex": { 63 | "enabled": true, 64 | "protocol": "smux", 65 | "max_connections": 5, 66 | "min_streams": 4, 67 | "max_streams": 0 68 | }, 69 | "connect_timeout": "5s", 70 | "tcp_fast_open": true, 71 | "udp_fragment": true, 72 | "detour": "shadowtls-out" 73 | }, { 74 | "type": "shadowtls", 75 | "tag": "shadowtls-out", 76 | "server": "SERVER-IP-ADDRESS", 77 | "server_port": 8443, 78 | "tls": { 79 | "enabled": true, 80 | "server_name": "www.wikimedia.org" 81 | } 82 | }, 83 | { 84 | "type": "direct", 85 | "tag": "direct" 86 | }, { 87 | "type": "block", 88 | "tag": "block" 89 | }, 90 | { 91 | "type": "dns", 92 | "tag": "dns-out" 93 | } 94 | ], 95 | "route": { 96 | "geoip": { 97 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 98 | "download_detour": "direct" 99 | }, 100 | "geosite": { 101 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 102 | "download_detour": "direct" 103 | }, 104 | "rules": [{ 105 | "protocol": "dns", 106 | "outbound": "dns-out" 107 | }, 108 | { 109 | "geoip": "private", 110 | "outbound": "direct" 111 | }, 112 | { 113 | "geosite": "category-ads-all", 114 | "outbound": "block" 115 | }, 116 | { 117 | "domain_keyword": [ 118 | "yektanet", 119 | "adengine.telewebion.com" 120 | ], 121 | "outbound": "block" 122 | }, 123 | { 124 | "domain_suffix": [ 125 | ".ir", 126 | "aparat.com", 127 | "digikala.com", 128 | "telewebion.com", 129 | "varzesh3.com" 130 | ], 131 | "outbound": "direct" 132 | }, 133 | { 134 | "port": [ 135 | 22, 136 | 3389 137 | ], 138 | "outbound": "direct" 139 | } 140 | ], 141 | "final": "vmess-out", 142 | "auto_detect_interface": true 143 | } 144 | } -------------------------------------------------------------------------------- /vmess-tls-quic/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "vmess", 56 | "tag": "vmess-tls-quic-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 2052, 59 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 60 | "security": "auto", 61 | "alter_id": 0, 62 | "global_padding": false, 63 | "authenticated_length": true, 64 | "tls": { 65 | "enabled": true, 66 | "disable_sni": false, 67 | "server_name": "subdomain.example.com", 68 | "insecure": false, 69 | "alpn": [ 70 | "http/1.1" 71 | ] 72 | }, 73 | "multiplex": { 74 | "enabled": true, 75 | "protocol": "smux", 76 | "max_connections": 5, 77 | "min_streams": 4, 78 | "max_streams": 0 79 | }, 80 | "transport": { 81 | "type": "quic" 82 | }, 83 | "connect_timeout": "5s" 84 | }, 85 | { 86 | "type": "direct", 87 | "tag": "direct" 88 | }, { 89 | "type": "block", 90 | "tag": "block" 91 | }, 92 | { 93 | "type": "dns", 94 | "tag": "dns-out" 95 | } 96 | ], 97 | "route": { 98 | "geoip": { 99 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 100 | "download_detour": "direct" 101 | }, 102 | "geosite": { 103 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 104 | "download_detour": "direct" 105 | }, 106 | "rules": [{ 107 | "protocol": "dns", 108 | "outbound": "dns-out" 109 | }, 110 | { 111 | "geoip": "private", 112 | "outbound": "direct" 113 | }, 114 | { 115 | "geosite": "category-ads-all", 116 | "outbound": "block" 117 | }, 118 | { 119 | "domain_keyword": [ 120 | "yektanet", 121 | "adengine.telewebion.com" 122 | ], 123 | "outbound": "block" 124 | }, 125 | { 126 | "domain_suffix": [ 127 | ".ir", 128 | "aparat.com", 129 | "digikala.com", 130 | "telewebion.com", 131 | "varzesh3.com" 132 | ], 133 | "outbound": "direct" 134 | }, 135 | { 136 | "port": [ 137 | 22, 138 | 3389 139 | ], 140 | "outbound": "direct" 141 | } 142 | ], 143 | "final": "vmess-tls-quic-out", 144 | "auto_detect_interface": true 145 | } 146 | } -------------------------------------------------------------------------------- /shadowtls-v2-vmess/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "vmess", 56 | "tag": "vmess-out", 57 | "uuid": "18543660-1aa6-49bc-8be6-f6dfc7e87de0", 58 | "security": "auto", 59 | "alter_id": 0, 60 | "global_padding": false, 61 | "authenticated_length": true, 62 | "multiplex": { 63 | "enabled": true, 64 | "protocol": "smux", 65 | "max_connections": 5, 66 | "min_streams": 4, 67 | "max_streams": 0 68 | }, 69 | "connect_timeout": "5s", 70 | "tcp_fast_open": true, 71 | "udp_fragment": true, 72 | "detour": "shadowtls-out" 73 | }, { 74 | "type": "shadowtls", 75 | "tag": "shadowtls-out", 76 | "server": "SERVER-IP-ADDRESS", 77 | "version": 2, 78 | "password": "woman life liberty", 79 | "server_port": 8443, 80 | "tls": { 81 | "enabled": true, 82 | "server_name": "www.wikimedia.org" 83 | } 84 | }, 85 | { 86 | "type": "direct", 87 | "tag": "direct" 88 | }, { 89 | "type": "block", 90 | "tag": "block" 91 | }, 92 | { 93 | "type": "dns", 94 | "tag": "dns-out" 95 | } 96 | ], 97 | "route": { 98 | "geoip": { 99 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 100 | "download_detour": "direct" 101 | }, 102 | "geosite": { 103 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 104 | "download_detour": "direct" 105 | }, 106 | "rules": [{ 107 | "protocol": "dns", 108 | "outbound": "dns-out" 109 | }, 110 | { 111 | "geoip": "private", 112 | "outbound": "direct" 113 | }, 114 | { 115 | "geosite": "category-ads-all", 116 | "outbound": "block" 117 | }, 118 | { 119 | "domain_keyword": [ 120 | "yektanet", 121 | "adengine.telewebion.com" 122 | ], 123 | "outbound": "block" 124 | }, 125 | { 126 | "domain_suffix": [ 127 | ".ir", 128 | "aparat.com", 129 | "digikala.com", 130 | "telewebion.com", 131 | "varzesh3.com" 132 | ], 133 | "outbound": "direct" 134 | }, 135 | { 136 | "port": [ 137 | 22, 138 | 3389 139 | ], 140 | "outbound": "direct" 141 | } 142 | ], 143 | "final": "vmess-out", 144 | "auto_detect_interface": true 145 | } 146 | } -------------------------------------------------------------------------------- /vmess-tls-grpc/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "vmess", 56 | "tag": "vmess-tls-grpc-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 2086, 59 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 60 | "security": "auto", 61 | "alter_id": 0, 62 | "global_padding": false, 63 | "authenticated_length": true, 64 | "tls": { 65 | "enabled": true, 66 | "disable_sni": false, 67 | "server_name": "subdomain.example.com", 68 | "insecure": false, 69 | "alpn": [ 70 | "http/1.1" 71 | ], 72 | "utls": { 73 | "enabled": true, 74 | "fingerprint": "random" 75 | } 76 | }, 77 | "multiplex": { 78 | "enabled": true, 79 | "protocol": "smux", 80 | "max_connections": 5, 81 | "min_streams": 4, 82 | "max_streams": 0 83 | }, 84 | "transport": { 85 | "type": "grpc" 86 | }, 87 | "connect_timeout": "5s" 88 | }, 89 | { 90 | "type": "direct", 91 | "tag": "direct" 92 | }, { 93 | "type": "block", 94 | "tag": "block" 95 | }, 96 | { 97 | "type": "dns", 98 | "tag": "dns-out" 99 | } 100 | ], 101 | "route": { 102 | "geoip": { 103 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 104 | "download_detour": "direct" 105 | }, 106 | "geosite": { 107 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 108 | "download_detour": "direct" 109 | }, 110 | "rules": [{ 111 | "protocol": "dns", 112 | "outbound": "dns-out" 113 | }, 114 | { 115 | "geoip": "private", 116 | "outbound": "direct" 117 | }, 118 | { 119 | "geosite": "category-ads-all", 120 | "outbound": "block" 121 | }, 122 | { 123 | "domain_keyword": [ 124 | "yektanet", 125 | "adengine.telewebion.com" 126 | ], 127 | "outbound": "block" 128 | }, 129 | { 130 | "domain_suffix": [ 131 | ".ir", 132 | "aparat.com", 133 | "digikala.com", 134 | "telewebion.com", 135 | "varzesh3.com" 136 | ], 137 | "outbound": "direct" 138 | }, 139 | { 140 | "port": [ 141 | 22, 142 | 3389 143 | ], 144 | "outbound": "direct" 145 | } 146 | ], 147 | "final": "vmess-tls-grpc-out", 148 | "auto_detect_interface": true 149 | } 150 | } -------------------------------------------------------------------------------- /vmess-tls-ws/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "vmess", 56 | "tag": "vmess-tls-ws-out", 57 | "server": "SERVER-IP-ADDRESS", 58 | "server_port": 443, 59 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 60 | "security": "auto", 61 | "alter_id": 0, 62 | "global_padding": false, 63 | "authenticated_length": true, 64 | "tls": { 65 | "enabled": true, 66 | "disable_sni": false, 67 | "server_name": "subdomain.example.com", 68 | "insecure": false, 69 | "alpn": [ 70 | "http/1.1" 71 | ] 72 | }, 73 | "multiplex": { 74 | "enabled": true, 75 | "protocol": "smux", 76 | "max_connections": 5, 77 | "min_streams": 4, 78 | "max_streams": 0 79 | }, 80 | "transport": { 81 | "type": "ws", 82 | "path": "/stream", 83 | "max_early_data": 0, 84 | "early_data_header_name": "Sec-WebSocket-Protocol" 85 | }, 86 | "connect_timeout": "5s" 87 | }, 88 | { 89 | "type": "direct", 90 | "tag": "direct" 91 | }, { 92 | "type": "block", 93 | "tag": "block" 94 | }, 95 | { 96 | "type": "dns", 97 | "tag": "dns-out" 98 | } 99 | ], 100 | "route": { 101 | "geoip": { 102 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 103 | "download_detour": "direct" 104 | }, 105 | "geosite": { 106 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 107 | "download_detour": "direct" 108 | }, 109 | "rules": [{ 110 | "protocol": "dns", 111 | "outbound": "dns-out" 112 | }, 113 | { 114 | "geoip": "private", 115 | "outbound": "direct" 116 | }, 117 | { 118 | "geosite": "category-ads-all", 119 | "outbound": "block" 120 | }, 121 | { 122 | "domain_keyword": [ 123 | "yektanet", 124 | "adengine.telewebion.com" 125 | ], 126 | "outbound": "block" 127 | }, 128 | { 129 | "domain_suffix": [ 130 | ".ir", 131 | "aparat.com", 132 | "digikala.com", 133 | "telewebion.com", 134 | "varzesh3.com" 135 | ], 136 | "outbound": "direct" 137 | }, 138 | { 139 | "port": [ 140 | 22, 141 | 3389 142 | ], 143 | "outbound": "direct" 144 | } 145 | ], 146 | "final": "vmess-tls-ws-out", 147 | "auto_detect_interface": true 148 | } 149 | } -------------------------------------------------------------------------------- /nginx-cdn/server/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "inbounds": [{ 6 | "type": "trojan", 7 | "tag": "trojan-tls-in", 8 | "listen": "127.0.0.1", 9 | "listen_port": 52000, 10 | "tcp_fast_open": true, 11 | "udp_fragment": true, 12 | "udp_timeout": 300, 13 | "proxy_protocol": true, 14 | "proxy_protocol_accept_no_header": false, 15 | "users": [{ 16 | "name": "bitcoinvps.cloud", 17 | "password": "Xa79c9adrudlqoq10afr" 18 | }], 19 | "tls": { 20 | "enabled": true, 21 | "server_name": "trojan.example.com", 22 | "alpn": [ 23 | "http/1.1" 24 | ], 25 | "min_version": "1.2", 26 | "max_version": "1.3", 27 | "acme": { 28 | "domain": [ 29 | "trojan.example.com" 30 | ], 31 | "data_directory": "/etc/sing-box", 32 | "default_server_name": "", 33 | "email": "singbox@example.com", 34 | "provider": "letsencrypt" 35 | } 36 | } 37 | }, { 38 | "type": "trojan", 39 | "tag": "trojan-ws-in", 40 | "listen": "127.0.0.1", 41 | "listen_port": 52001, 42 | "tcp_fast_open": true, 43 | "udp_fragment": true, 44 | "udp_timeout": 300, 45 | "proxy_protocol": true, 46 | "proxy_protocol_accept_no_header": false, 47 | "users": [{ 48 | "name": "bitcoinvps.cloud", 49 | "password": "yemufratad9YlYuwaBrA" 50 | }], 51 | "tls": { 52 | "enabled": true, 53 | "server_name": "trojan-ws.example.com", 54 | "alpn": [ 55 | "http/1.1" 56 | ], 57 | "min_version": "1.2", 58 | "max_version": "1.3", 59 | "acme": { 60 | "domain": [ 61 | "trojan-ws.example.com" 62 | ], 63 | "data_directory": "/etc/sing-box", 64 | "default_server_name": "", 65 | "email": "singbox@example.com", 66 | "provider": "letsencrypt" 67 | } 68 | }, 69 | "transport": { 70 | "type": "ws", 71 | "path": "/tv", 72 | "max_early_data": 0, 73 | "early_data_header_name": "Sec-WebSocket-Protocol" 74 | } 75 | }, { 76 | "type": "trojan", 77 | "tag": "trojan-ws-6-in", 78 | "listen": "127.0.0.1", 79 | "listen_port": 52002, 80 | "tcp_fast_open": true, 81 | "udp_fragment": true, 82 | "udp_timeout": 300, 83 | "proxy_protocol": true, 84 | "proxy_protocol_accept_no_header": false, 85 | "users": [{ 86 | "name": "bitcoinvps.cloud", 87 | "password": "yemufratad9YlYuwaBrA" 88 | }], 89 | "tls": { 90 | "enabled": true, 91 | "server_name": "trojan-ws-6.example.com", 92 | "alpn": [ 93 | "http/1.1" 94 | ], 95 | "min_version": "1.2", 96 | "max_version": "1.3", 97 | "acme": { 98 | "domain": [ 99 | "trojan-ws-6.example.com" 100 | ], 101 | "data_directory": "/etc/sing-box", 102 | "default_server_name": "", 103 | "email": "singbox@example.com", 104 | "provider": "letsencrypt" 105 | } 106 | }, 107 | "transport": { 108 | "type": "ws", 109 | "path": "/tv", 110 | "max_early_data": 0, 111 | "early_data_header_name": "Sec-WebSocket-Protocol" 112 | } 113 | }, { 114 | "type": "vmess", 115 | "tag": "vmess-tls-in", 116 | "listen": "127.0.0.1", 117 | "listen_port": 52003, 118 | "tcp_fast_open": true, 119 | "udp_fragment": true, 120 | "proxy_protocol": true, 121 | "proxy_protocol_accept_no_header": false, 122 | "users": [{ 123 | "name": "bitcoinvps.cloud", 124 | "uuid": "18543660-1aa6-49bc-8be6-f6dfc7e87de0", 125 | "alterId": 0 126 | }], 127 | "tls": { 128 | "enabled": true, 129 | "server_name": "vmess.example.com", 130 | "alpn": [ 131 | "http/1.1" 132 | ], 133 | "min_version": "1.2", 134 | "max_version": "1.3", 135 | "acme": { 136 | "domain": [ 137 | "vmess.example.com" 138 | ], 139 | "data_directory": "/etc/sing-box", 140 | "default_server_name": "", 141 | "email": "singbox@example.com", 142 | "provider": "letsencrypt" 143 | } 144 | } 145 | }, { 146 | "type": "vmess", 147 | "tag": "vmess-ws-in", 148 | "listen": "127.0.0.1", 149 | "listen_port": 52004, 150 | "tcp_fast_open": true, 151 | "udp_fragment": true, 152 | "proxy_protocol": true, 153 | "proxy_protocol_accept_no_header": false, 154 | "users": [{ 155 | "name": "bitcoinvps.cloud", 156 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 157 | "alterId": 0 158 | }], 159 | "tls": { 160 | "enabled": true, 161 | "server_name": "vmess-ws.example.com", 162 | "alpn": [ 163 | "http/1.1" 164 | ], 165 | "min_version": "1.2", 166 | "max_version": "1.3", 167 | "acme": { 168 | "domain": ["vmess-ws.example.com"], 169 | "data_directory": "/etc/sing-box", 170 | "default_server_name": "", 171 | "email": "singbox@example.com", 172 | "provider": "letsencrypt" 173 | } 174 | }, 175 | "transport": { 176 | "type": "ws", 177 | "path": "/stream", 178 | "max_early_data": 0, 179 | "early_data_header_name": "Sec-WebSocket-Protocol" 180 | } 181 | }, { 182 | "type": "vmess", 183 | "tag": "vmess-ws-6-in", 184 | "listen": "127.0.0.1", 185 | "listen_port": 52005, 186 | "tcp_fast_open": true, 187 | "udp_fragment": true, 188 | "proxy_protocol": true, 189 | "proxy_protocol_accept_no_header": false, 190 | "users": [{ 191 | "name": "bitcoinvps.cloud", 192 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 193 | "alterId": 0 194 | }], 195 | "tls": { 196 | "enabled": true, 197 | "server_name": "vmess-ws-6.example.com", 198 | "alpn": [ 199 | "http/1.1" 200 | ], 201 | "min_version": "1.2", 202 | "max_version": "1.3", 203 | "acme": { 204 | "domain": ["vmess-ws-6.example.com"], 205 | "data_directory": "/etc/sing-box", 206 | "default_server_name": "", 207 | "email": "singbox@example.com", 208 | "provider": "letsencrypt" 209 | } 210 | }, 211 | "transport": { 212 | "type": "ws", 213 | "path": "/stream", 214 | "max_early_data": 0, 215 | "early_data_header_name": "Sec-WebSocket-Protocol" 216 | } 217 | }], 218 | "outbounds": [{ 219 | "type": "direct", 220 | "tag": "direct" 221 | }] 222 | } -------------------------------------------------------------------------------- /nginx-cdn/client/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "level": "trace" 4 | }, 5 | "dns": { 6 | "servers": [{ 7 | "tag": "local", 8 | "address": "217.218.127.127", 9 | "detour": "direct" 10 | }, 11 | { 12 | "tag": "google", 13 | "address": "udp://8.8.8.8" 14 | }, { 15 | "tag": "block", 16 | "address": "rcode://success" 17 | } 18 | ], 19 | "rules": [{ 20 | "geosite": "category-ads-all", 21 | "server": "block" 22 | }, { 23 | "domain_suffix": ".ir", 24 | "server": "local" 25 | }], 26 | "final": "google", 27 | "strategy": "prefer_ipv4", 28 | "disable_cache": false, 29 | "disable_expire": false 30 | }, 31 | "inbounds": [{ 32 | "type": "mixed", 33 | "tag": "mixed-in", 34 | "listen": "127.0.0.1", 35 | "listen_port": 1080, 36 | "tcp_fast_open": true, 37 | "sniff": true, 38 | "sniff_override_destination": true, 39 | "set_system_proxy": false 40 | }, { 41 | "type": "tun", 42 | "tag": "tun-in", 43 | "interface_name": "tun0", 44 | "inet4_address": "172.19.0.1/30", 45 | "inet6_address": "fdfe:dcba:9876::1/128", 46 | "stack": "gvisor", 47 | "mtu": 9000, 48 | "auto_route": true, 49 | "strict_route": false, 50 | "endpoint_independent_nat": false, 51 | "sniff": true, 52 | "sniff_override_destination": true 53 | }], 54 | "outbounds": [{ 55 | "type": "urltest", 56 | "tag": "sing-router", 57 | "outbounds": [ 58 | "trojan-tls-out", 59 | "trojan-ws-out", 60 | "trojan-ws-6-out", 61 | "vmess-tls-out", 62 | "vmess-tls-ws-out", 63 | "vmess-ws-6-out" 64 | ], 65 | "url": "http://www.gstatic.com/generate_204", 66 | "interval": "5m", 67 | "tolerance": 0 68 | }, 69 | { 70 | "type": "trojan", 71 | "tag": "trojan-tls-out", 72 | "server": "SERVER-IP-ADDRESS", 73 | "server_port": 443, 74 | "password": "Xa79c9adrudlqoq10afr", 75 | "tls": { 76 | "enabled": true, 77 | "disable_sni": false, 78 | "server_name": "trojan.example.com", 79 | "insecure": false, 80 | "alpn": [ 81 | "http/1.1" 82 | ], 83 | "utls": { 84 | "enabled": true, 85 | "fingerprint": "random" 86 | } 87 | }, 88 | "multiplex": { 89 | "enabled": true, 90 | "protocol": "smux", 91 | "max_connections": 4, 92 | "min_streams": 4, 93 | "max_streams": 0 94 | }, 95 | "connect_timeout": "5s", 96 | "tcp_fast_open": true, 97 | "udp_fragment": true 98 | }, { 99 | "type": "trojan", 100 | "tag": "trojan-ws-out", 101 | "server": "SERVER-IP-ADDRESS", 102 | "server_port": 443, 103 | "password": "yemufratad9YlYuwaBrA", 104 | "tls": { 105 | "enabled": true, 106 | "disable_sni": false, 107 | "server_name": "trojan-ws.example.com", 108 | "insecure": false, 109 | "alpn": [ 110 | "http/1.1" 111 | ], 112 | "utls": { 113 | "enabled": true, 114 | "fingerprint": "random" 115 | } 116 | }, 117 | "multiplex": { 118 | "enabled": true, 119 | "protocol": "smux", 120 | "max_connections": 5, 121 | "min_streams": 4, 122 | "max_streams": 0 123 | }, 124 | "transport": { 125 | "type": "ws", 126 | "path": "/tv", 127 | "max_early_data": 0, 128 | "early_data_header_name": "Sec-WebSocket-Protocol" 129 | }, 130 | "connect_timeout": "5s", 131 | "tcp_fast_open": true, 132 | "udp_fragment": true 133 | }, { 134 | "type": "trojan", 135 | "tag": "trojan-ws-6-out", 136 | "server": "SERVER-IP-V6", 137 | "server_port": 443, 138 | "password": "yemufratad9YlYuwaBrA", 139 | "tls": { 140 | "enabled": true, 141 | "disable_sni": false, 142 | "server_name": "trojan-ws-6.example.com", 143 | "insecure": false, 144 | "alpn": [ 145 | "http/1.1" 146 | ], 147 | "utls": { 148 | "enabled": true, 149 | "fingerprint": "random" 150 | } 151 | }, 152 | "multiplex": { 153 | "enabled": true, 154 | "protocol": "smux", 155 | "max_connections": 5, 156 | "min_streams": 4, 157 | "max_streams": 0 158 | }, 159 | "transport": { 160 | "type": "ws", 161 | "path": "/tv", 162 | "max_early_data": 0, 163 | "early_data_header_name": "Sec-WebSocket-Protocol" 164 | }, 165 | "connect_timeout": "5s", 166 | "tcp_fast_open": true, 167 | "udp_fragment": true 168 | }, { 169 | "type": "vmess", 170 | "tag": "vmess-tls-out", 171 | "server": "SERVER-IP-ADDRESS", 172 | "server_port": 443, 173 | "uuid": "18543660-1aa6-49bc-8be6-f6dfc7e87de0", 174 | "security": "auto", 175 | "alter_id": 0, 176 | "global_padding": false, 177 | "authenticated_length": true, 178 | "tls": { 179 | "enabled": true, 180 | "disable_sni": false, 181 | "server_name": "vmess.example.com", 182 | "insecure": false, 183 | "alpn": [ 184 | "http/1.1" 185 | ], 186 | "utls": { 187 | "enabled": true, 188 | "fingerprint": "random" 189 | } 190 | }, 191 | "multiplex": { 192 | "enabled": true, 193 | "protocol": "smux", 194 | "max_connections": 5, 195 | "min_streams": 4, 196 | "max_streams": 0 197 | }, 198 | "connect_timeout": "5s", 199 | "tcp_fast_open": true, 200 | "udp_fragment": true 201 | }, { 202 | "type": "vmess", 203 | "tag": "vmess-tls-ws-out", 204 | "server": "SERVER-IP-ADDRESS", 205 | "server_port": 443, 206 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 207 | "security": "auto", 208 | "alter_id": 0, 209 | "global_padding": false, 210 | "authenticated_length": true, 211 | "tls": { 212 | "enabled": true, 213 | "disable_sni": false, 214 | "server_name": "vmess-ws.example.com", 215 | "insecure": false, 216 | "alpn": [ 217 | "http/1.1" 218 | ], 219 | "utls": { 220 | "enabled": true, 221 | "fingerprint": "random" 222 | } 223 | }, 224 | "multiplex": { 225 | "enabled": true, 226 | "protocol": "smux", 227 | "max_connections": 5, 228 | "min_streams": 4, 229 | "max_streams": 0 230 | }, 231 | "transport": { 232 | "type": "ws", 233 | "path": "/stream", 234 | "max_early_data": 0, 235 | "early_data_header_name": "Sec-WebSocket-Protocol" 236 | }, 237 | "connect_timeout": "5s", 238 | "tcp_fast_open": true, 239 | "udp_fragment": true 240 | }, { 241 | "type": "vmess", 242 | "tag": "vmess-ws-6-out", 243 | "server": "SERVER-IP-V6", 244 | "server_port": 443, 245 | "uuid": "3c1890e2-c768-4247-8a3b-032f6ed13a64", 246 | "security": "auto", 247 | "alter_id": 0, 248 | "global_padding": false, 249 | "authenticated_length": true, 250 | "tls": { 251 | "enabled": true, 252 | "disable_sni": false, 253 | "server_name": "vmess-ws-6.example.com", 254 | "insecure": false, 255 | "alpn": [ 256 | "http/1.1" 257 | ], 258 | "utls": { 259 | "enabled": true, 260 | "fingerprint": "random" 261 | } 262 | }, 263 | "multiplex": { 264 | "enabled": true, 265 | "protocol": "smux", 266 | "max_connections": 5, 267 | "min_streams": 4, 268 | "max_streams": 0 269 | }, 270 | "transport": { 271 | "type": "ws", 272 | "path": "/stream", 273 | "max_early_data": 0, 274 | "early_data_header_name": "Sec-WebSocket-Protocol" 275 | }, 276 | "connect_timeout": "5s", 277 | "tcp_fast_open": true, 278 | "udp_fragment": true 279 | }, 280 | { 281 | "type": "direct", 282 | "tag": "direct" 283 | }, { 284 | "type": "block", 285 | "tag": "block" 286 | }, 287 | { 288 | "type": "dns", 289 | "tag": "dns-out" 290 | } 291 | ], 292 | "route": { 293 | "geoip": { 294 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", 295 | "download_detour": "direct" 296 | }, 297 | "geosite": { 298 | "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", 299 | "download_detour": "direct" 300 | }, 301 | "rules": [{ 302 | "protocol": "dns", 303 | "outbound": "dns-out" 304 | }, 305 | { 306 | "geoip": "private", 307 | "outbound": "direct" 308 | }, 309 | { 310 | "geosite": "category-ads-all", 311 | "outbound": "block" 312 | }, 313 | { 314 | "domain_keyword": [ 315 | "yektanet", 316 | "adengine.telewebion.com" 317 | ], 318 | "outbound": "block" 319 | }, 320 | { 321 | "domain_suffix": [ 322 | ".ir", 323 | "aparat.com", 324 | "digikala.com", 325 | "telewebion.com", 326 | "varzesh3.com" 327 | ], 328 | "outbound": "direct" 329 | }, 330 | { 331 | "port": [ 332 | 22, 333 | 3389 334 | ], 335 | "outbound": "direct" 336 | } 337 | ], 338 | "final": "urltest", 339 | "auto_detect_interface": true 340 | } 341 | } --------------------------------------------------------------------------------