├── README.md └── config_client.json /README.md: -------------------------------------------------------------------------------- 1 | # How to Bypass on OpenWRT using Sing-box ( Hysteria2, vless, trojan,ss ) 2 | # How to Use It 3 | For more detailed usage instructions, please refer to the [Wiki](https://github.com/rezconf/Sing-box/wiki/How-to-Run). 4 | 5 | ![image](https://github.com/rezconf/Sing-box/assets/39160983/2472b127-ec6a-47df-9a4b-4863c1b48835) 6 | 7 | 8 | -------------------------------------------------------------------------------- /config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "disabled": false, 4 | "level": "warn", 5 | "output": "/tmp/sing-box.log", 6 | "timestamp": true 7 | }, 8 | "log": { 9 | "level": "info", 10 | "timestamp": true 11 | }, 12 | "dns": { 13 | "independent_cache": true, 14 | "rules": [ 15 | { 16 | "domain": [ 17 | "domain.com" 18 | ], 19 | "server": "dns-direct" 20 | }, 21 | { 22 | "outbound": "direct", 23 | "server": "dns-direct" 24 | } 25 | ], 26 | "servers": [ 27 | { 28 | "address": "tcp://1.1.1.2", 29 | "strategy": "ipv4_only", 30 | "tag": "dns-remote" 31 | }, 32 | { 33 | "address": "tcp://8.8.8.8", 34 | "detour": "direct", 35 | "strategy": "ipv4_only", 36 | "tag": "dns-direct" 37 | } 38 | ] 39 | }, 40 | "inbounds": [ 41 | { 42 | "auto_route": true, 43 | "strict_route": true, 44 | "domain_strategy": "", 45 | "endpoint_independent_nat": false, 46 | "inet4_address": "172.19.0.1/28", 47 | "interface_name": "nekoray-tun", 48 | "mtu": 1500, 49 | "sniff": true, 50 | "sniff_override_destination": false, 51 | "stack": "system", 52 | "tag": "tun-in", 53 | "type": "tun" 54 | } 55 | ], 56 | "log": { 57 | "level": "error" 58 | }, 59 | "outbounds": [ 60 | { 61 | "type": "vless", 62 | "tag": "vless-out", 63 | "server": "::1", 64 | "server_port": 9930, 65 | "detour": "hy2-out", 66 | "uuid": "5b6299db-5406-4826-9aa7-ae619cf43962d", 67 | "transport": { 68 | "service_name": "service-name", 69 | "type": "grpc", 70 | "idle_timeout": "5s", 71 | "ping_timeout": "3s" 72 | } 73 | }, 74 | { 75 | "server": "domain.com", 76 | "server_port": 8443, 77 | "obfs": { 78 | "type": "salamander", 79 | "password": "Fukkkkkkk" 80 | }, 81 | "password": "your-password", 82 | "tls": { 83 | "enabled": true, 84 | "server_name": "www.apple.com", //Handshake server address 85 | "alpn": [ 86 | "h3" 87 | ], 88 | "insecure": true 89 | }, 90 | "type": "hysteria2", 91 | "tag": "hy2-out" 92 | }, 93 | { 94 | "tag": "direct", 95 | "type": "direct" 96 | }, 97 | { 98 | "tag": "bypass", 99 | "type": "direct" 100 | }, 101 | { 102 | "tag": "block", 103 | "type": "block" 104 | }, 105 | { 106 | "tag": "dns-out", 107 | "type": "dns" 108 | } 109 | ], 110 | "route": { 111 | "auto_detect_interface": true, 112 | "geoip": { 113 | "download_detour": "direct", 114 | "download_url": "https://github.com/SagerNet/sing-geoip/releases/geoip.db" 115 | }, 116 | "rules": [ 117 | { 118 | "outbound": "dns-out", 119 | "protocol": "dns" 120 | }, 121 | { 122 | "geoip": [ 123 | "ir", 124 | "private" 125 | ], 126 | "domain_suffix": [ 127 | "google.com" 128 | ], 129 | "outbound": "bypass" 130 | }, 131 | { 132 | "ip_cidr": [ 133 | "224.0.0.0/3", 134 | "ff00::/8" 135 | ], 136 | "outbound": "block", 137 | "source_ip_cidr": [ 138 | "224.0.0.0/3", 139 | "ff00::/8" 140 | ] 141 | } 142 | ] 143 | } 144 | } 145 | --------------------------------------------------------------------------------