LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2007, 07:12 PM   #1
au_hank
LQ Newbie
 
Registered: Sep 2007
Posts: 17

Rep: Reputation: 0
My new method to realize syncookie


Hi guys, I have written a new method to implement syncookie to defend DDOS,
I have test the performance of generating and checking cookie which is 50 times more quicker than the standard method.

on my vmware running on P4 1.7G thinkpad, it generates 100,000,000 cookies in 11 seconds while the standard method takes 26 seconds to do 5000,000 times SHA1 encryptions. The standard method would takes more time to generate/check cookie as SHA1 encryption is just one of its steps to generate cookie. So in terms of efficiency, my method would be more than 50 times better than the standard way.

I have tested it on 2.6.20-18, but I have no environment to simulate DDOS(I have only one notebook ). I post my code here and hope if someone is interested and will do some pressure test on it. Any suggestion will be highly appreciated!

Can someone tell me how to upload my code?
 
Old 09-13-2007, 07:15 PM   #2
au_hank
LQ Newbie
 
Registered: Sep 2007
Posts: 17

Original Poster
Rep: Reputation: 0
wow, I am a newbie here thus not permitted to upload attachment.
pls download syncookie.c from an other forum where i post eralier:

http://linux.chinaunix.net/bbs/attac...php?aid=178266

or if someone interested pls contact me by high.lin@gmail.com, I will send you
the code
 
Old 09-13-2007, 07:23 PM   #3
au_hank
LQ Newbie
 
Registered: Sep 2007
Posts: 17

Original Poster
Rep: Reputation: 0
how to use it:

I have only tested it on 2.6.20-18

1: replace linux-2.6.20.18/net/ipv4/syncookie.c with my one
2: compile new kernel with syncookie support
3: echo n >/proc/sys/net/ipv4/tcp_syncookie
if n=1 then you choose to use the standard method of syncookie,
n>1 you choose to use my new method. n means to re-generate the 1024 byte secret in n seconds

pls set n to a high value, saying 300 to reduce overhead of re-creating the secret
 
Old 09-13-2007, 07:27 PM   #4
au_hank
LQ Newbie
 
Registered: Sep 2007
Posts: 17

Original Poster
Rep: Reputation: 0
http://linux.chinaunix.net/bbs/attac...php?aid=178266 seems does work for you guys(you have to register to download it)

can someone help me to upload my code?
 
Old 09-14-2007, 05:16 PM   #5
au_hank
LQ Newbie
 
Registered: Sep 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Talking hi pls download the code here

pls check the post here:
http://www.linuxforums.org/forum/lin...syncookie.html

and the url of code is:
http://www.linuxforums.org/forum/att...syncookies.zip

thank you for any suggestion
 
  


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
My new method to realize syncookie au_hank Linux - Security 11 09-17-2007 05:50 PM
gtk+:how to realize highlighting gepo Programming 1 03-13-2006 12:26 PM
how to realize automount(direct) guduke Linux - Enterprise 1 10-24-2005 04:52 AM
who realize debian MiniCD! muyu Debian 1 04-07-2004 07:29 AM
fedora couldn't realize my c, d drive gobi Fedora 4 01-18-2004 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:44 PM.

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