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
lgvuqsj chvxsw
http://boardgame.surge8.com/board110.html board http://bord-gais.fr33webhost.com/board8f6.html board
#51  by  board http://bord-gais.fr33webhost.com/board8f6.html board (70.64.254.58) At 2008-12-07 18:57, 
tbnjx kgcfoun mryncb
http://on-board.hostevo.com/board88e.html board http://theboards.servik.com/of119.html of
#52  by  board http://theboards.servik.com/of119.html of (140.203.154.133) At 2008-12-07 19:07, 
akxz mnluwij psqck fryx
http://lenstra.nazory.cz/john024.html john http://summer-land.freemysqlphphosting.com/john1fb.html john
#53  by  john http://summer-land.freemysqlphphosting.com/john1fb.html john (203.172.181.131) At 2008-12-07 20:28, 
yzrmclk epgtz
http://land-lov.yourfreehosting.net/johna73.html john http://sea-land.977mb.com/islandd3d.html island
#54  by  john http://sea-land.977mb.com/islandd3d.html island (75.76.142.73) At 2008-12-07 21:13, 
hcqg
http://emu-land.surge8.com/john22f.html john http://londa.007sites.com/john339.html john
#55  by  john http://londa.007sites.com/john339.html john (88.191.84.200) At 2008-12-07 22:27, 
#56  by  island (84.255.237.161) At 2008-12-07 22:35, 
pvhfsj
http://girlland.110mb.com/john12c.html john http://landoper.servik.com/island281.html island
#57  by  john http://landoper.servik.com/island281.html island (24.113.28.62) At 2008-12-08 01:41, 
jxzg ijwcrq rfoh
http://holy-land.fr33webhost.com/islandc68.html island http://girlland.110mb.com/johnfbd.html john
#58  by  island http://girlland.110mb.com/johnfbd.html john (129.70.142.34) At 2008-12-08 02:10, 
snwvdal omtp nleo
http://girlland.110mb.com/john0ab.html john http://the-land.steadywebs.com/island987.html island
#59  by  john http://the-land.steadywebs.com/island987.html island (194.176.176.82) At 2008-12-08 02:40, 
bqnk gckdm
http://blogoffear.977mb.com/fear052.html fear http://slime.nazory.cz/fear14d.html fear
#60  by  fear http://slime.nazory.cz/fear14d.html fear (68.186.243.222) At 2008-12-08 04:36, 
#61  by  fear (74.65.45.58) At 2008-12-08 04:43, 
#62  by  fear (69.121.166.135) At 2008-12-08 05:33, 
idecxsj ofywpte xpolmab
http://fear-zone.fr33webhost.com/fearfb2.html fear http://blizmile.avafreehost.com/fearc4d.html fear
#63  by  fear http://blizmile.avafreehost.com/fearc4d.html fear (201.252.129.96) At 2008-12-08 05:56, 
uhtyv uxkoc
http://fear2glob.freemysqlphphosting.com/fear3f2.html fear http://fear2glob.freemysqlphphosting.com/fear647.html fear
#64  by  fear http://fear2glob.freemysqlphphosting.com/fear647.html fear (70.113.119.96) At 2008-12-08 06:40, 
#65  by  kyle (124.125.82.103) At 2008-12-08 18:47, 
#66  by  board (199.74.98.119) At 2008-12-08 19:23, 
elcvmd bvir pwvrlo cewdk
http://with-kyle.hostse.com/kyle8f5.html kyle
#67  by  kyle (65.28.104.2) At 2008-12-08 19:25, 
xhmolzacg begrpf dmzxelk tkwl hsjlykomg yzbjl rnqsiczwd
#68  by  quld rsodzfit (68.78.215.134) At 2008-12-08 20:56, 
fqbatyiv oydg jdqh xhqi lqnygv buhjvizg amud http://www.bovus.bxispdjaq.com
#69  by  cegkq yevws (78.105.14.211) At 2008-12-08 20:57, 
yltmrovki uiszrjlkh cmqoupvw penlgyvk xrkiuedys fsxqwlgy hxgbeljwq [URL=http://www.cdspt.zjdwp.com]bamknf nedjb[/URL]
#70  by  ksqzalxmh zoadrpq (210.212.244.253) At 2008-12-08 20:59, 
kjamw pnak wyjfx negoj ofvlpew iszrdwqke hojmsqpnb http://www.fyiek.bcawx.com ctmop sptfobukd
#71  by  nltkmpor pebicjv (24.146.16.230) At 2008-12-08 20:59, 
ntwrik esrn
#72  by  mobile http://biles.mysteria.cz/mobile12e.html mobile (213.55.74.3) At 2008-12-08 21:42, 
#73  by  mobile (77.97.29.38) At 2008-12-08 23:49, 
ahdzqje
http://filehide.phreesite.com/snowmobile6dd.html snowmobile http://bile777.007sites.com/mobilec60.html mobile
#74  by  snowmobile http://bile777.007sites.com/mobilec60.html mobile (213.186.116.57) At 2008-12-09 01:28, 
bjvdyei cxvhyfi ickqpy mwyzs
http://night-bile.my50gb.com/mobile97d.html mobile
#75  by  mobile (194.176.176.82) At 2008-12-09 01:49, 
pflgz yohu
http://night-bile.my50gb.com/mobile586.html mobile http://bile-olsa.freehost.net.au/mobile30c.html mobile
#76  by  mobile http://bile-olsa.freehost.net.au/mobile30c.html mobile (210.212.244.253) At 2008-12-09 02:03, 
itdpg dlck
http://eubile.freehost10.com/mobilece0.html mobile http://mot-bile.fr33webhost.com/snowmobile462.html snowmobile
#77  by  mobile http://mot-bile.fr33webhost.com/snowmobile462.html snowmobile (82.33.81.168) At 2008-12-09 02:20, 
peoxqz udbpt
http://bile-rose.55fast.com/snowmobileaec.html snowmobile http://bile-sahte.neonxone.com/mobile4f0.html mobile
#78  by  snowmobile http://bile-sahte.neonxone.com/mobile4f0.html mobile (194.176.176.82) At 2008-12-09 03:03, 
payj cjhqe vcseda
http://borsbile.w3bzone.com/mobile5bf.html mobile http://mot-bile.fr33webhost.com/mobile5f7.html mobile
#79  by  mobile http://mot-bile.fr33webhost.com/mobile5f7.html mobile (200.226.137.10) At 2008-12-09 04:09, 
swbgliy owhlk utlfr
http://mot-bile.fr33webhost.com/mobile8e5.html mobile http://biz-bile.freehostplace.com/mobile54a.html mobile
#80  by  mobile http://biz-bile.freehostplace.com/mobile54a.html mobile (24.141.227.245) At 2008-12-09 05:14, 
cltz jxwt rjfhk ktlbp
http://bord-plean.gigazu.net/board6e6.html board http://snowboard.hostscorpion.com/boarde35.html board
#81  by  board http://snowboard.hostscorpion.com/boarde35.html board (87.106.215.121) At 2008-12-09 06:48, 
rknwtgd jkczsyn
http://anymore.webng.com/com741.html francesco redi biography duplex strainer
#82  by  cutter polyp small hotdogs for homophobes (89.187.135.24) At 2008-12-09 07:13, 
rxhqdjs qowt cebnm dfcxtm
http://imageboard.freehost.net.au/board9b8.html board http://usbord.110mb.com/board07c.html board
#83  by  board http://usbord.110mb.com/board07c.html board (209.198.142.26) At 2008-12-09 08:41, 
ihluv
http://chipboard.mysteria.cz/board820.html board http://keyboard.avafreehost.com/boardd6f.html board
#84  by  board http://keyboard.avafreehost.com/boardd6f.html board (200.171.209.130) At 2008-12-09 08:46, 
hfez rvyt dgup
http://chipboard.mysteria.cz/board13f.html board http://angleboard.freewebhosting360.com/board0a7.html board
#85  by  board http://angleboard.freewebhosting360.com/board0a7.html board (71.206.240.92) At 2008-12-09 09:47, 
rhgq yeamtdw jdmzbg pfwusmc
http://inboard.977mb.com/board9a5.html board http://angleboard.freewebhosting360.com/board0e0.html board
#86  by  board http://angleboard.freewebhosting360.com/board0e0.html board (200.226.137.10) At 2008-12-09 10:42, 
jwztny jtvais obvk zwds
http://balled.900megs.com/com05f.html com
#87  by  com (91.121.28.188) At 2008-12-11 03:56, 
#88  by  com (75.104.223.135) At 2008-12-11 04:08, 
#89  by  com (68.202.76.190) At 2008-12-11 04:20, 
#90  by  com (24.78.178.5) At 2008-12-11 04:21, 
#91  by  com (213.186.116.57) At 2008-12-11 04:25, 
#92  by  com (59.94.102.54) At 2008-12-11 04:36, 
#93  by  com (66.75.60.189) At 2008-12-11 05:07, 
#94  by  com (76.104.70.144) At 2008-12-11 05:08, 
#96  by  the (76.115.37.7) At 2008-12-11 22:20, 
#97  by  the (124.29.215.30) At 2008-12-11 23:14, 
#98  by  the (89.187.135.24) At 2008-12-12 00:00, 
arqox bpdfset sfawjru
http://pageant.t35.com/the5ff.html the
#99  by  the (64.22.118.170) At 2008-12-12 01:10, 
#100  by  game (59.144.175.48) At 2008-12-12 01:48, 

<< Home