No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S1720, S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Common Operation Guide

This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring a Packet Filtering Rule for TCP Protocol Packets Based on TCP Destination Port Number, Source IP Address (Host Address), and Destination IP Address Segment

Configuring a Packet Filtering Rule for TCP Protocol Packets Based on TCP Destination Port Number, Source IP Address (Host Address), and Destination IP Address Segment

  • To prohibit Telnet connections between a specified host and the hosts on a network segment, configure a rule in an advanced ACL. For example, to prohibit Telnet connections between the host at 192.168.1.3 and hosts on the network segment 192.168.2.0/24, configure the following rule in the advanced ACL deny-telnet.
    <HUAWEI> system-view
    [HUAWEI] acl name deny-telnet
    [HUAWEI-acl-adv-deny-telnet] rule deny tcp destination-port eq telnet source 192.168.1.3 0 destination 192.168.2.0 0.0.0.255 
  • To prohibit the specified hosts from accessing web pages (HTTP is used to access web pages, and TCP port number is 80), configure rules in an advanced ACL. For example, to prohibit hosts 192.168.1.3 and 192.168.1.4 from accessing web pages, configure the following rules in ACL no-web and set the description for the ACL to "Web access restrictions."
    <HUAWEI> system-view
    [HUAWEI] acl name no-web
    [HUAWEI-acl-adv-no-web] description Web access restrictions
    [HUAWEI-acl-adv-no-web] rule deny tcp destination-port eq 80 source 192.168.1.3 0
    [HUAWEI-acl-adv-no-web] rule deny tcp destination-port eq 80 source 192.168.1.4 0
    

Related Information

Support Community

Videos

Configure ACL

Translation
Download
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 89369

Downloads: 12192

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next