- rules
- limit concurrent connection 2 per ip, 8 per c class
- limit 3 syn per ip with in 30 sec
- limit some tcp ddos
-
save iptables sample to /etc/iptables
-
apply
iptables-restore < /etc/iptables
- check
iptables -L -v -n
- to apply rules after rebooting
- add a line to /etc/rc.local between # and 'exit 0'
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/sbin/iptables-restore < /etc/iptables
exit 0
Just want to say THANK YOU!!!!