Access Lists (ACLs)
ExtremeWare XOS 11.3 Concepts Guide
276
In this example, the only difference between policy1.pol and policy2.pol is that rule entries two and
three are swapped. Policy1.pol consumes three masks since there are no adjacent rules with the same
match criteria. Policy2.pol consumes two masks since rules one and three are adjacent and have
identical match criteria. However, policy1.pol and policy2.pol have different meanings because of
precedence.
With this being said, you have to be careful to avoid wasting masks. For example consider the following
policy:
policy3.pol:
entry one {
if {
source-address 1.1.1.1/32;
} then {
count debug;
}
}
entry two {
if {
protocol tcp;
destination-port 23;
} then {
deny;
}
}
entry three {
if {
source-address 2.2.2.2/32;
} then {
deny;
}
}
Policy3.pol consumes three masks. However, since rule entries two and three have the same action, their
relative precedence doesn't matter, and they could be swapped without affecting the results of the
policy. The following policy accomplishes the same actions, but uses two masks:
policy4.pol:
entry one {
if {
source-address 1.1.1.1/32;
} then {
count debug;
}
}
entry three {
if {
source-address 2.2.2.2/32;
} then {
deny;
}
}
entry two {
if {
protocol tcp;
destination-port 23;
} then {
deny;
Содержание ExtremeWare XOS 11.3
Страница 20: ...Contents ExtremeWare XOS 11 3 Concepts Guide 20...
Страница 25: ...1 Using ExtremeWare XOS...
Страница 26: ......
Страница 38: ...ExtremeWare XOS Overview ExtremeWare XOS 11 3 Concepts Guide 38...
Страница 58: ...Accessing the Switch ExtremeWare XOS 11 3 Concepts Guide 58...
Страница 146: ...Configuring Slots and Ports on a Switch ExtremeWare XOS 11 3 Concepts Guide 146...
Страница 218: ...Status Monitoring and Statistics ExtremeWare XOS 11 3 Concepts Guide 218...
Страница 240: ...Virtual LANs ExtremeWare XOS 11 3 Concepts Guide 240...
Страница 248: ...Virtual Routers ExtremeWare XOS 11 3 Concepts Guide 248...
Страница 278: ...Access Lists ACLs ExtremeWare XOS 11 3 Concepts Guide 278...
Страница 288: ...Routing Policies ExtremeWare XOS 11 3 Concepts Guide 288 entry deny_rest if then deny...
Страница 344: ...Security ExtremeWare XOS 11 3 Concepts Guide 344...
Страница 393: ...2 Using Switching and Routing Protocols...
Страница 394: ......
Страница 454: ...Spanning Tree Protocol ExtremeWare XOS 11 3 Concepts Guide 454...
Страница 484: ...Extreme Standby Router Protocol ExtremeWare XOS 11 3 Concepts Guide 484...
Страница 514: ...IPv4 Unicast Routing ExtremeWare XOS 11 3 Concepts Guide 514...
Страница 530: ...IPv6 Unicast Routing ExtremeWare XOS 11 3 Concepts Guide 530...
Страница 538: ...RIP ExtremeWare XOS 11 3 Concepts Guide 538...
Страница 556: ...OSPF ExtremeWare XOS 11 3 Concepts Guide 556...
Страница 566: ...OSPFv3 ExtremeWare XOS 11 3 Concepts Guide 566...
Страница 589: ...3 Appendixes...
Страница 590: ......
Страница 640: ...CNA Agent ExtremeWare XOS 11 3 Concepts Guide 640...
Страница 670: ...Glossary ExtremeWare XOS 11 3 Concepts Guide 670...
Страница 698: ...Index ExtremeWare XOS 11 3 Concepts Guide 698...