Open bigboyq opened 2 years ago
More tests has been done
Hi.
I'm also using EdgeRouter X and faced a similar issue. From a client computer which connected to EdgeRouter's WireGuard server, I could browse web sites such as YouTube, but the video playback is very slow.
When I inspect the packet flow with Wireshark, it seems that YouTube first sends me the video data over UDP. But EdgeRouter dropped these UDP packets. After I waited a while it seemed to fall back to TCP and and I was able to play the video.
Note: the link above points to the hwnat issue. When I disabled my EdgeRouter's hwnat, the issue no longer occurred. However, the EdgeRouter's performance will drop significantly...
@yukinobu Was it UDP over port 443(aka QUIC)? You might be able to just block QUIC outright so it never uses that and see if it improves the experience?
@jbeez Yes, it seemed QUIC. Now, I blocking all egress UDP packets and it improves my experience definitely!
Below is a snippet of my NAT rules. For packets from WireGuard tunnels, only TCP and ICMP are handled by NAT.
rule 5030 {
description "masquerade from WireGuard to WAN (exclude udp to avoid hwnat bug)"
log disable
outbound-interface eth0
protocol tcp
source {
address 10.xxx.yyy.0/24
}
type masquerade
}
rule 5031 {
description "masquerade from WireGuard to WAN (exclude udp to avoid hwnat bug)"
log disable
outbound-interface eth0
protocol icmp
source {
address 10.xxx.yyy.0/24
}
type masquerade
}
Package version
1.0.20211208-1
Firmware version
v2.0.9-hotfix.2
Device
EdgeRouter X (SFP) - e50
Issue description
My network connection looks like ''' Server[192.168.100.18]------Wireguard-------ERX[192.168.100.19/192.168.0.1]-------LAN-------Mac[192.168.0.110] ''' 192.168.100.18/192.168.100.19 is wireguard devices 192.168.0.1/192.168.0.110 is Lan devices if I run on Server
run on Mac
I got log on Server
Obviously, while udp packets writing to wireguard device exceeds 30p/s, the device blocked writing. I think something might happens on packet queue located inside wireguard driver.
Other tests been done
Configuration and log output
No response