Dwight 大佬有话说 :
求教V2ray配置
:'( VPS本地有一个Socks5服务端端口1081
想要在手机V2让访问的数据都是首先经过1081得到的 也就是落地
但是因为Socks5没得办法转发DNS
就想通过 " 任意门 " 然后再再路由里拦截53端口流量发送到freedom
V2ray配置鼓捣了两三个晚上也没弄好
不知道哪里写的不对
MJJ们救命这感觉太难受了
{
"inbounds": [
{
"tag":"transparent",
"port": 52888,
"protocol": "dokodemo-door",
"settings": {
"network": "tcp,udp",
"followRedirect": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"streamSettings": {
"sockopt": {
"tproxy": "tproxy" // 透明代理使用 TPROXY 方式
}
}
},
{
"port": 52666, // 服务器监听端口,必须和上面的一样
"protocol": "vmess",
"settings": {
"clients": [{ "id": "c61f0b55-1d44-bd65-2568-dc4208d05466" }]
}
}
],
"outbounds": [{
"tag": "proxy",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "0.0.0.0",
"port": 1081,
"users": [
]
}
]
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
},
"streamSettings": {
"sockopt": {
"mark": 255
}
}
}
]
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{ // 劫持 53 端口 UDP 流量转发到直连
"type": "field",
"inboundTag": [
"transparent"
],
"port": 53,
"network": "udp",
"outboundTag": "direct"
}
]
}
}
如果有其它更简单的方法也愿闻其详