先上风控值
如何操作?
debian一键安装
bash <(curl -fsSL https://sing-box.app/deb-install.sh)
安装tor
sudo apt-get update
sudo apt-get install tor
编辑配置文件
sudo nano /etc/tor/torrc
# 仅作为客户端使用
ClientOnly 1
# Socks 代理端口
SocksPort 9052
# 控制端口
ControlPort 9051
# 通过哈希密码进行控制端口认证
HashedControlPassword 16:yourhashedpasswordhere
# 禁用 Cookie 认证(如果不需要)
CookieAuthentication 0
生成密码(可选)
tor --hash-password yourpassword
重启Tor
sudo systemctl restart tor
查看运行状态
sudo systemctl status tor
编辑sing-box配置文件
sudo nano /root/sing-box_config.json
写入配置
{
"dns": {
"servers": [
{
"address": "8.8.8.8"
}
]
},
"route": {
"rules": [
{
"rule_set": "geoip-cn",
"outbound": "block"
},
{
"ip_is_private": true,
"outbound": "direct"
},
{
"inbound": ["shadowsocks"],
"outbound": "tor-out"
}
],
"rule_set": [
{
"tag": "geoip-cn",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs"
}
]
},
"experimental": {
"cache_file": {
"enabled": true
}
},
"inbounds": [
{
//入站字段
}
}
],
"outbounds": [
{
"type": "socks",
"tag": "tor-out",
"server": "127.0.0.1",
"server_port": 9052,
"version": "5",
"username": "",
"password": "",
"network": "tcp",
"udp_over_tcp": true
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
}
]
}
重启sing-box
sudo systemctl restart sing-box
查看运行日志
sudo journalctl -u sing-box --output cat -f