1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
| { "log": { "loglevel": "warning" }, "inbounds": [ { "tag":"transparent", "port": 12345, "protocol": "dokodemo-door", "settings": { "network": "tcp,udp", "followRedirect": true }, "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] }, "streamSettings": { "sockopt": { "tproxy": "tproxy", "mark":255 } } }, { "port": 1080, "protocol": "socks", "sniffing": { "enabled": true, "destOverride": ["http", "tls"] }, "settings": { "auth": "noauth" } } ], "outbounds": [ { "tag": "proxy", "protocol": "vmess", "settings": { "vnext": [ { "address": "xxxxx", # 服务端的IP,这里就是VPS的IP "port": 1088, # 服务端配置的端口号 "users": [ { "id": "xxxxx", # 这里的id和服务端配置文件中的必须相同 "alterId": 0, # 这个值不要修改 "security": "auto" } ] } ] }, "streamSettings": { "sockopt": { "mark": 255 } }, "mux": { "enabled": true } }, { "tag": "direct", "protocol": "freedom", "settings": { "domainStrategy": "UseIP" }, "streamSettings": { "sockopt": { "mark": 255 } } }, { "tag": "block", "protocol": "blackhole", "settings": { "response": { "type": "http" } } }, { "tag": "dns-out", "protocol": "dns", "streamSettings": { "sockopt": { "mark": 255 } } } ], "dns": { "hosts": { # 这里配置dns的本地解析,如果不需要,删除hosts块即可 "xxxx": "ip" }, "servers": [ { "address": "223.5.5.5", "port": 53, "domains": [ "geosite:cn", "ntp.org" ] }, { "address": "114.114.114.114", "port": 53, "domains": [ "geosite:cn", "ntp.org" ] }, { "address": "8.8.8.8", "port": 53, "domains": [ "geosite:geolocation-!cn" ] }, { "address": "1.1.1.1", "port": 53, "domains": [ "geosite:geolocation-!cn" ] } ] }, "routing": { "domainStrategy": "IPIfNonMatch", "domainMatcher": "mph", "rules": [ { "type": "field", "inboundTag": [ "transparent" ], "port": 53, "network": "udp", "outboundTag": "dns-out" }, { "type": "field", "inboundTag": [ "transparent" ], "port": 123, "network": "udp", "outboundTag": "direct" }, { "type": "field", "ip": [ # 这里添加不走代理的IP "223.5.5.5", "114.114.114.114", ], "outboundTag": "direct" }, { "type": "field", "ip": [ # 这里添加走代理的IP "8.8.8.8", "1.1.1.1" ], "outboundTag": "proxy" }, { "type": "field", "domain": [ # 这里用来过滤广告,如果不想内网打开某个网页,可以添加域名到这里 "geosite:category-ads-all" ], "outboundTag": "block" }, { "type": "field", "protocol":["bittorrent"], "outboundTag": "direct" }, { "type": "field", "outboundTag": "Proxy", "domain": [ # 这里添加走代理的域名 "full:www.icloud.com", "domain:icloud-content.com", "geosite:geolocation-!cn", "geosite:google" ] }, { "type": "field", "ip": [ # 这里添加不走代理的IP "geoip:private", "geoip:cn", "2.2.2.2" ], "outboundTag": "direct" }, { "type": "field", "domain": [ # 这里添加不走代理的域名 "geosite:cn", "geosite:private", "geosite:tld-cn", "geosite:icloud", "geosite:category-games@cn", "v2ray_server.com" ], "outboundTag": "direct" }, { "type": "field", "outboundTag": "proxy", "network": "tcp,udp" } ] } }
|