TCPv6:端口80上可能发生SYN泛洪。发送cookie - nginx

时间:2016-09-21 07:22:32

标签: cookies nginx tcp

我正在使用版本1.4.0的nginx。获取错误:TCPv6:端口80上可能发生SYN泛洪。发送cookie。

它正在为媒体流量提供服务,每当传入连接的数量超过7K时。文件大小约为1.5Mb。 以下是一些参考资料:

nginx conf的一部分:

`worker_processes  auto;
 events {
 worker_connections  4096;
 use epoll;
 multi_accept on;
 }
 worker_rlimit_nofile   100001;

 http {
 include       mime.types;
 default_type  video/mp4;
 proxy_buffering           on;
 proxy_buffer_size         4096k;
 proxy_buffers             5 4096k;
 sendfile                  on;
 keepalive_timeout         30;
 tcp_nodelay               on;
 tcp_nopush               on;
 reset_timedout_connection on;
 gzip                      off;
 server_tokens          off;`

`

sysctl参数是:

net.core.somaxconn=65535
net.ipv4.tcp_tw_recycle = 0 # purpsely set to 1 as NATed client were facing issue.
net.ipv4.tcp_syncookies = 1
net.core.netdev_max_backlog = 250000
net.ipv4.tcp_max_syn_backlog = 4096
net.core.rmem_max = 134217728
net.core.wmem_max = 134217728
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.core.netdev_max_backlog = 250000
net.ipv4.tcp_congestion_control = htcp
net.ipv4.tcp_mtu_probing = 1
net.ipv4.ip_local_port_range = 4096 65535
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_fin_timeout = 10

使用的服务器:CentOS 6.5版(最终版)

cat / proc / meminfo

MemTotal:1588152040 kB

lscpu

架构:x86_64 CPU操作模式:32位,64位 字节顺序:Little Endian CPU(s):60

请协助解决同步洪水错误的问题。

0 个答案:

没有答案