-
Notifications
You must be signed in to change notification settings - Fork 101
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
SYN flag #19
Comments
What is the problem with 3 way handshake enabled? Here is a simple program where you can test the connectivity with fixed TCP flags: https://gist.github.com/Chion82/699ae432a27507242ea788df324f4e47 |
Firewall block all packets with ACK flags. Only packets SYN flag are allowed. |
It is totally possible and actually relayRawSocket, by which kcptun-raw is inspired, is doing what you want by sending TCP packets with only SYN flags. However:
|
I tried to run it relayRawSocket on Ubuntu 16.04. But it does not work on Ubuntu 16.04.
It would be very cool if you teach your program to work only on the SYN flag. |
I've added the SYN-only feature to syn-only branch with additional |
@zhorakuz you should enable |
Yes. See image |
The client should have printed |
|
@zhorakuz Just |
Ok. Now client printed Use SYN-only mode and send to server SYN packets. |
Your server DOES respond once it receives packets from the client. Please use
I have already tested this feature dozens of times on my virtual machines with bridged network and it works as expected. |
Nope. That's why From kcptun-raw README:
By adding these Another possible cause might be the MTU problem. But this doesn't explain why your client received exactly nothing, even not receiving the initial negotiating packets which are relatively small sized.
It looks like the problem is not caused by firewall dropping ACKs, but you haven't configure |
I checked and with customized rules iptables and without customized rules iptables. The result is one. Through the local network works. Through the Internet does not work. If you can test through the Internet - tell me. |
Please use
Yes you can. Modifying |
After i change remote_addr.sin_addr.s_addr = inet_addr("8.8.8.8"); |
Do you see packets trying to send out from the server, by using |
ip is changed and i see |
Oh you should also update:
|
Now checksum ok. But server not send packets to client) |
Hi.
Can you add to kcptun-raw option - only SYN flag a tcp header ?
All data must is transmitted only with SYN flag. Without 3 way handshake
The text was updated successfully, but these errors were encountered: