acl number 3000
rule 5 deny udp destination-port range 135 netbios-ssn
rule 10 deny tcp destination-port eq 445
rule 15 deny udp destination-port eq 445
rule 20 deny tcp destination-port range 135 139
rule 25 deny tcp destination-port range 22 telnet
rule 30 deny tcp destination-port eq 3389
rule 35 deny tcp destination-port eq 3306
rule 40 deny tcp destination-port eq 1521
rule 45 deny tcp destination-port eq 1433
rule 50 deny tcp destination-port eq 4899
traffic classifier bingdu operator and
if-match acl 3000
traffic behavior bingdu
filter permit (这里应该是permit 还是deny)
# qos policy bingdu
classifier bingdu behavior bingdu #
acl number 3000
rule 5 deny udp destination-port range 135 netbios-ssn
rule 10 deny tcp destination-port eq 445
rule 15 deny udp destination-port eq 445
rule 20 deny tcp destination-port range 135 139
rule 25 deny tcp destination-port range 22 telnet
rule 30 deny tcp destination-port eq 3389
rule 35 deny tcp destination-port eq 3306
rule 40 deny tcp destination-port eq 1521
rule 45 deny tcp destination-port eq 1433
rule 50 deny tcp destination-port eq 4899
traffic classifier bingdu operator and
if-match acl 3000
traffic behavior bingdu
filter permit (这里应该是permit 还是deny)
# qos policy bingdu
classifier bingdu behavior bingdu #
(0)
最佳答案
可参考:
Host通过接口GigabitEthernet3/0/1接入设备Device。
配置流量过滤功能,对接口GigabitEthernet3/0/1接收的源端口号不等于21的TCP报文进行丢弃。
图6-1 流量过滤配置组网图
# 定义高级ACL 3000,匹配源端口号不等于21的数据流。
<Device> system-view
[Device] acl number 3000
[Device-acl-adv-3000] rule 0 permit tcp source-port neq 21
[Device-acl-adv-3000] quit
# 定义类classifier_1,匹配高级ACL 3000。
[Device] traffic classifier classifier_1
[Device-classifier-classifier_1] if-match acl 3000
[Device-classifier-classifier_1] quit
# 定义流行为behavior_1,动作为流量过滤(deny),对数据包进行丢弃。
[Device] traffic behavior behavior_1
[Device-behavior-behavior_1] filter deny
[Device-behavior-behavior_1] quit
# 定义策略policy,为类classifier_1指定流行为behavior_1。
[Device] qos policy policy
[Device-qospolicy-policy] classifier classifier_1 behavior behavior_1
[Device-qospolicy-policy] quit
# 将策略policy应用到端口GigabitEthernet3/0/1的入方向上。
[Device] interface gigabitethernet 3/0/1
[Device-GigabitEthernet3/0/1] qos apply policy policy inbound
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论