Understanding ACLs
Rule(s)
IMPORTANT:
Actions
IMPORTANT:
Criteria
Source Address
source address <ip_address>
<wildcard>
| Keyword/Variable | Description |
|---|---|
| ip_address |
The IP address(es)
from which the packet originated. This option is used to filter
all packets from a specific IP address or a group of IP addresses.
When specifying a group of addresses, the initial address is configured
using this option. The range can then be configured using the wildcard parameter.
|
| wildcard |
This option is used
in conjunction with the ip_address option
to specify a group of addresses for which packets are to be filtered.
The mask must be entered as a complement: Zero-bits in this parameter
mean that the corresponding bits configured for the ip_address parameter
must be identical. One-bits in this parameter mean that the corresponding
bits configured for the ip_address parameter
must be ignored.
The mask must contain
a contiguous set of one-bits from the least significant bit (LSB).
Therefore, allowed masks are 0, 1, 3, 7, 15, 31, 63, 127, and 255.
For example, acceptable wildcards are 0.0.0.3, 0.0.0.255, and 0.0.15.255.
A wildcard of 0.0.7.15 is not acceptable
since the one-bits are not contiguous.
|
Source AoR
source aor <aor> <wildcard>
| Keyword/Variable | Description |
|---|---|
| aor | The address of record from which the packet originated.This option is used to filter all packets from a specific address of record or a group of AoRs. When specifying a group of addresses, the initial address is configured using this parameter. The range can then be configured using the wildcard parameter. |
| wildcard |
This option is used
in conjunction with the aor option to
specify a group of addresses for which packets are to be filtered.
The mask must be entered as a complement: Zero-bits in this parameter
mean that the corresponding bits configured for the aor parameter
must be identical. One-bits in this parameter mean that the corresponding
bits configured for the aor parameter
must be ignored.
The mask must contain
a contiguous set of one-bits from the least significant bit (LSB).
Therefore, allowed masks are 0, 1, 3, 7, 15, 31, 63, 127, and 255.
For example, acceptable wildcards are 0.0.0.3, 0.0.0.255, and 0.0.15.255.
A wildcard of 0.0.7.15 is not acceptable
since the one-bits are not contiguous.
|
Destination AoR
destination aor <aor> <wildcard>
| Keyword/Variable | Description |
|---|---|
| aor | The address of record to which the packet is being sent.This option is used to filter all packets being sent to a specific address of record or a group of AoRs. When specifying a group of addresses, the initial address is configured using this parameter. The range can then be configured using the wildcard parameter. |
| wildcard |
This option is used
in conjunction with the aor option to
specify a group of addresses for which packets are to be filtered.
The mask must be entered as a complement: Zero-bits in this parameter
mean that the corresponding bits configured for the aor parameter
must be identical. One-bits in this parameter mean that the corresponding
bits configured for the aor parameter
must be ignored.
The mask must contain
a contiguous set of one-bits from the least significant bit (LSB).
Therefore, allowed masks are 0, 1, 3, 7, 15, 31, 63, 127, and 255.
For example, acceptable wildcards are 0.0.0.3, 0.0.0.255, and 0.0.15.255.
A wildcard of 0.0.7.15 is not acceptable
since the one-bits are not contiguous.
|
Rule Order
[ before | after ] { <existing_rule> }
{ <new_rule> }
Viewing ACLs
[test1]st40# show
configuration context test1
config
context
test1
subscriber
default
exit
radius
group default
#exit
cscf acl name acl1
after permit criteria
source address 1.2.3.4
after deny criteria
destination aor *.bad.com
after permit criteria
source aor *@test.com
after deny criteria
source address 0.0.0.255
after deny criteria
source aor user@test.com
#exit
#exit
end