[CentOS] syncookies.c

2015-05-04 Thread Ibrahim Celikbilek
Default,syncookies are  activate when syn list(backlog queue) is full. I
want hybrid system.
I propose a system , syncookies active dynamic per connection .
where will I write code , where syncookies system does call in the code
file.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] New approach syncookies help me

2015-05-12 Thread Ibrahim Celikbilek
Hello Everyone,
I have 2 different suggestions about syn-cookies method which is used to
block syn-flood attacks.

Syn cookies bitwise image
 -
   T(5 bits) ---MSS(3 bits)-H(24 bits)
-
So,
1- T value can be decreased to 2 bit which is already 5 bit.And hash value
will be 27 bit.
2-Normally syn-cookies is activated when syn-list is fulled.
At this point  I suggest a hybrid system.Syn packages and eck packages
which received to server will be counted, if the difference is bigger than
a reference value syn-cookies will be activated.
In other words syn-cookies mechanism will be in automatic control.
Now I have two questions;
1-How can I invoke syn-cookies structure into Linux Kernel?
2-How can I know when syn-list is fulled?

Thank you everyone,
if you have any suggestions please let me know.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] help please , How SYN and ACK packets counted by the server(centos)

2015-05-22 Thread Ibrahim Celikbilek
I have a question about tcp layer of linux kernel. I want, Syn and ack
packages received to server will be counted.

[image: enter image description here]

where total_syn_count and total_ack_count are variables to be defined and
will be increased

Which files to be used 

tcp_input.c ,tcp_output.c , tcp_ipv4.c
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos