system-view
# 切换为透明模式,执行后需要重启设备生效
firewall mode transparent
# 确认切换,输入Y
Y
# 保存配置后重启
save force
reboot
system-view
# 创建二层桥组,所有内网流量透传
bridge-group 1
port GigabitEthernet 1/0/1
port GigabitEthernet 1/0/2
# 配置管理IP(仅用于登录设备,不影响业务网段)
interface Vlan-interface 1
ip address 192.168.1.254 255.255.255.0
# 接口改为二层桥模式
interface GigabitEthernet 1/0/1
port link-mode bridge
interface GigabitEthernet 1/0/2
port link-mode bridge
# 划分安全域(trust内网双向流量)
security-zone name Trust
import interface GigabitEthernet 1/0/1 vlan all
import interface GigabitEthernet 1/0/2 vlan all
# 全局开启防病毒功能
anti-virus enable
# 仅对文件传输协议启用病毒扫描(HTTP/FTP/邮件)
anti-virus protocol http enable
anti-virus protocol ftp enable
anti-virus protocol smtp enable
anti-virus protocol pop3 enable
# 开启病毒日志,方便事后查询查杀记录
anti-virus logging enable
# 配置病毒库自动在线升级(设备需要能访问互联网)
anti-virus signature auto-update
# 放行设备自身访问外网更新病毒库的流量
security-policy ip
rule name FW-UPDATE
source-zone local
destination-zone trust
action pass
security-policy ip
# 1. 放行内网双向所有基础流量(DHCP、ARP、ICMP、单播业务)
rule name INTRA-LAN-PASS
source-zone trust
destination-zone trust
service udp
service tcp
service icmp
action pass
# 2. 单独放行DHCP广播报文(彻底避免终端拿不到IP)
rule name DHCP-ALLOW
source-zone trust
destination-zone trust
service udp destination-port eq bootps bootpc
action pass
# 3. 开启这条规则的病毒深度检测(所有匹配流量执行AV查杀)
anti-virus apply
anti-virus apply绑定到内网放行规则,所有内网上下行文件流量会自动匹配病毒库,发现病毒直接丢弃并生成日志。
# 查看全局病毒拦截统计
display anti-virus statistics
# 查看病毒实时日志
display logbuffer | include "病毒"
# 查看桥组成员,确认上下行接口已加入二层转发
display bridge-group 1
# 查看安全策略匹配计数,确认DHCP规则有流量
display security-policy ip statistics
# 测试病毒库升级连通性
ping dns.h3c.com
anti-virus apply,否则不会执行病毒扫描;port trunk permit vlan all,安全域导入对应 VLAN;anti-virus enable,在内网放行安全策略绑定anti-virus apply实现全流量病毒过滤;display anti-virus statistics查看病毒拦截匹配次数与查杀日志。暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论