Archive for the ‘DDOS’ Category

If you server is under ddos attack, please harden  sysctl.conf and install apf ,ddos deflate.


Hardening of sysctl.conf

servertechs# nano -w  /etc/sysctl.conf

Add this to the /etc/sysctl.conf

#  Enable IP spoofing protection, turn on Source Address Verification
net.ipv4.conf.all.rp_filter = 1
# Enable TCP SYN Cookie Protection
net.ipv4.tcp_syncookies = 1
Add the below code in /etc/rc.local and restart network
for f in /proc/sys/net/ipv4/conf/*/rp_filter;
do echo 1 > done
echo 1 > /proc/sys/net/ipv4/tcp_syncookies


Installation DDoS Deflate

This works with apf to block  ips , ensure that you have apf installed on the server.


chmod 0700