how to drop ip

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

how to drop ip

Postby xlenonz » 2010/08/19 22:29:18


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 drop

but it will drop like hours.


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

how to drop ip

Postby pjwelsh » 2010/08/20 13:49:07

as root,

Code: Select all

iptables -I INPUT -s BAD_IP_ADD -j DROP