There a is massive attack on port 80 on my Server i try to use iptable This way to banned attackers
iptables -A INPUT -s 212.252.96.128 -j DROP
but there are too many IPs attacking how to prevent this kind of attacks ? Is there better way To protect my Ubuntu server from getting attacked ?
fail2ban
is what you should be looking at. It can ban IPs after a certain configurable number of unsuccessful attempts to connect.ignoreip
is the IP of the local server, it basically means, "don't block this, and ignore log entries".