Replies: 3 comments 2 replies
-
|
您写了这么多配置 h3屏蔽/代理了吗 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
师兄 您这个 半黑名单 半白名单 设定 不是一个好方法 有一些v2ray比较旧的网页, 还可用作参考 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
各位师兄,其实目前我关注的问题主要只有一个,就是: 我通过我自己的 Xray 访问某个服务,例如: 注册 ChatGPT 或 id.me 的时候,被禁止注册。 我怀疑是我的配置有某一处不合理,让对方看到我的本地 IP 是来自于中国大陆的 IP. 我需要某种方式隐藏我的 IP, 或者将 VPS(例如:azure) 的 IP 作为我的 IP,请指教是不是配置那里需要修改一下? 谢谢。 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
很奇怪的是,我现在已经设定为全局翻墙,仍然无法登录,但是手机上通过 xray 客户端却可以注册以及登录。
我觉得可能是我的配置问题。(例如,少设定了某一个设置?),让 chatgpt 看到的我的 IP 总是中国的 IP? 请教如何解决。
附上我的客户端设置。(如需服务端,稍后贴上)
{ "log": { "loglevel": "warning" }, "dns": { "hosts": { "geosite:category-ads-all": "127.0.0.1" }, "servers": [ "8.8.4.4", "1.1.1.1", { "address": "8.8.4.4", "port": 53, "domains": [ "services.googleapis.cn", "googleapis.com", "gstatic.com", "xn--ngstr-lra8j.com", "googleusercontent.com", "raw.githubusercontent.com", "github.githubassets.com", "googlevideo.com", "ytimg.com", "techcrunch.com", "openai.com", "chatgpt.com" ] }, { // fakeDNS 必须,否则会被解析为 fake IP. // 注意,某些视频网站视频无法播放,貌似就是因为访问网站时, // 解析到错误的 IP 地址。 "address": "180.76.76.76", "port": 53, "domains": [ "router.asus.com", "arch.pool.ntp.org", "dl.google.com", "sourceforge.net", "380tv.com", "vidhub.tv", "staticfile.org", "www.naifei.im", "crystal-lang.org", "yzzy-online.com", "cjkypo.com", "gitlab.com", "archlinux.org", "woaimoon.net", "bing.com", "cloudflare.com", "ruby-china.org", "crystal-china.org", "hk.centanet.com" ] } ], // 默认为 false, 开启后,如果通过默认的 DNS 访问返回结果不匹配 cn site/ip, // 将使用 servers 里面的第一个,8.8.4.4 访问。 "disableFallback": true }, "routing": { "rules": [ { // tproxy 透明代理必需。 "type": "field", "inboundTag": ["transparent"], "port": 53, "network": "udp", "outboundTag": "dns-outbound" }, { "type": "field", "domain": [ // 这里添加域名白名单. "geosite:geolocation-cn", "router.asus.com", "arch.pool.ntp.org", "dl.google.com", "sourceforge.net", "380tv.com", "vidhub.tv", "staticfile.org", "www.naifei.im", "crystal-lang.org", "yzzy-online.com", "cjkypo.com", "gitlab.com", "archlinux.org", "woaimoon.net", "bing.com", "ruby-china.org", "crystal-china.org", "cloudflare.com", "hk.centanet.com" ], "outboundTag": "direct" }, { "type": "field", "ip": [ "ext:geoip-only-cn-private.dat:cn", "ext:geoip-only-cn-private.dat:private" ], "outboundTag": "direct" }, { "type": "field", "inboundTag": ["transparent"], "port": "123,323", "network": "udp", "outboundTag": "direct" }, { // BT 流量直连 "type": "field", "protocol":["bittorrent"], "outboundTag": "direct" }, { "type": "field", "ip": ["8.8.4.4","1.1.1.1"], "outboundTag": "proxy" }, { "type": "field", "domain": [ // 这里添加必须走 proxy 的域名例外. "services.googleapis.cn", "googleapis.com", "gstatic.com", "xn--ngstr-lra8j.com", "googleusercontent.com", "raw.githubusercontent.com", "github.githubassets.com", "googlevideo.com", "ytimg.com", "techcrunch.com", "openai.com", "chatgpt.com" ], "outboundTag": "proxy" }, { "type": "field", "domain": [ "geosite:category-ads-all" ], "outboundTag": "block" } ] }, "inbounds": [ { "tag": "transparent", "protocol": "dokodemo-door", "port": 1081, // 透明代理 1081 端口 "settings": { "network": "tcp,udp", // 当值为 true 时,dokodemo-door 会识别出由 iptables 转发而来的数据,并转发到相应的目标地址。详见 传输配置 中的 tproxy 设置。 "followRedirect": true }, "sniffing": { "enabled": true, "destOverride": ["http", "tls"] }, "streamSettings": { "sockopt": { // 当 Dokodemo-door 中指定了 followRedirect,且 sockopt.tproxy 为空时, // sockopt.tproxy 的值会被设为 "redirect",因此该设定 redirect 模式非必须的。 // 下面的选项会在 patch_router 的时候,自动选择 tproxy/redirect, 并被替换。 "tproxy": "tproxy", "mark": 255 } } }, { "protocol": "socks", // 入口协议为 SOCKS 5 "port": 1080, // 监听端口 "settings": { "auth": "noauth" //socks的认证设置,noauth 代表不认证,由于 socks 通常在客户端使用,所以这里不认证 }, "sniffing": { "enabled": true, "destOverride": ["http", "tls"] } }, { "protocol": "http", "port": 3128, "settings": { "timeout": 0 } } ], "outbounds": [ // 下面两个顺序不可以颠倒, 因为列表中的第一个元素作为主出站协议, 当路由匹配不存在或没有匹配成功时, // 流量由主出站协议发出, 我们要确保主出站协议必须是 proxy. { "tag": "proxy", "protocol": "vless", // 出口协议 "settings": { "vnext": [ { "address": "remote_ip", // 服务器地址,请修改为你自己的服务器 IP 或域名 "port": 12345, // 服务器端口 "users": [ { // 注意, vmess 加密默认开启, 也必须开启, 否则上不了网. // alterId 默认为 0, 表示开启 VMessAEAD. // vless 则默认关闭加密 none,但必须有这个设定 "encryption": "none", // Splice 模式的的使用限制: // Linux 环境 // 入站协议为 Dokodemo door、Socks、HTTP 等纯净的 TCP 连接, 或其它使用了 XTLS 的入站协议 // 出站协议为 VLESS + XTLS // 需要注意的是,使用 mKCP 协议时不会使用 Splice(是的,虽然没有报错,但实际上根本没用到 // 此外,使用 Splice 时网速显示会滞后,这是特性,不是 bug。 // 使用 Vision 模式 如果满足上述条件 会自动启用 Splice "flow": "xtls-rprx-vision", "id": "my_id" // 用户 ID,必须与服务器端配置相同 } ] } ] }, "streamSettings": { "network": "tcp", // reality 方式,用户无需拥有自己的域名,可以使用任何合法的网站,速度也更快。 "security": "reality", "realitySettings": { "fingerprint": "chrome", "serverName": "dl.google.com", "publicKey": "g_-asdfasfasf" }, "sockopt": { "tcpcongestion": "bbr", // 如果不设定,会自动使用系统设置 "tcpMptcp": true, "tcpNoDelay": true, "mark": 255 } } }, { "protocol": "shadowsocks", "settings": { "servers": [ { "address": "my_ip", // Shadowsocks 的服务器地址 "method": "2022-blake3-chacha20-poly1305", // Shadowsocks 的加密方式 "password": "password", // Shadowsocks 的密码 "port": 22335 } ] }, "streamSettings": { "sockopt": { "mark": 255 } } }, { // 识别这是一个 DNS 请求, 并发送到内部 DNS 进行查询. "tag": "dns-outbound", "protocol": "dns", "proxySettings": { "tag": "proxy" }, "streamSettings": { "sockopt": { "mark": 255 } } }, { "tag": "direct", "protocol": "freedom", "settings": { // 这里我选择加上试试, 搞不好我的方案, freedom 真的又去访问 dnsmasq // 的 53 端口, 又被转到 V2ray 的 DNS 呢. "domainStrategy": "UseIPv4" }, "streamSettings": { "sockopt": { "mark": 255 } } }, { "tag": "block", "protocol": "blackhole", "settings": { "response": { "type": "http" } } } ], "policy": { "levels": { "0": { "bufferSize": 4 } } } }多谢!
Beta Was this translation helpful? Give feedback.
All reactions