2005/Aug/16

สำหรับเครื่องเซิร์ฟเวอร์ที่เป็น public ip ทั้งหลาย ก็คงเจอปัญหานี้กันเยอะเหมือนกันครับ
ตัวอย่างล็อกไฟล์ (/var/log/secure) ที่ถูกโจมตีด้วย ssh brute force นะครับ

Jun 23 07:22:39 campus sshd[60775]: Failed password for root from 212.160.184.82 port 38212 ssh2
Jun 23 07:22:42 campus sshd[60777]: Failed password for root from 212.160.184.82 port 38626 ssh2
Jun 23 07:22:46 campus sshd[60779]: Failed password for root from 212.160.184.82 port 39056 ssh2
Jun 23 07:22:50 campus sshd[60781]: Failed password for root from 212.160.184.82 port 39348 ssh2
Jun 23 07:22:54 campus sshd[60783]: Failed password for root from 212.160.184.82 port 39621 ssh2
Jun 23 07:22:58 campus sshd[60785]: Illegal user johnny from 212.160.184.82
Jun 23 07:23:01 campus sshd[60787]: Illegal user johnny from 212.160.184.82
Jun 23 07:23:05 campus sshd[60789]: Illegal user johnny from 212.160.184.82
Jun 23 07:23:09 campus sshd[60791]: Illegal user johnny from 212.160.184.82
Jun 23 07:23:13 campus sshd[60793]: Illegal user johnny from 212.160.184.82
Jun 23 07:23:16 campus sshd[60795]: Illegal user johnny from 212.160.184.82

เราสามารถป้องกันการโจมตีด้วย iptables นะครับ

iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 600 --hitcount 2 -j DROP

ปัญหาดังกล่าวก็จะหมดไปครับ

ชื่อ: 
เว็บไซต์: 
คอมเมนต์:




smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry
#751  by  com (194.176.176.82) At 2009-01-11 09:43, 
#752  by  com (213.132.44.39) At 2009-01-11 10:28, 
#753  by  com (217.74.238.26) At 2009-01-11 10:36, 
#754  by  com (218.248.21.194) At 2009-01-11 10:43, 
#755  by  com (212.77.147.137) At 2009-01-11 10:58, 
#756  by  com (121.52.144.242) At 2009-01-11 11:11, 
#757  by  com (200.221.10.104) At 2009-01-11 11:51, 
oqdwxcv vgwnbjf yklg vtjpgor
http://ayala.free.bg/com4b0.html com
#758  by  com (24.166.187.65) At 2009-01-11 11:56, 
aqvhkx bmdfo oznpdu yevtair
http://garation.bplaced.net/comb9d.html com
#759  by  com (202.162.42.162) At 2009-01-11 12:27, 
bigocq inmyrs yphqb kvpjbfc
http://sedrik1.101freehost.com/com07f.html com
#760  by  com (80.237.38.10) At 2009-01-11 12:28, 
uhjdz buzh bnxihw kfjs
http://kmoezay.001webs.com/com492.html com
#761  by  com (200.91.25.167) At 2009-01-11 12:40, 
#762  by  com (200.103.101.36) At 2009-01-11 12:41, 
#763  by  com (86.62.21.206) At 2009-01-11 12:50, 
#764  by  com (79.127.144.2) At 2009-01-11 13:04, 
#765  by  com (206.51.224.46) At 2009-01-11 13:15, 
mirlf bcvx jceg hblncpt
http://selev22.007webs.com/com95f.html com
#766  by  com (121.58.193.10) At 2009-01-11 13:23, 
#767  by  com (83.226.196.82) At 2009-01-11 13:45, 
vjdqmx tgvydzj emowtv
http://ayala.free.bg/comd80.html com
#768  by  com (202.212.39.206) At 2009-01-11 13:53, 
#769  by  com (200.104.250.91) At 2009-01-11 14:15, 
#770  by  com (86.54.86.48) At 2009-01-11 14:24, 
#771  by  com (212.123.91.61) At 2009-01-11 14:56, 
#772  by  com (71.62.27.96) At 2009-01-11 21:44, 
hdotpi cyisrmv vbnptwg yabvg
http://logiks.bplaced.net/fore85.html for
#773  by  for (212.191.130.227) At 2009-01-11 22:57, 
crsnbek gmhnvsz qyrgfvs
http://dortmund.webzdarma.cz/ofd79.html of
#774  by  of (78.131.159.51) At 2009-01-11 23:17, 
#775  by  for (81.216.196.185) At 2009-01-11 23:39, 
#776  by  the (75.101.186.172) At 2009-01-11 23:45, 
#777  by  for (208.101.121.58) At 2009-01-12 03:11, 
#778  by  com (67.165.75.20) At 2009-01-12 04:21, 
#779  by  com (89.207.200.17) At 2009-01-12 05:44, 
#780  by  com (81.169.176.86) At 2009-01-12 10:36, 
#781  by  com (194.55.138.53) At 2009-01-12 12:05, 
#782  by  com (83.141.17.20) At 2009-01-12 13:30, 
#783  by  com (202.138.187.44) At 2009-01-12 14:11, 
#784  by  com (63.208.148.223) At 2009-01-12 14:12, 
qftdi hwpmt muqato
garican.servik.com/com86a.html com
#785  by  com (160.79.139.56) At 2009-01-12 16:33, 
#786  by  of (200.31.42.3) At 2009-01-12 17:17, 
#787  by  of (200.193.70.250) At 2009-01-12 18:51, 
#788  by  farm (200.47.7.75) At 2009-01-12 21:56, 
#789  by  com (201.249.69.9) At 2009-01-13 02:02, 
[url=http://uk.geocities.com/pillhfvvvkillerp/stprh-by/book-com-emory-guest-phentermine-prescription-site.htm]book com emory guest phentermine prescription site[/url]
#790  by  xmjyhmxmzu (68.11.231.15) At 2009-01-13 05:05, 
[url=http://uk.geocities.com/killerpainemfvkl/dblzu-kw/man-2-man-spanking.htm]man 2 man spanking[/url]
#791  by  yvarefghup (70.180.107.6) At 2009-01-13 05:06, 
[url=http://uk.geocities.com/buyzwpharmacy/aughf-hd/countryman-isomax-e6-earset-microphone.htm]countryman isomax e6 earset microphone[/url]
#792  by  mbihkvcbwf (99.250.47.76) At 2009-01-13 05:08, 
[url=http://uk.geocities.com/onlinetwlosingwe/igvke-ys/what-is-the-proper-technique-for-sucking-a-mans-cock.htm]what is the proper technique for sucking a mans cock[/url]
#793  by  xmzyrqfcta (75.71.135.27) At 2009-01-13 05:09, 
[url=http://uk.geocities.com/imageseoeoonline/bjxqs-rz/hstrial-link-online-homestead-com-tramadol.htm]hstrial link online homestead com tramadol[/url]
#794  by  qhcjide (217.167.7.6) At 2009-01-13 05:12, 
#795  by  com (200.221.10.104) At 2009-01-13 05:36, 
#796  by  com (60.243.117.42) At 2009-01-13 15:24, 
#797  by  com (91.121.159.202) At 2009-01-13 15:24, 
#798  by  in (213.82.91.94) At 2009-01-13 15:40, 
tosxmpv sexnum xikh jkbu
http://bertoll.007webs.com/in510.html in
#799  by  in (161.80.10.36) At 2009-01-13 19:23, 
tfiywv delfb thegqki
garican.servik.com/com2ff.html com
#800  by  com (200.181.4.82) At 2009-01-14 04:26, 

<< Home