利用加速器技术加速国服或外服的访问
以下为配置示例:
全IP转发,纯粹的游戏加速器。
搭配的软件为:https://github.com/NetchX/Netch/releases
实际做出口访问的服务器配置文件:
{ "inbounds": [ { "port": 12345, // 这里的端口号可以根据实际情况来设置 "protocol": "vmess", "settings": { "clients": [ { "id": "你的UUID", // 与中继服务器配置相同的UUID "alterId": 64 } ] }, "streamSettings": { "network": "ws", // 这里保持和中继服务器相同的协议设置 "wsSettings": { "path": "/chensanpao" // WebSocket的路径,保持一致 } } } ], "outbounds": [ { "protocol": "freedom", "settings": {} } ] }
中继服务器配置文件:
"outbounds": [ { "protocol": "vmess", "settings": { "vnext": [ { "address": "出口访问服务器的IP地址", "port": 12345, // 国内服务器监听的端口号 "users": [ { "id": "78cd7bxxxxxxxxxx", // UUID需要和出口访问服务器配置相同 "alterId": 64 } ] } ] }, "streamSettings": { "network": "ws", // 保持和出口访问服务器相同的协议设置 "wsSettings": { "path": "/chensanpao" // WebSocket的路径,保持一致 } } }, { "protocol": "freedom", "settings": {} } ]
如果你需要过滤特定的IP,也就是并非全IP代理的,例如你只需要访问这几个地址段才需要转发给下一个服务器
180.188.0.0/16
110.42.0.0/16
183.131.0.0/16
{ "inbounds": [ { "port": 8866, "listen": "127.0.0.1", "protocol": "vmess", "settings": { "clients": [ { "id": "78cd7bb8-1bxxxxxx", "alterId": 64 } ] }, "streamSettings": { "network": "ws", "wsSettings": { "path": "/chensanpao" } } } ], "outbounds": [ { "tag": "proxy", "protocol": "vmess", "settings": { "vnext": [ { "address": "110.42.98.0", //出口访问服务器的IP地址 "port": 12345, "users": [ { "id": "c9c9aa4e-7bxxxx", //与中继服务器配置相同的UUID "alterId": 64 } ] } ] }, "streamSettings": { "network": "ws", "wsSettings": { "path": "/chensanpao" // WebSocket的路径,保持一致 } } }, { "tag": "direct", "protocol": "freedom", "settings": {} } ], "routing": { "rules": [ { "type": "field", "ip": [ "180.188.0.0/16", //只有这些目标地址是需要加速的 "110.42.0.0/16", "183.131.0.0/16" ], "outboundTag": "proxy" }, { "type": "field", "outboundTag": "direct", "network": "tcp,udp" } ] } }
指向性
export https_proxy=http://127.0.0.1:20809 export http_proxy=http://127.0.0.1:20809 export all_proxy=socks5://127.0.0.1:20808 or export https_proxy=http://127.0.0.1:7890 export http_proxy=http://127.0.0.1:7890 export all_proxy=socks5://127.0.0.1:7891 or export https_proxy=http://127.0.0.1:10809 export http_proxy=http://127.0.0.1:10809 export all_proxy=socks5://127.0.0.1:10808 or unset https_proxy unset http_proxy unset all_proxy
发表评论