最新常用的网路工具ppt课件.ppt
《最新常用的网路工具ppt课件.ppt》由会员分享,可在线阅读,更多相关《最新常用的网路工具ppt课件.ppt(57页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、常用的网路管理工具常用的网路管理工具報告大綱l1.動機l2.自動寄信(Sendmail.pm)l3.IP管理資訊查詢(Rwhoisd)l4.Abusecomplain的自動通告l5.區網異常訊務的偵測與通告l6.結語與展望2.自動寄信(cont.)lMail:sendmail自動寄信程式#!/usr/bin/perlusestrict;useMail:Sendmail;my$ip_addr=140.115.11.1;my$email_mgr=center7cc.ncu.edu.tw,yangayang.tyc.edu.tw;my$boundary=;print$ip_addr,$email_m
2、gr,n;my%mail=(smtp=localhost,To=$email_mgr,From=center7ayang.tyc.edu.tw,subject=Detect Spamming from$ip_addr,Content-Type=text/plain;charset=Big5,);my$body.=$boundaryn;$body.=TheIPmachineoveryourcampuswiththeaddressof;$body.=$ip_addr;$body.=machinemaybeanOpenMailRelayOrSpamsender.n;$body.=$boundaryn
3、;$body.=Pleasehelpownerof;$body.=themachinen;$body.=tocheckandfixitsOpenMailRelayProblemorPatchn;$body.=Pleasereferthedetailtrafficlogonnn;$body.=http:/163.25.255.16/yang/Moe/index_ab_spamsrc.phpn;$body.=(user:guest&password:guest)n;$body.=ManyThanks!nFrom:SusnaYangnnn;$mailbody=$body;sendmail(%mail
4、)|printErrorsendingmail:$Mail:Sendmail:errorn;3.IP管理資訊查詢:RwhoisdlIP管理資訊的建立(a)IP管理資訊來源l通訊網頁Moe區網管理人(http:/140.111.1.22/tanet/abuse.html)Moeabuse主機(http:/140.111.1.22/tanet/spam.html)Tyc區網管理人區網管理人(http:/noc5.tyc.edu.tw/disp.html)NcuSnmgclubhttps:/website.cc.ncu.edu.tw/sysmgr/index.php?section=member)連
5、線學校的IP使用列表宿舍用戶IP列表Network-Name:中央大學IP-Network:140.115.26.0/24Admin-Contact:吳維漢Address:中央大學:Tel:65136Updated-By:weihanmath.ncu.edu.tw,92201057cc.ncu.edu.tw,Created:200605121041-Network-Name:中央大學IP-Network:140.115.30.0/24Admin-Contact:陳鎰鋒Address:中央大學:Tel:65340Updated-By:opphy.ncu.edu.tw,92202042cc.ncu
6、.edu.tw,92202047cc.ncu.edu.tw,Created:200605121041-Network-Name:中央大學IP-Network:140.115.31.0/24Admin-Contact:陳鎰鋒Address:中央大學:Tel:65340宿舍用戶IP列表93404036cc.ncu.edu.tw,140.115.210.219,93523006cc.ncu.edu.tw,140.115.227.46,93426019cc.ncu.edu.tw,140.115.220.137,93229012cc.ncu.edu.tw,140.115.231.201,u0140600
7、cc.ncu.edu.tw,140.115.227.197,93322014cc.ncu.edu.tw,140.115.221.39,93223027cc.ncu.edu.tw,140.115.220.8,93521004cc.ncu.edu.tw,140.115.221.76,93521011cc.ncu.edu.tw,140.115.222.75,93428011cc.ncu.edu.tw,140.115.222.62,93221006cc.ncu.edu.tw,140.115.223.14,92323090cc.ncu.edu.tw,140.115.221.159,u1601044cc.
8、ncu.edu.tw,140.115.231.202,u1601035cc.ncu.edu.tw,140.115.216.34,92303056cc.ncu.edu.tw,140.115.234.11,93404040cc.ncu.edu.tw,140.115.208.25,93404033cc.ncu.edu.tw,140.115.208.23,u0062300cc.ncu.edu.tw,140.115.201.89,u0113900cc.ncu.edu.tw,140.115.202.175,Network-Name:中央宿網IP-Network:140.115.232.3Admin-Con
9、tact:92524017cc.ncu.edu.twAddress:NCUDormUserUpdated-By:92524017cc.ncu.edu.twCreated:200405051149-Network-Name:中央宿網IP-Network:140.115.224.1Admin-Contact:u9046700cc.ncu.edu.twAddress:NCUDormUserUpdated-By:u9046700cc.ncu.edu.twCreated:200405051149-Network-Name:中央宿網IP-Network:140.115.219.3Admin-Contact
10、:u0078200cc.ncu.edu.twAddress:NCUDormUserUpdated-By:u0078200cc.ncu.edu.twCreated:200405051149IP管理資訊查詢:Rwhoisd(cont.)(b)IPRoutingTable&ResponsiblemanagerslSNMPipRouterMIB&Tyc_manager_listsnmpwalk-v1-ccommunity 203.72.244.221.1.3.6.1.2.1.4.21.1.11$infilesnmpwalk-v1-ccommunity 203.72.244.221.1.3.6.1.2.
11、1.4.21.1.7$infilesnmpwalk:fetchaSNMPsub-treedatal需安裝net-snmp3.IP管理資訊查詢:Rwhoisd(cont.)(c)DataextractionlWgetwebcontent/usr/local/bin/wget http:/140.111.1.22/tanet/spam.html-O /netflow/spam/spam.html.1lExtractthewanteddataentriesif(/(0-9+.0-9+.0-9+.0-9+)(S+)s+(S+)s+(S+)s+(S+)s+/)if($4eq“桃園區網-中央大學”)pri
12、ntf(FNO%s,%sn,$1,$4);lConvertthetextfileCorrespondencetorwhoisddataschemesnmpwalk-v1 -c community 203.72.244.221.1.3.6.1.2.1.4.21.1.11$infileRFC1213-MIB:ipRouteMask.210.60.223.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.224.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.226.0=Ip
13、Address:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.227.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.228.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.229.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.233.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.234.0=Ip
14、Address:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.235.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.236.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.239.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteMask.210.60.240.0=IpAddress:255.255.255.0RFC1213-MIB:ipRouteNextHop.203.72.219.0
15、=IpAddress:203.71.2.21RFC1213-MIB:ipRouteNextHop.203.72.220.0=IpAddress:203.71.2.21RFC1213-MIB:ipRouteNextHop.203.72.221.0=IpAddress:203.71.2.21RFC1213-MIB:ipRouteNextHop.203.72.226.0=IpAddress:203.72.244.221RFC1213-MIB:ipRouteNextHop.203.72.244.208=IpAddress:203.72.244.222RFC1213-MIB:ipRouteNextHop
16、.210.59.40.0=IpAddress:203.71.2.133RFC1213-MIB:ipRouteNextHop.210.59.70.0=IpAddress:203.72.244.221RFC1213-MIB:ipRouteNextHop.210.60.239.0=IpAddress:203.71.2.37RFC1213-MIB:ipRouteNextHop.210.60.240.0=IpAddress:203.71.2.37RFC1213-MIB:ipRouteNextHop.210.70.26.0=IpAddress:203.71.2.121RFC1213-MIB:ipRoute
17、NextHop.210.70.27.0=IpAddress:203.71.2.121RFC1213-MIB:ipRouteNextHop.210.70.28.0=IpAddress:203.71.2.121snmpwalk-v1-c community 203.72.244.221 .1.3.6.1.2.1.4.21.1.7$infileInterf_IP=Sub_network_IP:NetMask:Segments-203.71.2.105=203.72.33.0:(255.255.255.0):1,203.71.2.74=203.72.100.0:(255.255.252.0):4,20
18、3.72.104.0:(255.255.255.0):1,203.71.2.195=203.68.248.0:(255.255.254.0):2,192.83.196.180=10.11.1.0:(255.255.255.252):1,163.25.20.0:(255.255.255.0):1,163.25.120.0:(255.255.255.0):1,163.25.121.0:(255.255.255.0):1,163.25.122.0:(255.255.254.0):2,163.25.124.0:(255.255.252.0):4,163.25.128.0:(255.255.252.0)
19、:4,163.25.132.0:(255.255.254.0):2,203.68.50.0:(255.255.255.0):1,203.72.226.0:(255.255.254.0):2,210.59.70.0:(255.255.255.0):1,203.71.2.197=210.60.236.0:(255.255.255.0):1,203.71.2.206=203.72.116.0:(255.255.255.0):1,203.71.2.45,58.99.32.0,255.255.240.0,16 203.71.2.45,58.99.48.0,255.255.240.0,16 203.71.
20、2.45,58.99.64.0,255.255.240.0,16 203.71.2.45,58.99.80.0,255.255.240.0,16 203.71.2.45,58.99.96.0,255.255.240.0,16 203.71.2.45,58.99.112.0,255.255.240.0,16192.72.123.69,59.104.0.0,255.255.224.0,32192.72.123.69,59.104.32.0,255.255.224.0,32192.72.123.69,59.104.64.0,255.255.224.0,32192.72.123.69,59.104.9
21、6.0,255.255.224.0,32192.72.123.69,59.104.128.0,255.255.224.0,32192.72.123.69,59.104.160.0,255.255.224.0,32192.72.123.69,59.104.192.0,255.255.224.0,32192.72.123.69,59.104.224.0,255.255.224.0,32192.72.123.69,59.105.0.0,255.255.224.0,32Tyc_manager檔203.72.244.237;中央大學(1);戴元任;center24cc.ncu.edu.tw;422715
22、157504;4252561;桃園縣(320)中壢市中大路300號;203.71.2.237;元智大學;蔣國強;abusesaturn.yzu.edu.tw;4638800325;桃園縣(320)中壢市內壢遠東路135號;203.71.2.61;中原大學;葉平;yehcycu.edu.tw,tjlcycu.edu.tw;45631712910;2652999;桃園縣(320)中壢市普仁里二十二號;203.71.2.5;中正理工學院;鄭大力;jengccit.edu.tw;3809331;3806737;桃園縣(335)大溪鎮員樹林中正理工學院;203.71.2.199;國防大學;鄭大力;jen
23、gccit.edu.tw;3809331;3806737;桃園縣(335)大溪鎮員樹林中正理工學院;203.71.2.145;國防大學;黃麗燕;yanndu.edu.tw;4890513;4890513;桃園縣(325)龍潭鄉中興路56號;Network-Name:中央大學(1)IP-Network:140.115.0.0/16Admin-Contact:戴元任Address:中央大學(1)Tel:422715157504Updated-By:center24cc.ncu.edu.tw,ywchence.ncu.edu.twCreated:200606051537-Network-Name:中
24、正理工學院IP-Network:140.132.0.0/16Admin-Contact:鄭大力Address:中正理工學院Tel:3809331Updated-By:jengccit.edu.twCreated:200606051537-Network-Name:中正理工學院IP-Network:140.132.128.0/24Admin-Contact:鄭大力Address:中正理工學院Tel:3809331Updated-By:jengccit.edu.tw3.IP管理資訊查詢:Rwhoisd(cont.)lIP管理資訊查詢clientyang#telnet163.25.255.10432
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 最新 常用 网路 工具 ppt 课件
限制150内