IPv4 Access Control Lists (ACLs)
Planning an ACL Application
•
A group of IPv4 addresses fits the matching criteria.
In this case
you provide both the address and the mask. For example:
access-list 1 permit 10.28.32.1 0.0.0.31
Address
Mask
10.28.32.1
0.0.0.31
This policy states that:
–
In the first three octets of a packet’s SA, every bit must be set the
same as the corresponding bit in the SA defined in the ACE.
–
In the last octet of a packet’s SA, the first three bits must be the
same as in the ACE, but the last five bits are wildcards and can
be any value.
■
Unlike subnet masks, the wildcard bits in an ACL mask need not be
contiguous. For example, 0.0.7.31 is a valid ACL mask. However, a
subnet mask of 255.255.248.224 is not a valid subnet mask.
Example of How the Mask Bit Settings Define a Match .
Assume an
ACE where the second octet of the mask for an SA is 7 (the rightmost three
bits are “on”, or “1”) and the second octet of the corresponding SA in the ACE
is 31 (the rightmost five bits). In this case, a match occurs when the second
octet of the SA in a packet being filtered has a value in the range of 24 to 31.
Refer to table 9-1, below.
Table 9-1.
Example of How the Mask Defines a Match
Location of Octet
Bit Position in the Octet
128
64
32
16
8
4
2
1
SA in
ACE
Mask for SA
Corresponding Octet of a Packet’s
SA
0
0
0
0
0
0
1
0
1
0
1
1
0/1
1
1
0/1
1
1
0/1
0
0
0
1
1
The shaded area indicates bits in the packet that must exactly match the bits in the source
address in the ACE. Wherever the mask bits are ones (wildcards), the corresponding address
bits in the packet can be any value, and where the mask bits are zeros, the corresponding
address bits in the packet must be the same as those in the ACE.
Note:
This example covers
only one octet of an IPv4 address. An actual ACE applies this method to all four octets of the
address.
Example of Allowing Only One IPv4 Address (“Host” Option).
Sup
pose, for example, that you have configured the ACL in figure 9-5 to filter
inbound packets on VLAN 20. Because the mask is all zeros, the ACE policy
9-31
Содержание PROCURVE 2910AL
Страница 1: ...Access Security Guide ProCurve Switches W 14 03 2910al www procurve com ...
Страница 2: ......
Страница 3: ...HP ProCurve 2910al Switch February 2009 W 14 03 Access Security Guide ...
Страница 84: ...Configuring Username and Password Security Front Panel Security 2 36 ...
Страница 156: ...TACACS Authentication Operating Notes 4 30 ...
Страница 288: ...Configuring Secure Socket Layer SSL Common Errors in SSL setup 8 22 ...
Страница 416: ...Configuring Advanced Threat Protection Using the Instrumentation Monitor 10 28 ...
Страница 516: ...Configuring Port Based and User Based Access Control 802 1X Messages Related to 802 1X Operation 12 76 ...
Страница 527: ...Configuring and Monitoring Port Security Port Security Figure 13 4 Examples of Show Mac Address Outputs 13 11 ...
Страница 572: ...Using Authorized IP Managers Operating Notes 14 14 ...
Страница 592: ...12 Index ...
Страница 593: ......
Страница 594: ... Copyright 2009 Hewlett Packard Development Company L P February 2009 Manual Part Number 5992 5439 ...