XProxy
XProxy copied to clipboard
ipv6总是直连, 不能根据自己的意愿实现被代理.
大神, 使用XProxy后, ipv4 是可以正常使用. 现在遇到一个问题是ipv6总是直连, 不能根据自己的意愿实现被代理.
环境设置和 这里 一样. 不使用XProxy的时候, 即,直接使用xray,也就是全局代理, ipv6是可以被代理的, 然后使用全局代理的client.json
:
{
"log": {
"error": "./error.log",
"access": "./access.log",
"loglevel": "info"
},
"inbounds": [
{
"tag": "socks",
"port": 10777,
"listen": "127.0.0.1",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": false
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
},
{
"tag": "http",
"port": 10666,
"listen": "192.168.0.66",
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": false
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "yourdomian",
"port": 443,
"users": [
{
"id": "yourid",
"alterId": 0,
"email": "[email protected]",
"security": "auto",
"encryption": "none",
"flow": "xtls-rprx-vision"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"serverName": "music.google.com",
"fingerprint": "chrome",
"show": false,
"publicKey": "yourpublicKey",
"shortId": "",
"spiderX": "/"
}
},
"mux": {
"enabled": false,
"concurrency": -1
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"dns": {
"servers": [
"1.1.1.1",
"8.8.8.8",
{
"address": "223.5.5.5",
"port": 53,
"domains": [
"geosite:cn"
]
}
]
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api"
},
{
"type": "field",
"domain": [
"geosite:cn"
],
"outboundTag": "direct"
},
{
"type": "field",
"port": "0-65535",
"outboundTag": "proxy"
},
{
"type": "field",
"ip": [
"223.5.5.5"
],
"outboundTag": "direct"
}
]
}
}
其他的server.json
配置和 这里 一样.
测试: https://test-ipv6.com/
在这个检测网站上显示的ipv6为代理的ipv6, 则说明设置成功. 但是非常不幸, 折腾了很久ipv6还是没有设置成功.
麻烦大神,有空帮忙看下了.