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.28k stars 1.17k forks source link

403 error on some Google services with WireGuard #451

Open poorp opened 1 year ago

poorp commented 1 year ago

Hi, I get error 403 on some Google services like earth engine code editor. I searched online and it apparently is due to MTU settings being too low. Since we can't go with high MTUs with udp2raw as noted in the docs, does any solution exist for this problem?

alou-S commented 1 year ago

It you are using wireguard try reducing your MTU size

poorp commented 1 year ago

I did and it didn't help. I went as low as 1150 but still couldn't open the service.

On Mon, Jan 23, 2023, 16:00 Albert Sebastian @.***> wrote:

It you are using wireguard try reducing your MTU size

wangyu- commented 1 year ago

Openvpn has an option called fragment (user space packet segmentation)which can solve this kind of issues I believe. you can consider use openvpn instead of wireguard, see: https://github.com/wangyu-/udp2raw/wiki/udp2raw-openvpn-config-guide

wireguard doesn't have such an option as far as I know. But there is a workaround: UDPspeeder has the ability to do user space packet segmentation as well. You can put a udpspeeder between wiregaurd and udp2raw (the default setting for UDPspeeder will work, no need to tune), then you can use a 1500 MTU for wireguard.

gonchik commented 1 year ago

I played wit MTU no luck