ขอทราบวิธี Block IP หน่อยครับ

ขอทราบวิธี Block IP หน่อยครับ
ของประเทศจีนอ่ะครับ ทำไงอ่ะ

บล๊อกทั้งประเทศเลยนะครับ(จีน)

top - 14:00:38 up 5 min,

กระทู้นี้ http://www.thaihosttalk.com/th1/index.php?topic=11925.0 น่าจะช่วยได้ ลองดู

block จาก asn ดีกว่ามั้งอย่างนี้

http://www.cidr-report.org/cgi-bin/as-report?as=AS4134

top - 14:28:17 up 10 min,

ดู server status ให้ดีๆ
block ip มันก็แค่ปลายเหตุ

437-0 1762 0/18/18 R 0.00 2 0 0.0 0.00 0.00 ? ? …reading…
438-0 1763 0/7/7 R 0.00 16 0 0.0 0.00 0.00 ? ? …reading…
439-0 1764 0/7/7 R 0.00 15 0 0.0 0.00 0.00 ? ? …reading…
440-0 1765 0/4/4 R 0.00 0 0 0.0 0.00 0.00 ? ? …reading…
441-0 1766 0/4/4 R 0.00 10 568 0.0 0.00 0.00 ? ? …reading…
442-0 1767 0/1/1 R 0.01 12 0 0.0 0.00 0.00 ? ? …reading…
443-0 1768 0/9/9 R 0.00 10 0 0.0 0.00 0.00 ? ? …reading…
444-0 1769 0/13/13 R 0.00 12 0 0.0 0.00 0.00 ? ? …reading…
445-0 1770 0/3/3 R 0.00 16 0 0.0 0.00 0.00 ? ? …reading…
446-0 1771 0/12/12 R 0.01 7 0 0.0 0.00 0.00 ? ? …reading…
447-0 1772 0/12/12 R 0.00 8 0 0.0 0.00 0.00 ? ? …reading…
448-0 1773 0/20/20 R 0.00 14 0 0.0 0.01 0.01 ? ? …reading…
449-0 1774 0/16/16 R 0.07 1 0 0.0 0.01 0.01 ? ? …reading…
450-0 1775 0/5/5 R 0.00 14 0 0.0 0.00 0.00 ? ? …reading…
451-0 1776 0/9/9 R 0.00 5 0 0.0 0.00 0.00 ? ? …reading…
452-0 1777 0/6/6 R 0.00 6 0 0.0 0.00 0.00 ? ? …reading…
453-0 1778 0/2/2 R 0.00 29 0 0.0 0.00 0.00 ? ? …reading…
454-0 1779 0/6/6 R 0.00 0 0 0.0 0.00 0.00 ? ? …reading…
455-0 1780 0/3/3 R 0.00 18 0 0.0 0.00 0.00 ? ? …reading…
456-0 1781 0/7/7 R 0.00 0 0 0.0 0.00 0.00 ? ? …reading…
457-0 1782 0/15/15 R 0.00 3 0 0.0 0.02 0.02 ? ? …reading…
458-0 1783 0/6/6 R 0.00 3 0 0.0 0.00 0.00 ? ? …reading…
459-0 1784 0/16/16 R 0.00 12 0 0.0 0.00 0.00 ? ? …reading…
460-0 1785 0/2/2 R 0.00 28 0 0.0 0.00 0.00 ? ? …reading…
461-0 1786 0/13/13 R 0.00 3 0 0.0 0.00 0.00 ? ? …reading…
462-0 1787 0/8/8 R 0.00 27 0 0.0 0.00 0.00 ? ? …reading…
463-0 1788 0/27/27 R 0.00 14 0 0.0 0.01 0.01 ? ? …reading…
464-0 1789 0/12/12 R 0.00 22 0 0.0 0.00 0.00 ? ? …reading…
465-0 1790 0/1/1 R 0.00 28 1 0.0 0.00 0.00 ? ? …reading…
466-0 1791 0/3/3 R 0.00 27 0 0.0 0.00 0.00 ? ? …reading…
467-0 1792 0/8/8 R 0.00 5 0 0.0 0.00 0.00 ? ? …reading…
468-0 1793 0/8/8 R 0.00 15 0 0.0 0.00 0.00 ? ? …reading…
469-0 1794 0/8/8 R 0.00 23 0 0.0 0.00 0.00 ? ? …reading…
470-0 1795 0/12/12 R 0.00 19 0 0.0 0.00 0.00 ? ? …reading…
471-0 1796 0/13/13 R 0.00 0 0 0.0 0.00 0.00 ? ? …reading…
472-0 1797 0/11/11 R 0.01 16 0 0.0 0.00 0.00 ? ? …reading…
473-0 1798 0/17/17 R 0.00 21 0 0.0 0.00 0.00 ? ? …reading…
474-0 1799 0/7/7 R 0.00 10 0 0.0 0.00 0.00 ? ? …reading…
475-0 1800 0/10/10 R 0.01 23 0 0.0 0.00 0.00 ? ? …reading…
476-0 1801 0/1/1 R 0.00 24 1 0.0 0.00 0.00 ? ? …reading…
477-0 1802 0/3/3 R 0.00 26 0 0.0 0.00 0.00 ? ? …reading…
478-0 1803 0/5/5 R 0.00 5 0 0.0 0.00 0.00 ? ? …reading…
479-0 1804 0/2/2 R 0.00 28 0 0.0 0.00 0.00 ? ? …reading…
480-0 1805 0/0/0 R 0.00 0 0 0.0 0.00 0.00 ? ? …reading…
481-0 1806 0/1/1 C 0.00 0 0 0.0 0.00 0.00 121.33.3.209 www.------.info GET /?a=home HTTP/1.1

