cloudflare / cloudflare/boringtun
The wireguard_write encryption result is different from the official one
- Dominant language
- Rust
- Stars
- 7.2k
- Forks
- 532
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
client: windows 10
server : centos 9
I used wireguard.exe and the allowed IP is 8.8.8.8.When I ping 8.8.8.8, I find that the original ICMP packet size is 60bit. 64bit after being encrypted by wireguard.


When I use wireguard_write, I find that it is still 60bit after encryption, and my server is not responding to the package.

My IP packet processing flow:
1.use windivert to get the IP package (60bit)
2. changed the sending address of the IP packet to 10.66.66.2 and recalculated the checksum
3. use wireguard_write to encrypt
4. udp socket send the result of step 3.
Is there anything else I need to do?
Contributor guide
Assessment
This issue has not been assessed yet.