当前位置: 首页 > news >正文

ensp安全策略实验

一、拓扑图和要求

在这里插入图片描述

二、接口设置

g1/0/0

在这里插入图片描述

新增子接口

g1/0/1.1

在这里插入图片描述

g1/0/1.2

在这里插入图片描述

命令行

[USG6000V1]int g 1/0/0
[USG6000V1-GigabitEthernet1/0/0]ip address 10.0.0.254 255.255.255.0
[USG6000V1-GigabitEthernet1/0/0]firewall zone dmz
[USG6000V1-zone-dmz]add interface GigabitEthernet 1/0/0[USG6000V1]int gi 1/0/1.1
[USG6000V1-GigabitEthernet1/0/1.1]vlan-type dot1q 2
[USG6000V1-GigabitEthernet1/0/1.1]ip address 192.168.1.126 255.255.255.128
[USG6000V1-GigabitEthernet1/0/1.1]alias g1/0/1.1
[USG6000V1-GigabitEthernet1/0/1.1]service-manage ping permit [USG6000V1]int  gi1/0/1.2
[USG6000V1-GigabitEthernet1/0/1.2]vlan-type dot1q 3
[USG6000V1-GigabitEthernet1/0/1.2]alias gi1/0/1.2
[USG6000V1-GigabitEthernet1/0/1.2]service-manage ping permit [USG6000V1]firewall zone trust
[USG6000V1-zone-trust]add interface gi1/0/1.1
[USG6000V1-zone-trust]add interface gi1/0/1.2

测试

在这里插入图片描述

在这里插入图片描述

安全策略

2、办公区pc在工作日时间(周一至周五,早8到晚6)可以正常访问OA Server,其他时间不允许

建立新安全策略并添加源/目的地址

在这里插入图片描述

命令行

[USG6000V1]ip address-set BG type object     
[USG6000V1-object-address-set-BG]address 192.168.1.0 mask 25    
[USG6000V1]ip address-set OA type object
[USG6000V1-object-address-set-OA]address 10.0.0.1 mask 32[USG6000V1]time-range working-time     
[USG6000V1-time-range-working-time]period-range 08:00:00 to 18:00:00 working-day 创建安全策略
[USG6000V1]security-policy  
[USG6000V1-policy-security]rule name policy_1   
[USG6000V1-policy-security-rule-policy_1]description BG to OA  
[USG6000V1-policy-security-rule-policy_1]source-zone trust
[USG6000V1-policy-security-rule-policy_1]destination-zone dmz 
[USG6000V1-policy-security-rule-policy_1]source-address address-set BG 
[USG6000V1-policy-security-rule-policy_1]destination-address address-set OA 
[USG6000V1-policy-security-rule-policy_1]time-range working-time
[USG6000V1-policy-security-rule-policy_1]action permit 

测试

  • 时间为2025/7/31 15:30(周四)
    在这里插入图片描述

  • 时间为2025/7/31 20:30(周四)
    在这里插入图片描述

3、办公区pc可以在任意时刻访问Web Server

安全策略

在这里插入图片描述

命令行

[USG6000V1]ip address-set Web type object 
[USG6000V1-object-address-set-Web]address 10.0.0.2 mask 32[USG6000V1]security-policy 
[USG6000V1-policy-security]rule name policy_2
[USG6000V1-policy-security-rule-policy_2]description BG to Web
[USG6000V1-policy-security-rule-policy_2]source-zone trust 
[USG6000V1-policy-security-rule-policy_2]destination-zone dmz 
[USG6000V1-policy-security-rule-policy_2]source-address address-set BG 
[USG6000V1-policy-security-rule-policy_2]destination-address address-set Web 
[USG6000V1-policy-security-rule-policy_2]action permit 

测试

  • 时间为2025/7/31 15:30(周四)
    在这里插入图片描述

  • 时间为2025/7/31 20:30(周四)
    在这里插入图片描述

4、生产区pc 可以在任意时刻访问OA Server,但是不能访问Web Server

安全策略

在这里插入图片描述

命令行

