防火墙FIREWALL-创新互联

实验

成都创新互联专注于企业成都营销网站建设、网站重做改版、长子网站定制设计、自适应品牌网站建设、成都h5网站建设商城开发、集团公司官网建设、成都外贸网站建设公司、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为长子等各大城市提供网站开发制作服务。

                防火墙   FIREWALL

           防火墙   FIREWALL

思路与配置

        1.配置g0

          interface g0

             no shutdown

             nameif inside

             ip address 192.168.1.254 255.255.255.0

             security-level 100


             防火墙   FIREWALL

防火墙   FIREWALL

             配置g1

               interface g1

                  no shutdown

                  nameif outside

                  ip address 192.168.8.254 255.255.255.0

                  security-level 0

           防火墙   FIREWALL防火墙   FIREWALL

             配置g2

          interface g2

                  no shutdown

                  nameif DMZ

               ip address 192.168.3.254 255.255.255.0

                  security-level 50

           防火墙   FIREWALL防火墙   FIREWALL

     2.配置AR1

          配置0端口 ip  192.168.1.1 255.255.255.0

           配置1端口 ip  10.1.1.254 255.255.255.0

           配置2端口 ip  10.2.2.254 255.255.255.0

        配置静态浮动路由

          ip route-static 0.0.0.0 0.0.0.0 192.168.1.254


           防火墙   FIREWALL防火墙   FIREWALL

     3.配置云

        access-list out-to-in permit ip host 192.168.8.1  host 192.168.3.100

        access-group out-to-in in interface outside


           防火墙   FIREWALL

防火墙   FIREWALL

    此时

          DMZ发布Web服务器,client2可以访问server3

可以实现

                        防火墙   FIREWALL       防火墙   FIREWALL

    配置 路由条目

            route inside 10.1.1.0 255.255.255.0 192.168.1.1

            route inside 10.2.2.0 255.255.255.0 192.168.1.1


        防火墙   FIREWALL

                防火墙   FIREWALL

    使用命令show conn detail 查看conn

配置server2的FTP

      防火墙   FIREWALL防火墙   FIREWALL

配置server3的FTP 

        防火墙   FIREWALL

配置client1  FTP

                防火墙   FIREWALL防火墙   FIREWALL

 配置client1   FTP

防火墙   FIREWALL

 查看 show conn detail

     防火墙   FIREWALL  防火墙   FIREWALL

        分别查看ASA和AR的路由表

     ASA:

      防火墙   FIREWALL 防火墙   FIREWALL 

     AR1:

防火墙   FIREWALL防火墙   FIREWALL

------------------------------------------------------------

配置云

   access-list 111 deny tcp any host 192.168.3.1 eq 80

   access-group 111 in interface DMZ


防火墙   FIREWALL    

防火墙   FIREWALL

配置ACL禁止client3访问server2

  防火墙   FIREWALL防火墙   FIREWALL

=======================================================================================================================


实验:1

防火墙   FIREWALL

防火墙   FIREWALL

思路与配置:

     1.

   防火墙   FIREWALL

   防火墙   FIREWALL防火墙   FIREWALL

防火墙   FIREWALL

 进入crt

      防火墙   FIREWALL防火墙   FIREWALL

connect进入  先清除以前配置:

     clear configuration all

     配置进口安全等级及ip

        interface g0

             nameif inside


             no shutdown

             ip address 192.168.1.254

             securty-level 100


        防火墙   FIREWALL

        防火墙   FIREWALL

          interface g1

             nameif outside


             no shutdown

             ip address 192.168.8.254

             securty-level 0

            防火墙   FIREWALL  防火墙   FIREWALL

     此时可以达到实验要求

 如需要client2 访问server1  则可以配置ACL

        access-list out-to-in permit ip host 192.168.8.1 host 192.168.1.100

                                      仅为源ip


        access-list out-to-in permit ip host 192.168.8.0 host 192.168.1.100

                                      为一个网段

        access-group out-to-in in interface outside


实验2

        pc1ping通server 2/client 2

        防火墙   FIREWALL防火墙   FIREWALL

配置ACL

        access-list ICMP permit icmp any any

        access-group ICMP in interface outside


      防火墙   FIREWALL

防火墙   FIREWALL

实验3  配置静态和默认路由

        防火墙   FIREWALL防火墙   FIREWALL


配置  R1

        0端口:ip 192.168.1.1 24


        1端口:ip 10.1.1.254 24

        2端口:ip 10.2.2.254 24


        防火墙   FIREWALL

     配置云

          route inside 10.1.1.0 255.255.255.0 192.168.1.1


          route inside 20.1.1.0 255.255.255.0 192.168.1.1

        防火墙   FIREWALL防火墙   FIREWALL

     R1配置静态路由

        ip route-static 0.0.0.0 0.0.0.0  192.168.1.254

        防火墙   FIREWALL防火墙   FIREWALL


     此时可以ping通


实验5  控制出站链接流量  禁止10.1.1.0/24 的流量出站

     配置ACL

          access-list in-to-out deny ip 10.1.1.0 255.255.55.0 any

          access-list in-to-out permit ip any any

          acess-group in-to-out in interface inside


           防火墙   FIREWALL防火墙   FIREWALL

   此时10.1.1.0网段流量出不去


防火墙   FIREWALL防火墙   FIREWALL

PC机可以访问服务机

     先删除防火墙中的dhcp配置

        no dhcp auto-config outside

        no dhcp address 192.168.1.5-192.168.1.35 inside

        no dhcp enable inside

        no ip address dhcp


        防火墙   FIREWALL防火墙   FIREWALL

     在vlan2 中配置ip 200.1.1.254 255.255.255.0

        防火墙   FIREWALL防火墙   FIREWALL

     配置0端口为vlan1   1端口为vlan2

        防火墙   FIREWALL防火墙   FIREWALL

        防火墙   FIREWALL防火墙   FIREWALL

        配置ACL

            access-list 111 permit tcp any host 192.168.1.1 eq 80

            access-group 111 in interface outside


              防火墙   FIREWALL防火墙   FIREWALL



实验  多区域防火墙

        防火墙   FIREWALL防火墙   FIREWALL

     在实验1的配置基础上在进行配置

        配置

          interface g2

          nameif DMZ


          no shutdown

          ip address 192.168.3.254 255.255.255.0

          security-level 50


             防火墙   FIREWALL防火墙   FIREWALL

        高级可以访问低级   低级不能访问高级


        client1 可以访问 server2  server3

        client3 可以访问 server3

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


分享标题:防火墙FIREWALL-创新互联
文章地址:http://pwwzsj.com/article/ccsioc.html