zhxie / pcap2socks

Redirect traffic to SOCKS proxy with pcap.
MIT License
631 stars 76 forks source link

Unable to play Overcooked 2 online with Pcap2socks #21

Open terryops opened 2 years ago

terryops commented 2 years ago

I'm testing Pcap2Socks and Surge Mac Router mode with the same socks5 proxy, the result is that Pcaps2socks failed to get inside the online game while Surge Mac doesn't. It just stucks at the room loading screen. I've pasted the log with -vv argument, and I also pasted the game's connection urls captured Surge, please check out the attachments below. Helping me solving this problem is much appreciated. pcap2socks.log surge.csv

zhxie commented 2 years ago

I found that maybe some connections were closed abnormally due to the reason of time out like 13.225.93.44. It seems there is a bug in the TCP stack which will queue received data from proxy instead of sending back to the source. I will try to take a look at it, but I am a little short of time, I may not be able to fix the issue in time.

zhxie commented 2 years ago

Issue confirmed. I have tested Overcooked 2 in Nintendo Switch and found that the error may occurred in an online room.

zhxie commented 2 years ago

I presume that the problem is on L9067. The TCP stack used by pcap2socks is immature, duplicates in a short time will not trigger retransmission. And due to some reason, pcap2socks does not retransmit timed out packets to the source again. And finally, the connection get reset in L11708 due to time out.

terryops commented 2 years ago

Great! Will you be able to test it in a few days? By the way, do you have donation option for your project. I’d like to donate since pcap2socks is running well I want to support it.

在 2021年11月17日,下午9:54,Xie Zhihao @.***> 写道:

 Issue confirmed. I have tested Overcooked 2 in Nintendo Switch and found that the error may occurred in an online room.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zhxie commented 2 years ago

Yes, I need some time to review codes.

No, pcap2socks does not accpet any forms of sponsorship or donation. Also, pcap2socks is under MIT license. Any use, modification, distribution of the code is permitted but the author or copyright holders will never take liability or warranty.

zhxie commented 2 years ago

Would you like to try to run this build with -vv argument attached again? I may need some extra information to debug.

By the way, which arch of Mac are you using, an Intel (x86) one or an Apple Silicon (aarch64) one?

terryops commented 2 years ago

Still no luck with the new build. I have both x86 and ARM Mac, the attachment is logged by a x86 one. If you need logs for ARM Mac, I can also make it for you, but it may not behave differently. pcap2socks.log

terryops commented 2 years ago

Any luck on fixing the bug?

zhxie commented 2 years ago

I suppose it is a bug in UDP, since there is no response packets back from the proxy. But I am short of time last weekend, I have not captured the packets and gone through the traffic yet.

terryops commented 2 years ago

Any progress?

terryops commented 2 years ago

Btw, could another project of yours(ikago) solve this problem?

zhxie commented 2 years ago

No, I have not maintained the code for a long time, and exactly I cannot find the cause of the bug. The issue is marked as help wanted, and someone may fix it.

I am not sure if Ikago works.