wangyu- / udp2raw

A Tunnel which Turns UDP Traffic into Encrypted UDP/FakeTCP/ICMP Traffic by using Raw Socket,helps you Bypass UDP FireWalls(or Unstable UDP Environment)
MIT License
7.3k stars 1.17k forks source link

What may be the reason for being able to access Google but not GitHub #514

Open chainofhonor opened 7 months ago

chainofhonor commented 7 months ago

I am using Wireguard and everything is working fine on OpenWrt on X86 I want to move this setting to the router, so I set it up with the router Identical configuration,Configure using udp2raw If you use a router, you can access Google, YouTube, and so on, but GitHub cannot access them. What might be the problem

我用的wireguard,在X86的openwrt上一切正常 我想把这个设置搬到路由器上,就用路由器设置了一下 一模一样的配置,用udp2raw配置 结果用路由器的话就是能访问谷歌,youtube,等等都正常,唯独github不能访问,这可能是什么问题

chainofhonor commented 7 months ago

Has anyone encountered the same problem as me Very strange question Google can access it, but GitHub can't Even in global mode, it doesn't work

有人遇到和我相同的问题了吗
很奇怪的问题 谷歌都能访问,就是github不行 哪怕是全局模式也不行

mxmkeep commented 7 months ago

只是用wireguard+udp2raw?有用nginx做应用层代理么?画下架构,可能是http2.0引起的,GitHub域名多解析又不同

chainofhonor commented 7 months ago

只是用wireguard+udp2raw?有用nginx做应用层代理么?画下架构,可能是http2.0引起的,GitHub域名多解析又不同

只有wireguard+udp2raw 路由器刷了openwrt最新的系统

wg设置了MTU=1280

udp2raw 命令如下: 服务端 /root/udp2tcp/udp2raw_amd64 -s -l 1.2.3.4:4501 -r 127.0.0.1:4501 -k "passwd123" --raw-mode faketcp --cipher-mode xor --auth-mode simple &

客户端 /root/udp2tcp/udp2raw_mips24kc_le -c -l 127.0.0.1:4501 -r 1.2.3.4:4501 -k "passwd123" --raw-mode faketcp --cipher-mode xor --auth-mode simple &

dns用的dnsmasq 域名解析分流已经弄了 谷歌 github等都是用8.8.8.8解析的

然后效果就是上面说的 谷歌等各种国外网站都能访问 唯独github不行

另外我还发现,udp2raw长期占用50% 路由器的CPU是MT7621 双核的

mxmkeep commented 7 months ago

看起来确实有些奇怪,你试试在server端,抓发给GitHub的包,看能不能看出什么了