basil00 / WinDivert

WinDivert: Windows Packet Divert
https://reqrypt.org/windivert.html
Other
2.55k stars 509 forks source link

Proxy connection established, but packets not being forwarded to Discord through WinDivert #371

Open Hittcliff opened 1 month ago

Hittcliff commented 1 month ago

I have a C++ program that establishes a proxy connection using WinDivert and redirects traffic to Discord. The proxy connection is established successfully, but packets are not being forwarded to Discord, and Discord is not working through the proxy. The redirectTraffic function is used to redirect traffic to the proxy, but it seems that packets are not being processed correctly.

Why do I need this? Recently, Discord was blocked for stupid reasons, and I want to write software to bypass the blocking. Just sketches for now, but I need to make it work as it should. I want to make a proxy connection only for Discord.

Src: https://pastecode.io/s/5h0qv1jf

Hittcliff commented 1 month ago

I've checked the proxy connection and it's established successfully. I've also tried debugging the redirectTraffic function, but I'm not sure what's going wrong.

Hittcliff commented 1 month ago

Can anyone help me identify the issue with the redirectTraffic function and why packets are not being forwarded to Discord through the proxy? Is there something I'm missing in terms of packet processing or handling?