[USG6000V1]ip address-set SC type object 
[USG6000V1-object-address-set-Web]address 192.168.1.128 mask 25[USG6000V1]security-policy 
[USG6000V1-policy-security]rule name policy_3
[USG6000V1-policy-security-rule-policy_2]description SC to OA
[USG6000V1-policy-security-rule-policy_2]source-zone trust 
[USG6000V1-policy-security-rule-policy_2]destination-zone dmz 
[USG6000V1-policy-security-rule-policy_2]source-address address-set SC 
[USG6000V1-policy-security-rule-policy_2]destination-address address-set OA 
[USG6000V1-policy-security-rule-policy_2]action permit 

测试

  • ping OA
    在这里插入图片描述

  • ping Web
    在这里插入图片描述

5、特例:生产区pc3可以在每周一早10到早11访问Web Server,用来更新企业最新产品信息

安全策略

在这里插入图片描述

在这里插入图片描述

命令行

[USG6000V1]time-range update_time
[USG6000V1-time-range-update_time]period-range 10:00:00 to 11:00:00 Mon 
[USG6000V1]security-policy
[USG6000V1-policy-security]rule name policy_4
[USG6000V1-policy-security-rule-policy_4]description SC_update
[USG6000V1-policy-security-rule-policy_4]source-zone trust 
[USG6000V1-policy-security-rule-policy_4]destination-zone dmz 
[USG6000V1-policy-security-rule-policy_4]source-address 192.168.1.130  32
[USG6000V1-policy-security-rule-policy_4]destination-address address-set Web 
[USG6000V1-policy-security-rule-policy_4]time-range update_time
[USG6000V1-policy-security-rule-policy_4]action permit 

测试

  • 时间为2025/7/31 15:30(周四)
    在这里插入图片描述

  • 时间为2025/8/4 10:15 (周一)
    在这里插入图片描述

http://www.lryc.cn/news/605492.html

相关文章:

  • 【工具】NVM完全指南:Node.js版本管理工具的安装与使用详解
  • 嵌入式仿真教学的革新力量:深圳航天科技创新研究院引领高效学习新时代
  • 【n8n】如何跟着AI学习n8n【03】:HTTPRequest节点、Webhook节点、SMTP节点、mysql节点
  • 从“碎片化”到“完美重组”:IP报文的分片艺术
  • mysql笔记02:DML插入、更新、删除数据
  • 【读书笔记】Design Patterns (1994)✅
  • 微软发布Microsoft Sentinel数据湖国际版
  • JVM之【Java虚拟机概述】
  • Python实现调整矩阵维度: view
  • 【13】大恒相机SDK C#开发 —— Fom1中实时处理的8个图像 实时显示在Form2界面的 pictureBox中
  • 磁盘坏道检测工具在美国服务器硬件维护中的使用规范
  • MVS相机+YOLO检测方法
  • 【03】大恒相机SDK C#开发 —— 回调采集图像,关闭相机
  • Java WEB技术-序列化和反序列化认识(SpringBoot的Jackson序列化行为?如何打破序列化过程的驼峰规则?如何解决学序列化循环引用问题?)
  • 学习笔记《区块链技术与应用》第三天 网络 难度
  • 详解分布式数据库缓存技术:高性能数据访问的基石
  • 如何在 macOS 上使用 dnsmasq 搭建本地 DNS 缓存/转发
  • 深度解析:基于Python构建的闲鱼自动化营销与信息发送机器人
  • IO流专题
  • linux运维学习第十三周
  • Linux 服务器性能优化:性能监控,系统性能调优,进程优先级,内核升级全解析
  • 前端框架Vue3(二)——Vue3核心语法之OptionsAPI与CompositionAPI与setup
  • AWS云安全审计终极实战指南:构建自动化安全防线
  • 数字化应急预案:构筑现代安全防线
  • Web3:在 VSCode 中使用 Vue 前端与已部署的 Solidity 智能合约进行交互
  • 从渠道渗透到圈层渗透:开源链动2+1模式、AI智能名片与S2B2C商城小程序的协同创新路径研究
  • 【09】大恒相机SDK C#开发 ——库函数 IntPtr ConvertToRGB24详细解释 及 示例
  • 【JEECG】JVxeTable表格拖拽排序功能
  • 动态规划Day5学习心得
  • python的异步、并发开发