03-31-2004 12:18 AM - edited 02-20-2020 11:19 PM
Hello,
a year before, here was a conversation about the question in which order the PIX-ACLs are applied.
There where some different opinions about this.
Are they applied on a first-match base like IOS-ACLs or on a best-fit base ?
I remember that someone said that the old 'conduit'-statements were applied at best-fit base.
Is this right ? and what means 'best-fit' ?
And what about the ACLs ?
If they are not applied 'first-match' it wouldn't make sense to give them an order in the PDM.
Another question: I wonder how the PDM can add rules in the middle of the the access-list without interrupting the traffic. In IOS-ACLs without sequence numbers I have to rewrite the whole ACL to change a line in the middle.
Solved! Go to Solution.
03-31-2004 06:26 AM
conduits - best-fit
ACL's - first match
Best-fit means that the PIX will scan all conduits and pick the one that *best* matches the traffic (source/destination/ports etc...).
The PIX does not run IOS. You can remove one line from an ACL without removing the entire ACL.
Scott
03-31-2004 06:26 AM
conduits - best-fit
ACL's - first match
Best-fit means that the PIX will scan all conduits and pick the one that *best* matches the traffic (source/destination/ports etc...).
The PIX does not run IOS. You can remove one line from an ACL without removing the entire ACL.
Scott
03-31-2004 12:02 PM
After thinking about this a little more, I wanted to address the last portion with a little more detail to make sure I was completely accurate to anyone who may read this later on. I don't think this is necessary for the question originally asked.
ACL are indeed order dependent. PIX CLI doesn't allow us to insert or modify an ACE (access-list entry) in the middle of an ACL. To preserve the order of ACEs, when inserting a rule, PDM first deletes all the rules (ACEs) behind the insert point, adds the new rule, and re-applies deleted rules back. When you do it at the top of the list, lots of CLI commands may get generated. Same thing when PDM updates a rule. Assume you have 1000 ACEs in an ACL, add a single rule at the top will cause PDM to generate 2001 CLI commands. Currently PDM opens one tcp connection per CLI command. It takes awhile for all of these commands to be pushed to PIX. And it will have a impact on traffic currently passing through PIX.
For clarity sake.
Scott
03-31-2004 02:11 PM
Interesting stuff, now what about object-groups if you have an ACL referring to an Objectgroup and you remove a host from that objectgroup does it just insert or remove the object or redo the whole thing.
Will PDM ever be updated to use the line-element editing capability introduced in 6.3.x VS redoing the whole thing for every little change?
03-31-2004 06:16 PM
Well, for your example, PDM will just remove the particular ACE that corresponds to the object in the object group that you removed. But in most cases where you would be modifying an object group rather than removing a particular object from it, it has to redo the whole thing. You have to remember that object groups are nothing more that an easier way to represent a group of whatever for ease of configurability. In the PIX, each ACE is still listed one by one so if one ACE needs to be removed, the line and everything below it is removed and then re-added as stated in the earlier post.
Not sure about PDM being updated the line editing capability in later PIX OS. I would imagine so but I cannot be sure until the next version comes out.
Does this help?
Scott
03-31-2004 11:42 PM
When I have a large rulebase and I am editing rules at the top, it may last seconds until the PDM has cleared and rewritten all the rules below.
Does this have impact only to new connections ?
What about existing statefull tcp-connections at this time ?
04-01-2004 06:25 AM
Yes, the imapact is only to new connections. After a connection is established through the PIX initially, the ACL is not applied to subsequent packets on that same connection. This gives the PIX an added edge in performance.
Scott
04-01-2004 05:15 PM
Thanks, its good to get a better understanding of what goes on in the background.
04-05-2004 07:57 AM
Scott,
If i may, I have a point that I wish for you to qualify in your statement. To quote a passage from the above "PIX CLI doesn't allow us to insert or modify an ACE (access-list entry) in the middle of an ACL" If you are running PIX 6.3 it allows for line editing I believe, whereby you can insert or modify an ACL at any line number that you so choose.
For clarity,
Steve
04-05-2004 10:10 AM
Steve,
No problem and you are correct. However, PDM does not have the ability (yet) to utilize the line numbering feature when modifying ACL's. It has been a few days, but I think my answers where in relation to how PDM modifies ACL's on the PIX. Does this sound OK?
Scott
04-05-2004 11:46 PM
No worries Scott, I thought that Cisco had thrown a red herring in there for a minute, very interesting point regarding the PDM though. Not quite as efficient as the CLI it would seem.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide