I currently have a PIX 506e that I inherited from a previous systems admin at the office. I would like to clean up the rules that are currently in place for better organization. I know that you can use the command: "access-list outside_in remark Web Traffic" to denote seperate areas of the ACL for organizing them, however, this is pretty limited as the ACL does not automatically insert new lines into these remark areas and the only way that I've found to do this is to use Textpad or similar to create a sort of script that first removes the ACL, then re-adds it.. My list is fairly long and this quickly becomes a hassle to do. Below is a sample of my ACL and what I have to do to maintain the organization:
access-list outside_in remark IMPLICIT DENIALS
access-list outside_in deny tcp 208.xxx.xxx.0 255.255.248.0 any
access-list outside_in deny tcp host 69.xxx.xxx.106 any
access-list outside_in deny udp host 69.xxx.xxx.106 any
access-list outside_in deny icmp host 69.xxx.xxx.106 any
access-list outside_in deny tcp 63.xxx.xxx.0 255.255.255.0 any
access-list outside_in deny ip 63.xxx.xxx.0 255.255.255.0 any
access-list outside_in remark WEB SITE AND FTP ACCESS
access-list outside_in permit tcp any host 64.xxx.xxx.73 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.74 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.75 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.76 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.77 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.73 eq https
access-list outside_in permit tcp any host 64.xxx.xxx.74 eq https
access-list outside_in permit tcp any host 64.xxx.xxx.75 eq https
access-list outside_in permit tcp any host 64.xxx.xxx.76 eq https
access-list outside_in permit tcp any host 64.xxx.xxx.77 eq https
access-list outside_in remark VPN ACCESS
access-list outside_in permit gre any any
access-list outside_in permit tcp any host 64.xxx.xxx.72 eq pptp
access-list outside_in permit udp any host 64.xxx.xxx.72 eq isakmp
In order to add a line into any of those portions of the ACL from the PIX, I have to do a blanket no access-list outside_in, add the new line into the correct portion of the ACL, then re-add the ACL to the PIX. For example, if I want to add the lines "access-list outside_in permit tcp any host 64.xxx.xxx.78 www" and "access-list outside_in permit tcp any host 64.xxx.xxx.78 https" into my web site traffic portion, I have to do this:
no access-list outside_in remark IMPLICIT DENIALS
no access-list outside_in deny tcp 208.xxx.xxx.0 255.255.248.0 any
no access-list outside_in deny tcp host 69.xxx.xxx.106 any
no access-list outside_in deny udp host 69.xxx.xxx.106 any
no access-list outside_in deny icmp host 69.xxx.xxx.106 any
no access-list outside_in deny tcp 63.xxx.xxx.0 255.255.255.0 any
no access-list outside_in deny ip 63.xxx.xxx.0 255.255.255.0 any
no access-list outside_in remark WEB SITE AND FTP ACCESS
no access-list outside_in permit tcp any host 64.xxx.xxx.73 eq www
no access-list outside_in permit tcp any host 64.xxx.xxx.74 eq www
no access-list outside_in permit tcp any host 64.xxx.xxx.75 eq www
no access-list outside_in permit tcp any host 64.xxx.xxx.76 eq www
no access-list outside_in permit tcp any host 64.xxx.xxx.77 eq www
no access-list outside_in permit tcp any host 64.xxx.xxx.73 eq https
no access-list outside_in permit tcp any host 64.xxx.xxx.74 eq https
no access-list outside_in permit tcp any host 64.xxx.xxx.75 eq https
no access-list outside_in permit tcp any host 64.xxx.xxx.76 eq https
no access-list outside_in permit tcp any host 64.xxx.xxx.77 eq https
no access-list outside_in remark VPN ACCESS
no access-list outside_in permit gre any any
no access-list outside_in permit tcp any host 64.xxx.xxx.72 eq pptp
no access-list outside_in permit udp any host 64.xxx.xxx.72 eq isakmp
access-list outside_in remark IMPLICIT DENIALS
access-list outside_in deny tcp 208.xxx.xxx.0 255.255.248.0 any
access-list outside_in deny tcp host 69.xxx.xxx.106 any
access-list outside_in deny udp host 69.xxx.xxx.106 any
access-list outside_in deny icmp host 69.xxx.xxx.106 any
access-list outside_in deny tcp 63.xxx.xxx.0 255.255.255.0 any
access-list outside_in deny ip 63.xxx.xxx.0 255.255.255.0 any
access-list outside_in remark WEB SITE AND FTP ACCESS
access-list outside_in permit tcp any host 64.xxx.xxx.73 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.74 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.75 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.76 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.77 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.78 eq www
access-list outside_in permit tcp any host 64.xxx.xxx.73 eq https
access-list outside_in permit tcp any host 64.xxx.xxx.74 eq https
access-list outside_in permit tcp any host 64.xxx.xxx.75 eq https
access-list outside_in permit tcp any host 64.xxx.xxx.76 eq https
access-list outside_in permit tcp any host 64.xxx.xxx.77 eq https
access-list outside_in permit tcp any host 64.xxx.xxx.78 eq www
access-list outside_in remark VPN ACCESS
access-list outside_in permit gre any any
access-list outside_in permit tcp any host 64.xxx.xxx.72 eq pptp
access-list outside_in permit udp any host 64.xxx.xxx.72 eq isakmp
access-group outside_in in interface outside
While this is a small example, you get the idea.. is there any way to seperate these portions of the ACL into completely seperate ACLs and still have them applied to the external interface? Such as:
access-list outside_in_denials remark IMPLICIT DENIALS
.
.
.
.
access-list outside_in_web remark WEB SITE AND FTP ACCESS
.
.
.
access-list outside_in_vpn remark VPN ACCESS
.
.
.
access-group outside_in_denials in interface outside
access-group outside_in_web in interface outside
access-group outside_in_vpn in interface outside
Start Free Trial