Ibrahim Celikbilek
2015-May-22 11:36 UTC
[CentOS] help please , How SYN and ACK packets counted by the server(centos)
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
Gordon Messmer
2015-May-22 14:45 UTC
[CentOS] help please , How SYN and ACK packets counted by the server(centos)
On 05/22/2015 04:36 AM, Ibrahim Celikbilek wrote:> where total_syn_count and total_ack_count are variables to be defined and > will be increased > > Which files to be used ????Rather than modifying your kernel, you could just create iptables rules that match TCP SYN and ACK packets. When printed with "iptables -L -v", you'll get a count for packets that match.