Showing posts with label secure server. Show all posts
Showing posts with label secure server. Show all posts

Monday, December 9, 2013

Recommendations for hardening Linux against DDoS & syn flood attacks

Add the following lines in sysctl.conf....

# Vim /etc/ sysctl.conf
----------------------------------------------------------------------------------------------
net.ipv4.tcp_syncookies = 1           [# Prevent the common 'syn flood attack']
net.ipv4.conf.all.rp_filter = 1     [# Prevent the common 'DoS attack']
net.ipv4.conf.default.rp_filter = 1      [# Prevent the common 'DoS attack']
net.ipv4.tcp_max_syn_backlog = 2048
net.ipv4.tcp_synack_retries = 3
----------------------------------------------------------------------------------------------