LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-13-2015, 12:47 AM   #1
sivagirirajan
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Rep: Reputation: Disabled
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.
 
Old 02-13-2015, 04:37 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Exactly what do you mean by 'customize TCP Hand shake'?
 
Old 02-13-2015, 04:50 AM   #3
sivagirirajan
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-13-2015, 05:50 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
I really don't think you should do that, but please explain your problem with details.
 
Old 02-13-2015, 06:16 AM   #5
sivagirirajan
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-13-2015, 07:08 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
That won't prevent DOS attacks...

And most likely will break TCP entirely.

If you want an isolated network, just disconnect from the internet.
 
Old 02-13-2015, 07:14 AM   #7
sivagirirajan
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Dear all how to it works or make it work is my research please help me in customizing tch handshake .please help on this
 
Old 02-13-2015, 07:22 AM   #8
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
I really don't think you should do that, but please explain your problem with details.
 
Old 02-13-2015, 08:42 AM   #9
SoftSprocket
Member
 
Registered: Nov 2014
Posts: 399

Rep: Reputation: Disabled
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
 
Old 02-16-2015, 10:39 PM   #10
sivagirirajan
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you SoftSprocket , i will try and come back
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what does this mean “80/tcp filtered http” muktadiur Linux - Server 3 04-14-2014 10:34 PM
TCP tuning for a server with very short HTTP connections jampy Linux - Networking 1 12-24-2009 09:15 AM
Probelms with 3way hand shake linuxtest Programming 1 10-08-2008 04:35 PM
tune TCP stack for HTTP connections naijaguy Linux - General 0 02-01-2005 06:42 PM
http, socket and tcp/ip comparison gogo Linux - Networking 5 10-05-2002 01:57 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration