DGS-3700 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Page | 368
create access_profile
user_define_mask <hex 0x0-0xffffffff>
−
Specifies that the rule applies to the IP
protocol ID and the mask options behind the IP header.
packet_content_mask
– Allows users to examine up to 4 specified offset_chunk within
a packet at one time and specifies that the Switch will mask the packet header
beginning with the offset value specified as follows:
packet_content_mask {offset_chunk_1 <value 0-31> <hex 0x0-0xffffffff>|
offset_chunk_2 <value 0-31> <hex 0x0-0xffffffff>| offset_chunk_3 <value 0-
31> <hex 0x0-0xffffffff>|offset_chunk_4 <value 0-31> <hex 0x0-0xffffffff> }
With this advanced unique Packet Content Mask (also known as Packet Content Access Control List -
ACL),
D-Link switches can effectively mitigate some network attacks like the
common ARP Spoofing attack that is wide spread today. This is the reason why
Packet Content ACL is able to inspect any specified content of a packet in different
protocol layers.
IPV6
−
Denotes that IPv6 packets will be examined by the Switch for forwarding or
filtering based on the rules configured in the
config access_profile
command for
IPv6.
class
– Entering this parameter will instruct the Switch to examine the
class
field of
the IPv6 header. This class field is a part of the packet header that is similar to the
Type of Service (ToS) or Precedence bits field in IPv4.
flowlabel
– Entering this parameter will instruct the Switch to examine the
flow label
field of the IPv6 header. This flow label field is used by a source to label sequences
of packets such as non-default quality of service or real time service packets.
tcp
– Specifies that the Switch will examine each frame’s Transmission Control
Protocol (TCP) field.
src_port_mask <hex 0x0-0xffff>
−
Specifies a TCP port mask for the source port.
dst_port_mask <hex 0x0-0xffff>
−
Specifies a TCP port mask for the destination
port.
udp
−
Specifies that the Switch will examine each frame’s User Datagram Protocol
(UDP) field.
src_port_mask <hex 0x0-0xffff>
−
Specifies a UDP port mask for the source port.
dst_port_mask <hex 0x0-0xffff>
−
Specifies a UDP port mask for the destination
port.
source_ipv6_mask <ipv6mask>
−
Specifies an IP address mask for the source IPv6
address.
destination_ipv6_mask <ipv6mask>
−
Specifies an IP address mask for the
destination IPv6 address.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create an access list rules:
DGS-3700-12:5#create access_profile profile_id 5 profile_name 5 ethernet vlan
source_mac 00-00-00-00-00-01 destination_mac 00-00-00-00-00-02 802.1p ethernet_type
Command: create access_profile profile_id 5 profile_name 5 ethernet vlan source_mac 00-
00-00-00-00-01 destination_mac 00-00-00-00-00-02 802.1p ethernet_type
Success.
DGS-3700-12:5#