日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

      歡迎訪問 生活随笔!

      生活随笔

      當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

      编程问答

      ACL访问策略

      發布時間:2025/3/20 编程问答 28 豆豆
      生活随笔 收集整理的這篇文章主要介紹了 ACL访问策略 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

      ?

      ?

      R01是inside,lo0 為PC Client:11.11.11.1/24

      R03是outside,lo0為internet server:22.22.22.1/24

      R07是DMZ,lo0為DMZ區的server:33.33.33.1/24

      R02模擬防火墻:

      e0/0口為inside:1.1.1.1/30

      e0/1為outside:2.2.2.1/30

      s2/0為DMZ:3.3.3.1/30

      實驗目的:

      1、R01可以telnet 訪問DMZ區域的22.22.22.1;
      2、R03不能telnet訪問R07;
      3、R07不能主動訪問R01、R03;
      4、R07開啟ICMP。

      R2-FW#??? show run
      Building configuration...

      Current configuration : 2012 bytes
      !
      version 12.4
      service timestamps debug datetime msec
      service timestamps log datetime msec
      no service password-encryption
      !
      hostname R2-FW
      !
      boot-start-marker
      boot-end-marker
      !
      security passwords min-length 1
      !
      no aaa new-model
      clock timezone CST 8
      mmi polling-interval 60
      no mmi auto-configure
      no mmi pvc
      mmi snmp-timeout 180
      ip source-route
      !
      !????????
      !
      !
      ip cef
      no ip domain lookup
      no ipv6 traffic interface-statistics
      no ipv6 cef
      !
      multilink bundle-name authenticated
      !
      !
      !
      !
      !
      !
      !
      !
      !
      redundancy
      !
      !
      !
      !
      !????????
      !
      !
      !
      !
      interface Ethernet0/0
      ?ip address 1.1.1.1 255.255.255.0
      !
      interface Ethernet0/1
      ?ip address 3.3.3.1 255.255.255.248
      !
      interface Ethernet0/2
      ?no ip address
      ?shutdown
      !
      interface Ethernet0/3
      ?no ip address
      ?shutdown
      !
      interface Ethernet1/0
      ?no ip address
      ?shutdown
      !
      interface Ethernet1/1
      ?no ip address
      ?shutdown
      !
      interface Ethernet1/2
      ?no ip address
      ?shutdown
      !
      interface Ethernet1/3
      ?no ip address
      ?shutdown
      !
      interface Serial2/0
      ?ip address 2.2.2.1 255.255.255.0
      ?ip access-group test out
      ?serial restart-delay 0
      !
      interface Serial2/1
      ?no ip address
      ?shutdown
      ?serial restart-delay 0
      !
      interface Serial2/2
      ?no ip address
      ?shutdown
      ?serial restart-delay 0
      !
      interface Serial2/3
      ?no ip address
      ?shutdown
      ?serial restart-delay 0
      !
      interface Serial3/0
      ?no ip address
      ?shutdown
      ?serial restart-delay 0
      !
      interface Serial3/1
      ?no ip address
      ?shutdown
      ?serial restart-delay 0
      !
      interface Serial3/2
      ?no ip address
      ?shutdown
      ?serial restart-delay 0
      !????????
      interface Serial3/3
      ?no ip address
      ?shutdown
      ?serial restart-delay 0
      !
      ip forward-protocol nd
      !
      !
      no ip http server
      no ip http secure-server
      ip route 11.11.11.0 255.255.255.0 1.1.1.2
      ip route 22.22.22.0 255.255.255.0 2.2.2.2
      ip route 33.33.33.0 255.255.255.0 3.3.3.2
      !

      **************************************************************************
      ip access-list extended test
      ?permit tcp host 1.1.1.2 host 22.22.22.1 eq telnet?

      permit icmp any host 22.22.22.1

      //這里的1.1.1.2為R01的接口地址,實際操作中,可以更換為Client的IP地址,或者為對端提供的轉換的公網地址。

      **************************************************************************
      !
      !
      !
      !
      !
      !
      !????????
      control-plane
      !
      !
      line con 0
      ?exec-timeout 0 0
      ?password 222
      ?logging synchronous
      ?login
      line aux 0
      line vty 0
      ?password 111
      ?login
      line vty 1 4
      ?login
      !
      exception data-corruption buffer truncate
      end

      R2-FW#

      ?

      轉載于:https://blog.51cto.com/51you/665536

      與50位技術專家面對面20年技術見證,附贈技術全景圖

      總結

      以上是生活随笔為你收集整理的ACL访问策略的全部內容,希望文章能夠幫你解決所遇到的問題。

      如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。