亚洲AV无码乱码在线观看不卡|最新大伊香蕉精品视频在线|亚洲不卡av一区二区|国产美女无遮挡免费

登錄論壇 | 注冊會員 設(shè)為首頁 | 收藏本站
當前位置 : 首頁>軟件學院>網(wǎng)絡(luò)技術(shù)>網(wǎng)絡(luò)安全>正文
 
關(guān)閉路由器不需要的服務(wù)

http://m.yibo1263.com 2009/3/26 7:57:25  來源:東北IT網(wǎng)  編輯:葉子
 
在邊界路由器上關(guān)閉不安全和不需要的服務(wù),這里假設(shè)路由器有Ethernet0和Ethernet1端口

Router(config)# no cdp run//關(guān)閉CDP協(xié)議,CDP使用多播地址,能夠發(fā)現(xiàn)對端路由器的Hostname,硬件設(shè)備類型,IOS版本,三層接口地址,發(fā)送CDP多播的地址

Router(config)# no service tcp-small-servers
Router(config)# no service udp-small-servers//關(guān)閉TCP和UDP的一些無用的小服務(wù),這些小服務(wù)的端口小于19,通常用在以前的UNIX環(huán)境中,如chargen,daytime等

Router(config)# no service finger//finger通常用在UNIX中,用來確定誰登陸到設(shè)備上:telnet 192.168.1.254 finger
Router(config)# no ip finger//關(guān)閉對于finger查詢的應(yīng)答
Router(config)# no ip identd//關(guān)閉用戶認證服務(wù),一個設(shè)備發(fā)送一個請求到Ident接口(TCP 113), 目標會回答一個身份識別,如host名稱或者設(shè)備名稱
Router(config)# no ip source-route//關(guān)閉IP源路由,通過源路由,能夠在IP包頭中指定數(shù)據(jù)包實際要經(jīng)過的路徑
Router(config)# no ftp-server enable//關(guān)閉FTP服務(wù)
Router(config)# no ip http server//關(guān)閉HTTP路由器登陸服務(wù)
Router(config)# no ip http secure-server//關(guān)閉HTTPS路由器登陸服務(wù)

Router(config)# no snmp-server community public RO
Router(config)# no snmp-server community private RW
Router(config)# no snmp-server enable traps
Router(config)# no snmp-server system-shutdown
Router(config)# no snmp-server trap-auth
Router(config)# no snmp-server//關(guān)閉SNMP服務(wù)

Router(config)# no ip domain-lookup//關(guān)閉DNS域名查找
Router(config)# no ip bootp server//bootp服務(wù)通常用在無盤站中,為主機申請IP地址
Router(config)# no service dhcp//關(guān)閉DHCP服務(wù)
Router(config)# no service pad//pad服務(wù)一般用在X.25網(wǎng)絡(luò)中為遠端站點提供可靠連接
Router(config)# no boot network//關(guān)閉路由器通過TFTP加載IOS啟動
Router(config)# no service config//關(guān)閉路由器加載IOS成功后通過TFTP加載配置文件


Router(config)# interface ethernet 0
Router(config -if)# no ip proxy-arp//關(guān)閉代理ARP服務(wù)
Router(config -if)# no ip directed-broadcast//關(guān)閉直連廣播,因為直連廣播是能夠被路由的

Router(config -if)# no ip unreachable
Router(config -if)# no ip redirect
Router(config -if)# no ip mask-reply//關(guān)閉三種不可靠的ICMP消息
Router(config -if)# exit
注意:使用show ip interface查看接口啟用的服務(wù)


Router(config)# interface ethernet 0
Router(config -if)# shutdown//手動關(guān)閉沒有使用的接口
Router(config -if)# exit

Router(config)# service tcp-keepalives -in
Router(config)# service tcp-keepalives -out
//對活動的tcp連接進行監(jiān)視,及時關(guān)閉已經(jīng)空閑超時的tcp連接,通常和telnet,ssh一起使用


Router(config)# username admin1 privilege 15 secret geekboy
Router(config)# hostname jwy
Bullmastiff(config)# ip domain-name godupgod.com
Bullmastiff(config)# crypto key generate rsa
Bullmastiff(config)# line vty 0 4
Bullmastiff(config -line)# login local
Bullmastiff(config -line)# transport input ssh
Bullmastiff(config -line)# transport output ssh
//只允許其他設(shè)備通過SSH登陸到路由器
收藏】【打印】【進入論壇
  相關(guān)文章:

 
 
 
最新文章

搶先蘋果,消息稱英特爾芯片采用臺積電
三星揭曉業(yè)內(nèi)首款單條 512GB DDR5 內(nèi)存
vivo 高端新機爆料:120Hz 曲面屏 + 天
vivo Y21 在印度正式上市:Helio P35 芯
微星推出 GeForce RTX 3080 Sea Hawk X
消息稱三星 Galaxy Tab S8 系列平板將放
機械革命推出 F6 輕薄本:16 英寸全面屏
英特爾 12 代 Alder Lake CPU 600 系列
雷軍:向小米手機 1 首批用戶每人贈送價
小米李明談用戶被踢出 MIUI 測試版:大

推薦文章
1
2
3
4
5
6
7
8
9
10
叛逆嫩模性感寫真
宮如敏不雅照瘋傳 看張馨予韓一菲獸獸誰
不懼孔子搶位 阿凡達游戲影音配置推薦
2015第十七屆“東北安博會”火爆招商
第十六屆東北國際公共安全防范產(chǎn)品博覽
2016年第五屆中國國際商業(yè)信息化博覽會
2016年第五屆中國國際POS機及相關(guān)設(shè)備展
互聯(lián)網(wǎng)電視熟了嗎 2013最火電視深解析
桑達獲邀出席2015中國(廣州)國際POS機
寶獲利報名參加“2015年度中國POS機行業(yè)
八卦圖解 More>>
叛逆嫩模性感寫真 宮如敏不雅照瘋傳 看張馨予韓一菲
周偉童魔鬼身材日本性感寫真圖  聯(lián)想V360筆記本模特寫真
濉溪县| 靖宇县| 长垣县| 修文县| 佛坪县| 上杭县| 通州区| 堆龙德庆县| 朝阳县| 镇赉县| 澄迈县| 井陉县| 百色市| 东乡族自治县| 永年县| 山西省| 天台县| 卫辉市| 北海市| 千阳县| 和田县| 射阳县| 商洛市| 巢湖市| 乃东县| 黎平县| 余江县| 泰和县| 徐汇区| 彭山县| 澜沧| 共和县| 大关县| 阿勒泰市| 澄城县| 五莲县| 乌海市| 青阳县| 永康市| 大方县| 扎囊县|