Page 1 of 1

how to drop ip

Posted: 2010/08/19 22:29:18
by xlenonz
hi,

i use many ips for game servers.

some time i get ddos attack to specific ip adress.

i can change ip to other server with that command


arping -U -I eth0 ip address

but i want, drop that ip.not change to other server.

i do ifconfig eth0:340 ipadddress netmask 255.255.255.0 drop

but it will drop like hours.

thanks.

how to drop ip

Posted: 2010/08/20 13:49:07
by pjwelsh
as root, [code]iptables -I INPUT -s BAD_IP_ADD -j DROP[/code]