LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to customize TCP Hand shake for HTTP (https://www.linuxquestions.org/questions/programming-9/how-to-customize-tcp-hand-shake-for-http-4175533876/)

sivagirirajan 02-13-2015 12:47 AM

how to customize TCP Hand shake for HTTP
 
I am very new to linux , i would like to know how to customize TCP hand shake for my HTTP server . please help me where i have to do modification in linux to performe the same.

NevemTeve 02-13-2015 04:37 AM

Exactly what do you mean by 'customize TCP Hand shake'?

sivagirirajan 02-13-2015 04:50 AM

TCP does three way hand shaking , in which i need to avoid/change/modify packet header of my reply packet to my client who is requesting HTTP service to my webserver

NevemTeve 02-13-2015 05:50 AM

I really don't think you should do that, but please explain your problem with details.

sivagirirajan 02-13-2015 06:16 AM

why dont i do this....it is my need i would like to avoid few typical attacks like DOS so that i am doing it

jpollard 02-13-2015 07:08 AM

That won't prevent DOS attacks...

And most likely will break TCP entirely.

If you want an isolated network, just disconnect from the internet.

sivagirirajan 02-13-2015 07:14 AM

Dear all how to it works or make it work is my research please help me in customizing tch handshake .please help on this

NevemTeve 02-13-2015 07:22 AM

I really don't think you should do that, but please explain your problem with details.

SoftSprocket 02-13-2015 08:42 AM

The TCP stack is implemented in the kernel so you'll have to modify that. Some reading to get you going:
http://www.ece.virginia.edu/cheetah/...s/TCPlinux.pdf
http://www.cubrid.org/blog/dev-platf...network-stack/
http://lxr.free-electrons.com/source/net/ipv4/tcp.c

sivagirirajan 02-16-2015 10:39 PM

Thank you SoftSprocket , i will try and come back


All times are GMT -5. The time now is 06:36 PM.