示例:配置 AACL 规则
以下示例显示了一个 AACL 配置,其中包含使用各种匹配条件和作的三个术语的规则:
[edit services aacl]
rule aacl-test {
match-direction input;
term term1 {
from {
source-address 10.0.1.1
application test1;
}
then {
accept;
}
}
term term2 {
from {
source-address {
any-unicast;
}
application test1;
}
then {
discard;
}
}
term term3 {
from {
source-address {
any-unicast;
}
application test1 test2;
}
then {
accept;
count application;
}
}
}