โครตเยอะเลย อะไรนี่

ลองไล่ดูแต่ล่ะเว็บไซต์ดูครับ ว่ามี scripts อะไรแปลกๆหรือเปล่า

มีเว็บไหนใช้ mambo/joomla แล้วยังไม่ได้ fix บ้าง ลองดูนะครับ

ครับผม ขอบคุณนะครับ

น่าจะมาจากเว็บใดเว็บหนึ่งในเครื่องครับ

เมื่อสักครู่ผมก็โดนกับเขาเหมือนกัน
80 จากเว็บสมาชิกท่านนึงครับ

222.123.250.x มา 3 ip ด้วยกัน

น่าเอา M ยิงกลับจริงๆ

วิธีแก้นะครับ เมื่อสักครู่ก็ netstat -an ดู ip แปลกๆ connection เยอะๆ
เทียบกับ Apache status ครับ

นั่งดูแป๊ปนึงหาที่มาที่ไป จนเจอเว็บท่านนึง
จึงทำการ block ip ไปพบว่ามี ip ใหม่มาอีก เง่อ
จึง suspend เว็บไปชั่วคราวเพื่อ ตรวจสอบ ต่อไปครับ มิงั้น user อื่นๆ จะได้รับผลกระทบไปด้วย

สู้ๆ

เพิ่งหายเหมือนกัน

ก่อนอื่นต้องทำให้มันช้าลงก่อนด้วย

iptables -A INPUT -p tcp --syn -m limit --limit 25/s --limit-burst 30 -j ACCEPT
iptables -A INPUT -p tcp --syn -j DROP

ถ้ายังมามากอยู่ให้ใส่

iptables -A INPUT -p tcp --syn -m limit --limit 15/s --limit-burst 20 -j ACCEPT
iptables -A INPUT -p tcp --syn -j DROP

พอเหตุการปกติค่อยเอาออก ธรรมชาติของคนยิงถ้ายิงแล้ว Server ไม่ร่วง มันจะไปหาวิธีอื่นแทน ไม่เกิน 1 ชม. หรอก เดี่ยวมันก็เลิกยิงไปเอง

ตอนนี้ใ้ช squid block มันทั้ง asn เลยครับ

acl chinanet src_as 4134
http_access deny chinanet

116.4.36.249 - - [16/Aug/2008:15:24:34 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 1452 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_DENIED:NONE
116.4.36.249 - - [16/Aug/2008:15:24:34 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 1452 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_DENIED:NONE
116.19.69.69 - - [16/Aug/2008:15:24:34 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 1452 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_DENIED:NONE
221.215.195.65 - - [16/Aug/2008:15:24:34 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 712 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_MISS:DIRECT
121.68.0.250 - - [16/Aug/2008:15:24:34 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 712 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_MISS:DIRECT
116.54.50.195 - - [16/Aug/2008:15:24:34 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 1452 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_DENIED:NONE
116.54.50.195 - - [16/Aug/2008:15:24:34 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 1452 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_DENIED:NONE
116.20.91.247 - - [16/Aug/2008:15:24:34 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 1452 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_DENIED:NONE
58.63.182.192 - - [16/Aug/2008:15:24:34 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 1452 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_DENIED:NONE
58.63.182.192 - - [16/Aug/2008:15:24:35 +0700] “GET http://www.xxxxxxxx.info/? HTTP/1.1” 403 1452 “http://www.xxxxxxxx.info” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-revalidate” TCP_DENIED:NONE

ขอบคุณพี่ไอซ์มากๆเลยครับ

ตอนนี้
tail -f /var/log/squid/access.log
มันก็ยังไหลเรื่อยๆ โครตๆเร็วเลย

ขอบคุณพี่ไอซ์อีกครั้งนึงนะครับ

ไปกินข้าวแว๊บเดียว
เปลี่ยน ip อีกละ

มันคงจะฉลอง โอลิมปิค แน่ๆ เลย

ถ้าจะ block ทั้งประเทศก็นี่ เลย http://www.maxmind.com/app/mod_geoip

ทำไงครับบอกหน่อย

http://www.blockacountry.com