# Increase TCP max buffer size for Receiving net.core.rmem_max = 16777216 # Increase TCP max buffer size for Sending net.core.wmem_max = 16777216 # Increase Linux autotuning TCP buffer receiving limits net.core.rmem_default = 262144 # Increase Linux autotuning TCP buffer sending limits net.core.wmem_default = 262144 # min, default and max number of bytes to use for TCP Receive Window net.ipv4.tcp_rmem = 4096 87380 16777216 # min, default and max number of bytes to use for TCP Send Window net.ipv4.tcp_wmem = 4096 65536 16777216 # Use TCP syncookies when needed net.ipv4.tcp_syncookies = 1 # Enable TCP window scaling net.ipv4.tcp_window_scaling = 1 # Increase maximum allowable socket buffers net.ipv4.tcp_adv_win_scale = 3 # Don't cache ssthresh from previous connection net.ipv4.tcp_no_metrics_save = 1 # stop fin_wait faggotry net.ipv4.tcp_fin_timeout = 30 # How frequent probes are retransmitted, when a probe isn't acknowledged net.ipv4.tcp_keepalive_intvl = 15 # How many keepalive probes TCP will send, until it decides that the connection is broken net.ipv4.tcp_keepalive_probes = 5 # Maximum number of incoming packets that can be queued up for upper-layer processing net.core.netdev_max_backlog = 3000 # Increase number of incoming connections backlog net.core.somaxconn = 2048 # anti-synflood net.ipv4.conf.default.rp_filter=1 net.ipv4.tcp_syncookies=1 net.ipv4.tcp_synack_retries=3 net.ipv4.tcp_syn_retries=3 net.ipv4.tcp_max_syn_backlog=4096 # change congestion control algorithm net.ipv4.tcp_congestion_control=bic net.core.netdev_max_backlog=2500 #stop excess time_wait net.ipv4.tcp_keepalive_time=250 #fight flooding net.ipv4.tcp_tw_reuse=1 net.ipv4.tcp_tw_recycle=1 net.ipv4.tcp_rfc1337=1 net.ipv4.tcp_no_metrics_save=1