Replies: 2 comments 1 reply
-
{
"log": {
"loglevel": "warn",
"dnsLog": false
},
"dns": {
"tag": "xray",
"hosts": {},
"servers": [
{
"address": "路由器ip",
"queryStrategy": "UseIPv4"
}
]
},
"inbounds": [
{
"tag": "socks",
"port": "10808",
"listen": "0.0.0.0",
"protocol": "mixed",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"routeOnly": false
},
"settings": {
"auth": "noauth",
"udp": false,
"allowTransparent": false
}
}
],
"outbounds": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "AsIs",
"userLevel": 0
}
},
{
"tag": "cloudflare",
"protocol": "freedom",
"proxySettings": {
"tag": "direct"
}
},
{
"tag": "vless",
"protocol": "freedom",
"proxySettings": {
"tag": "proxy"
}
},
{
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
}
]
},
"streamSettings": {
"network": "xhttp",
"security": "reality",
"realitySettings": {
"serverName": "yahoo.com",
"fingerprint": "chrome",
"show": false,
"publicKey": "xxxxx",
"shortId": "xxxx",
"spiderX": "/"
},
"sockopt": {
"dialerProxy": "proxy3"
},
"xhttpSettings": {
"path": "/",
"mode": "stream-one"
}
},
"mux": {
"enabled": false,
"concurrency": 0
}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
},
{
"tag": "proxy3",
"protocol": "freedom",
"settings": {
"fragment": {
"packets": "tlshello",
"length": "100-200",
"interval": "10-20"
}
}
}
],
"routing": {
"domainStrategy": "IpIfNonMatch",
"domainMatcher": "hybrid",
"rules": [
{
"ruleTag": "block",
"type": "field",
"outboundTag": "block",
"domain": [
"geosite:category-ads",
"geosite:category-ads-all",
"domain:license.syntevo.com",
"domain:report.url.cn",
"domain:clients6.google.com",
"domain:play.google.com"
]
},
{
"ruleTag": "udf",
"type": "field",
"outboundTag": "proxy",
"domain": [
"domain:1lou.me",
"domain:docker.com",
"domain:go.dev",
"domain:greasyfork.org",
"domain:hysteria.network",
"domain:repo.maven.apache.org",
"domain:bulianglin.com",
"domain:www.namesilo.com",
"domain:colobu.com",
"domain:cloudflare.com",
"domain:cloudflare-cn.com",
"domain:grpc.io",
"domain:firefox.com"
]
},
{
"ruleTag": "geoip",
"type": "field",
"outboundTag": "direct",
"ip": [
"8.8.8.8",
"geoip:private",
"geoip:cn"
]
},
{
"ruleTag": "geosite",
"type": "field",
"outboundTag": "direct",
"domain": [
"geosite:private",
"geosite:apple-cn",
"geosite:google-cn",
"geosite:tld-cn",
"geosite:category-games@cn",
]
},
{
"ruleTag": "bittorrent",
"type": "field",
"outboundTag": "direct",
"protocol": [
"bittorrent"
]
},
{
"ruleTag": "proxy ip",
"type": "field",
"outboundTag": "proxy",
"ip": [
"1.1.1.1",
"1.0.0.1",
"1.1.1.2",
"1.0.0.2",
"1.1.1.3",
"1.0.0.3",
"94.140.14.14",
"94.140.15.15",
"94.140.14.15",
"94.140.15.16",
"94.140.14.140",
"94.140.14.141",
"208.67.222.222",
"208.67.220.220",
"208.67.222.123",
"208.67.220.123",
"9.9.9.9",
"149.112.112.112",
"9.9.9.11",
"149.112.112.11",
"9.9.9.10",
"149.112.112.10",
"77.88.8.8",
"77.88.8.1",
"77.88.8.88",
"77.88.8.2",
"77.88.8.7",
"77.88.8.3"
]
},
{
"ruleTag": "geoip",
"type": "field",
"outboundTag": "proxy",
"ip": [
"geoip:facebook",
"geoip:fastly",
"geoip:google",
"geoip:telegram",
"geoip:twitter"
]
},
{
"ruleTag": "gfw",
"type": "field",
"outboundTag": "proxy",
"domain": [
"geosite:gfw",
"geosite:greatfire"
]
},
{
"ruleTag": "direct cloudflare",
"type": "field",
"outboundTag": "cloudflare",
"domain": [
"geoip:cloudflare"
]
}
]
}
} 参考下,主要这段 {
"ruleTag": "geoip",
"type": "field",
"outboundTag": "proxy",
"ip": [
"geoip:facebook",
"geoip:fastly",
"geoip:google",
"geoip:telegram",
"geoip:twitter"
]
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
非常感谢!已设置成功了,另外又出现了个问题,还希望能指导下: 目前我的xray部署在路由器AC86U上,启用了透明代理dokodemo-door,根据以上配置优化后目前内网终端已可以完成各种上网动作。 不过我的路由器需要启用VPN IPSEC服务器,以便公网设备连接到局域网,目前的问题是,当我启用xray后,公网设备无法通过IPSEC成功连接,设备一直显示“正在连接”。当我关闭xray后,连接就能成功,这让我使用起来非常麻烦。我查阅了相关资料,也没有找到如何正确设置的方法。 同时,内网终端需要通过VPN链接到单位网络,同样的,启用xray后,内网终端便无法和单位网络链接。 最后我的问题是,是否透明代理后所有的其他出入站vpn都无法工作,那么我应该怎么配置xray的Inbounds来实现各种网络的正确链接 需要你的帮助,非常谢谢。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
配置如下,实在是检查不出来问题,感觉是upd方面没设置好,因为所有http类的应用都能正常使用,不胜感激!
另外感觉routing写的很菜,如果能一起指导下,我就非常爱你!
`{
"log": {
"access": "none",
"error": "/tmp/xray_error.log",
"loglevel": "warning"
},
"dns": {
"tag": "dnsQuery",
"servers": [
{
"address": "192.168.1.1",
"domains": [],
"expectIPs": []
}
],
"queryStrategy": "UseIPv4",
"disableCache": true,
"disableFallback": true,
"disableFallbackIfMatch": true
},
"inbounds": [
{
"protocol": "dokodemo-door",
"listen": "0.0.0.0",
"port": 6666,
"tag": "ibd-dokodemo-door",
"settings": {
"network": "tcp,udp",
"followRedirect": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"quic",
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "obd-freedom",
"settings": {
"domainStrategy": "UseIP"
}
},
{
"protocol": "vless",
"tag": "obd-vless",
"settings": {
"vnext": [
{
"address": "",
"port": 4,
"users": [
{
"id": "",
"email": "",
"encryption": "none",
"flow": "xtls-rprx-vision"
}
]
}
]
},
"streamSettings": {
"security": "reality",
"realitySettings": {
"show": false,
"serverName": "",
"fingerprint": "chrome",
"publicKey": "****************************************",
"shortId": "********"
},
"tcpSettings": {}
}
},
{
"protocol": "blackhole",
"tag": "obd-blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"idx": 0,
"domain": [
"geosite:private",
"geosite:apple-cn",
"geosite:google-cn",
"geosite:tld-cn",
"geosite:category-games@cn",
"geosite:cn"
],
"ip": [
"geoip:private",
"geoip:cn"
],
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "obd-freedom"
},
{
"idx": 1,
"domain": [
"geosite:geolocation-!cn"
],
"ip": [
"geoip:!cn"
],
"type": "field",
"protocol": [
"tls",
"http"
],
"outboundTag": "obd-vless"
}
],
"policies": []
}
}'
Beta Was this translation helpful? Give feedback.
All reactions