{
"inbounds":
[
{
"listen": "127.0.0.1",
"port": 1080,
"protocol": "socks",
"settings":
{
"udp": true
}
},
{
"listen": "127.0.0.1",
"port": 8080,
"protocol": "http"
},
{
"listen": "127.0.0.1",
"port": 2000,
"protocol": "dokodemo-door",
"settings":
{
"network": "tcp",
"address": "jandan.net",
"port": 80
}
}
],
"outbounds":
[
{
"protocol": "socks",
"settings":
{
"servers":
[
{
"address": "x.x.x.x",
"port": 6000
}
]
}
}
]
}
HTTP/Socks 代理功能正常。jandan.net 是一个支持 HTTP 访问的站点。如果只是这么配置,在 Chrome 浏览器中打开 http://127.0.0.1:2000 会返回 403 Forbidden 错误
如果编辑 hosts 把 jandan.net 地址设置成 127.0.0.1 ,访问就正常了