Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support TCP SPA feature #515

Open
wants to merge 3 commits into
base: unified
Choose a base branch
from
Open

Conversation

mxmkeep
Copy link

@mxmkeep mxmkeep commented Mar 22, 2024

Hi Wang

I have already implemented the SPA feature for tcp that the issue i created : https://github.com/wangyu-/udp2raw/issues/506
It just add a new tcp option(233) with a check sum(timestamp + key_string) in SYN packet.
And the server will check the 233 tcp option's check sum.

when server start with --tcp-spa
./udp2raw -s -l 192.168.56.12:61103 -r 202.104.30.208:61103 -a --tcp-spa
client with --tcp-spa will be accept
./udp2raw -c -l 192.168.56.10:61103 -r 192.168.56.12:61103 -a --tcp-spa
client without --tcp-spa will be drop
./udp2raw -c -l 192.168.56.10:61103 -r 192.168.56.12:61103 -a

when server start without --tcp-spa
client with or without --tcp-spa will both be accept

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant