华为交换机拦截勒索端口

#华为交换机拦截勒索端口
acl number 3456
rule 10 deny tcp destination-port eq 135
rule 15 deny tcp destination-port range 137 139
rule 20 deny tcp destination-port eq 445
rule 25 deny udp destination-port eq 135
rule 30 deny udp destination-port range 137 139
rule 35 deny udp destination-port eq 445
quit
traffic-filter inbound acl 3456
traffic-filter outbound acl 3456

  • 0
    点赞
  • 33
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
ENSP(Embedded Network Services Platform)交换机是华为的一些网络设备中内置的智能网卡,它提供了安全访问控制列表(Access Control List, ACL)的功能,用于控制网络流量。配置ACL是在ENSP交换机上定义规则,允许或拒绝特定类型的数据包通过。 以下是一个基本的ENSP交换机配置ACL的步骤: 1. **登录设备**:使用SSH或者Web管理界面登录到ENSP交换机。 2. **进入全局模式**:通常输入`enable`或者`configure terminal`命令进入全局配置模式。 3. **配置接口**:选择需要应用ACL的接口,如`interface <port_number>`。 4. **配置ACL**: - **创建ACL**:使用`ip access-group <name> <direction>`命令,`<direction>`可以是`in`(入站)或`out`(出站)。例如,`ip access-group deny-unwanted in`创建一个入站规则集合。 - **添加规则**:使用`rule <number> <action> <protocol> <source/destination> <source_port_range destination_port_range>`,`action`可以是`permit`或`deny`。比如`rule 10 deny tcp any any eq 80`阻止所有TCP连接到HTTP端口80。 - **应用ACL**:使用`switchport port-security`命令启用端口安全,然后`switchport port-security enable`, `switchport port-security maximum <max_num>`设置允许的最大安全MAC地址数量,最后`switchport port-security trusted <trusted_mac>`将特定MAC地址标记为可信。 5. **验证和保存**:检查ACL配置是否正确,然后使用`write memory`或`commit`保存配置。
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值