ִ IPTables ִ IP ּҸ

Ͽ Sukrit Dhandhania 2009 4 6

쿡 å, ū ɻ簡 ȴ.  ū DDOS ̰ Ͽ  ݺ õ ĸ ڵȭѴ. ħ IP ּҸ ִ ټ ִ. ׷ Ŀ ãƳ Ͽ /׳ IP ּҸ ϴ°? , װ ´. ⿡ κ dz̷ ߼ϴ ȣ IPTables Ͽ װ ϴ ̴.

Ͽ ϴ ٸ ִ 쿡 1 IP ּҴ ִ:

# iptables - I ԷϽʽÿ - s 122.174.12.228 - j ϶

IP  ߸ Ͽ װ ϴ iptables Ϸ ߰ ̴ 122.172.9.222. ϴ 쿡 ϰ ڵȭ ο IPs ߰ϱ Ͽ ̿ . ϱ Ͽ ڿ âϴ:

#! /bin/sh
$ ִ i (< banned_IPs.cfg);
iptables - I ԷϽʽÿ - i eth1 - s "$i" - j ϶
ϴ

̶ Ϸ Ͻʽÿ banned_IPs.sh ׸ װͿ ִ Ư Ͻʽÿ:

# chmod +x banned_IPs.sh

Ҹ âϽʽÿ banned_IPs.cfg ׸ IP ο ߴ ʹ, ο ʽÿ:


122.174.12.228
129.122.10.23
111.154.84.130

޸ʽÿ banned_IPs.sh iptables ִ IPs ο ߰ ϴ IP ּҰ ֱ Ͽ:

# ./banned_IPs.sh

Ʈ:
  • ִ iptables
  • ּ Firefox ִ ġ ο ġ ϴ
  • â ִ IP Ǵ MAC ּҸ ϴ
  • ϵ̺ â  ϴ
  • IP ּҰ Ʈ ϰ ִ ϴ
  • - ο - inbox ڽ ٸ Ͽ ʽÿ! ٸ ̸ ּҸ Ʒ ԷϽʽÿ:

    You can always opt out of this email subscription at any time.

    { 0 comments add one now }

    Leave a Comment

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>