how to drop ip

Issues related to configuring your network
Post Reply
xlenonz
Posts: 5
Joined: 2007/07/24 22:51:26
Contact:

how to drop ip

Post by xlenonz » 2010/08/19 22:29:18

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.

pjwelsh
Posts: 2589
Joined: 2007/01/07 02:18:02
Location: Central IL USA

how to drop ip

Post by pjwelsh » 2010/08/20 13:49:07

as root, [code]iptables -I INPUT -s BAD_IP_ADD -j DROP[/code]

Post Reply