Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Access-Group

Hi,

Basically, there would be "access-group" under which there would be multiple "rules" listed. This "access-group" would be then applied on desired interface.

When some transactions matching them generated a message is logged with the "access-group" (ex: PIX-4-106023).

Is it possible to get the exact rule within the "access-group" that matched ? If so do let me know.

thanks,

-S-

4 REPLIES
New Member

Re: Access-Group

Hi

Well hum

you have an access-list specified on the access-group

like:

access-list Web-Trafic permit tcp any any eq 80

and then an access-group applied to you interface:

access-group Web-Trafic in interface outside

if you need to know what hit the "access-group" look at the access-list by:

sh access-list Web-Trafic

you would get something like:

access-list Web-Trafic; 1 element

access-list Web-Trafic line 1 extended permit tcp any any eq 80 (hitcnt=11)

this would meed 11 hits on that access-list wich is applied to the access-group.

Regards//Michel

New Member

Re: Access-Group

Hi Michel,

Appreciate your reply. Your suggestion would get the total hits for the rule defined with-in the group.

Consider the below case (some sample rules),

access-list outside_access_in; 2 elements

access-list outside_access_in line 1 permit tcp x.x.x.x 255.255.255.0 any (hitcnt=0)

access-list outside_access_in line 2 deny tcp any any eq FTP (hitcnt=0)

Now, assume we have a transaction matching rule 2. I would love to see the exact rule along with Source-Destination combination in the logs. Like connection from source X to destination Y was dropped as rule "outside_access_in line 2" doesn't permit.

Is this possible ? Pix is giving the group name & not the exact rule within it. Hope i am clear with my requirement :-( .

thanks,

-S-

New Member

Re: Access-Group

Hi

Well if i do understand you correctly what you could do is put a log level at the end of the second rule

Example:

access-list outside_access_in line 2 deny tcp any any eq FTP log errors

and then logg for example to to buffer:

conf example:

logging on

logging buffered errors

if you whant a larger buffer use:

loggin buffered-size ?

Although using this will only hit on sources going to ftp not being sourced from your x.x.x.x 255.255.255.0 network

since ftp from that network is being allowed on line 1

You can also use the logg message id and logg that to either syslog or buffer

Regards//Michel

New Member

Re: Access-Group

To my knowledge, this has always been a shortcoming with logs. It shows a log entry with the ACL name, but not the line number it matched. Send cisco an enhancement request. maybe they will finally add this. I have asked for it before.

204
Views
4
Helpful
4
Replies
CreatePlease to create content