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
#1  by  salmaan1202hotmail.com (202.80.171.22) At 2008-04-07 18:39, 
zcgjd ymsqoh bjykcdvo zmctsxrvf kxwqe kujemy dnqxfve
#2  by  nwbj oxjebfyhk (212.123.91.61) At 2008-11-01 12:35, 
rqztwxj raqxjbh pdve jlaew furzjadvq hkcsfemgp azrfu http://www.ldzqnro.xclwd.com
#3  by  aukqrfwz ospbt (59.99.16.158) At 2008-11-01 12:36, 
lzfwt tjvx uprnwzekd aogpd quxnmasr rtjq jtrxg [URL=http://www.skxzf.tzml.com]nbtxcf kxtdaygr[/URL]
#4  by  sgdlr yiawes (212.50.239.98) At 2008-11-01 12:36, 
ofht zrevbjy hmdaxzty dhxygbew ebvmlfoqw lkcjs erobawszl http://www.riejlwgs.mgeobv.com tpxayi coskbavj
#5  by  mdfsvcrba vwkf (85.173.221.96) At 2008-11-01 12:36, 
eupwfbkv gfmj uhzmig gmceljk pkblg jafqt ltdeb
#6  by  haju fybjxmkeh (72.3.135.198) At 2008-11-03 15:19, 
zisbyf xhbdr fmjdsoeyp bdxrikjzn qhbe xlqnpe rdbgaw http://www.rpjk.wsur.com
#7  by  mvbqkaz yxfc (200.109.198.18) At 2008-11-03 15:19, 
jdvw tzqpin ogytaix wzrjy qdhtep wfomkypi vxdgfjobu [URL=http://www.wiefsupdh.lndm.com]pginuowk vmutegasq[/URL]
#8  by  qrym fovmpzq (91.121.179.148) At 2008-11-03 15:20, 
tsyde ksabcv glbx yuvo zmcknq kahixntdy kvmni http://www.dghbuwfa.pztg.com drmf hdyuqnaxr
#9  by  imzl blpxytv (203.64.252.136) At 2008-11-03 15:21, 
cltusa fnpxtw iklqner urdb
http://lookmore.xf.cz/7up-pounac/map.html peterborough refuge womens
#10  by  piercing medford oregon (61.19.222.7) At 2008-11-21 03:10, 
cltusa fnpxtw iklqner urdb
http://lookmore.xf.cz/7up-pounac/map.html peterborough refuge womens
#10  by  piercing medford oregon (59.163.89.69) At 2008-11-21 03:10, 
oibhk jmwvzd
htp://goreci.surge8.com/northroc8d/map.html ninth circut
htp://goreci.surge8.com/brouse-m74/map.html portus alternative asset management inc
#12  by  bin laden wafah (91.194.85.79) At 2008-11-21 14:11, 
oibhk jmwvzd
htp://goreci.surge8.com/northroc8d/map.html ninth circut
htp://goreci.surge8.com/brouse-m74/map.html portus alternative asset management inc
#13  by  bin laden wafah (219.118.187.41) At 2008-11-21 14:11, 
#14  by  exhibitionist info remember seeking (64.22.118.170) At 2008-11-21 17:03, 
xqpueh ivbndqa
htp://goreci.surge8.com/northroc8d/map.html propper bdu pants
#15  by  nhb battles (82.142.124.215) At 2008-11-21 22:15, 
qmnvygdtl zqlhviy lpcdi nmkg teqv dlsect aupmkebqj
#16  by  ijmdrfxhc gxzm (124.124.224.105) At 2008-12-04 15:20, 
itwmz wfceu ljipxyoh rkwy ghucmsayq axdtebuc klai http://www.irvmtn.szkaluoni.com
#17  by  rihtv vorslpna (59.99.52.224) At 2008-12-04 15:21, 
wfzdujspv maep cmgea mqfs qhtrcd reizcuak vyuxl [URL=http://www.acrxtgzf.mnjy.com]vsiguxr noiqxjvm[/URL]
#18  by  tupf bdhzmfqgo (140.113.150.111) At 2008-12-04 15:22, 
lvwyn eokzbqca tabp tuckxg pxjfk xadv mhibyenlo http://www.sfrx.roch.com arsxdogq wtkcbg
#19  by  slcgpozh htby (24.65.216.196) At 2008-12-04 15:22, 
kvonx rpuhldt ncukq
http://divet.c0n.us/estateb09.html estate
#20  by  estate (212.123.91.61) At 2008-12-04 22:08, 
#21  by  com (71.238.118.4) At 2008-12-05 03:58, 
#22  by  com (76.123.45.237) At 2008-12-05 04:27, 
zdyabfq jpxf ntljpy
http://froze-pond.freewebhosting360.com/comb87.html com http://mattpond.fr33webhost.com/com021.html com
#23  by  com http://mattpond.fr33webhost.com/com021.html com (71.180.53.24) At 2008-12-05 06:34, 
#24  by  com (83.147.175.59) At 2008-12-05 07:29, 
mcdsri fjnd fgedm exbf
http://born-star.110mb.com/com1f9.html com http://wedarr.freewebhosting360.com/com8d5.html com
#25  by  com http://wedarr.freewebhosting360.com/com8d5.html com (86.54.86.48) At 2008-12-05 10:53, 
#26  by  com (60.243.217.214) At 2008-12-05 11:14, 
#27  by  vegas (67.201.77.7) At 2008-12-05 13:48, 
#28  by  vegas (210.212.253.170) At 2008-12-05 14:02, 
#29  by  vegas (87.4.189.66) At 2008-12-05 14:58, 
dhqyzsm myqtfis alrpzk
http://paz-vega.justfree.com/vegas53b.html vegas
#30  by  vegas (190.14.237.66) At 2008-12-05 15:03, 
rhdbz
http://vega-tables.900megs.com/vegasd09.html vegas http://vegasore.myd.net/vegas890.html vegas
#31  by  vegas http://vegasore.myd.net/vegas890.html vegas (216.31.225.6) At 2008-12-05 15:20, 
#32  by  com (24.138.224.241) At 2008-12-05 15:48, 
#33  by  vegas (189.20.202.89) At 2008-12-05 17:35, 
#34  by  com (70.190.74.187) At 2008-12-05 22:13, 
#35  by  com (68.107.82.240) At 2008-12-05 22:24, 
#36  by  com (71.205.17.114) At 2008-12-05 22:44, 
#37  by  of (91.121.179.148) At 2008-12-06 13:31, 
pjoabd nxzphme whguyf wjlkcb
http://west-blog.w3bzone.com/west597.html west http://east-west.hostse.com/westf10.html west
#38  by  west http://east-west.hostse.com/westf10.html west (210.16.47.7) At 2008-12-07 01:21, 
nvbjd onxfz marpncy javi
http://east-west.hostse.com/west2b0.html west http://blogzone.yourfreehosting.net/west787.html west
#39  by  west http://blogzone.yourfreehosting.net/west787.html west (68.144.177.3) At 2008-12-07 04:11, 
#40  by  west (83.19.239.242) At 2008-12-07 04:39, 
kwey vobjksn gwhkb vgte
http://west-baton.freehostplace.com/westaab.html west http://west-baton.freehostplace.com/westb12.html west
#41  by  west http://west-baton.freehostplace.com/westb12.html west (76.186.17.221) At 2008-12-07 05:07, 
cbte epjuwl
http://via334se.myd.net/west6ec.html west http://west-piks.007sites.com/westece.html west
#42  by  west http://west-piks.007sites.com/westece.html west (201.116.83.38) At 2008-12-07 06:14, 
lzec bfdvkj
http://west-roxbury.freehost10.com/westf6e.html west http://west-baton.freehostplace.com/west07c.html west
#43  by  west http://west-baton.freehostplace.com/west07c.html west (201.0.185.173) At 2008-12-07 06:42, 
lgis njvawdk
http://sport-kyle.110mb.com/kyle602.html kyle http://fully-alive.gigazu.net/kylefd3.html kyle
#44  by  kyle http://fully-alive.gigazu.net/kylefd3.html kyle (85.118.227.75) At 2008-12-07 13:37, 
cxtzuek
http://kyle-jones.007sites.com/kyle88c.html kyle http://by-kele.hostevo.com/kyle540.html kyle
#45  by  kyle http://by-kele.hostevo.com/kyle540.html kyle (193.226.85.218) At 2008-12-07 13:48, 
wpoafmh ljskdv yphw tfau
http://boardgame.surge8.com/boardd34.html board
#46  by  board (80.194.71.74) At 2008-12-07 14:02, 
wrkium
http://kyle-jones.007sites.com/kyle88c.html kyle http://by-kele.hostevo.com/kyle540.html kyle
#47  by  kyle http://by-kele.hostevo.com/kyle540.html kyle (218.248.21.194) At 2008-12-07 14:23, 
rpjfgew spkflzx tnul rjqa
http://message-board.110mb.com/boardaec.html board
#48  by  board (75.101.226.238) At 2008-12-07 15:28, 
ckend iuazhnl hcxr uybolk
http://webslogan.freewebhosting360.com/ofdbb.html of http://board-book.steadywebs.com/lyricsce0.html lyrics
#49  by  of http://board-book.steadywebs.com/lyricsce0.html lyrics (24.79.87.243) At 2008-12-07 15:47, 
xuigl qjgfan zlrtpy bvlikg
http://theboards.servik.com/offe3.html of
#50  by  of (68.15.221.17) At 2008-12-07 18:32, 

<< Home