Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACL and NAT sequence #5

Open
svt1998gt opened this issue Mar 10, 2019 · 5 comments
Open

ACL and NAT sequence #5

svt1998gt opened this issue Mar 10, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@svt1998gt
Copy link

svt1998gt commented Mar 10, 2019

Would be valuable to have the ACE and NAT sequence number when analyzing objects.
Also which interface/zone that object sits behind if it is doable (dynamic routing)

thanks

@PackeTsar
Copy link
Owner

Can you mark up an example output with how you would want this to look and how it would be useful?

@PackeTsar PackeTsar self-assigned this Mar 11, 2019
@PackeTsar PackeTsar added the enhancement New feature or request label Mar 11, 2019
@PackeTsar PackeTsar added this to the 1.1.0 milestone Mar 11, 2019
@svt1998gt
Copy link
Author

svt1998gt commented Mar 11, 2019 via email

@PackeTsar
Copy link
Owner

PackeTsar commented Mar 13, 2019

Reusing the README example here and marking up with line numbers. How would this look?

Edited: Using 10| formatting to show line numbers.

> ./ASA-Cleanup -nogamu ../Examples/ASA_CONFIG.txt




############### OBJECTS ANALYSIS ###############
################################################



### USED OBJECTS BREAKDOWN:
USED_OBJECT_1
  >> Usage Count: 1
  >> Members:
       17| host 10.0.0.2
  >> Usage:
      19| object-group network USED_OBJECT-GROUP_1
      20|  network-object object USED_OBJECT_1



### UNUSED OBJECTS:
    UNUSED_OBJECT_2
    UNUSED_OBJECT_3
    UNUSED_OBJECT_1



### DOUBLE CHECK UNUSED OBJECTS:
    show run | in UNUSED_OBJECT_2
    show run | in UNUSED_OBJECT_3
    show run | in UNUSED_OBJECT_1



### REMOVE UNUSED OBJECTS:
    no object network UNUSED_OBJECT_2
    no object network UNUSED_OBJECT_3
    no object network UNUSED_OBJECT_1




################################################
################################################


############### NAMES ANALYSIS ###############
##############################################



### USED NAMES BREAKDOWN:
USED_NAME_1
  >> Usage Count: 1
  >> Members:
  >> Usage:
      25| object-group network USED_OBJECT-GROUP_2
      26|    network-object host USED_NAME_1



### UNUSED NAMES:
    UNUSED_NAME_1
    UNUSED_NAME_2
    UNUSED_NAME_3



### DOUBLE CHECK UNUSED NAMES:
    show run | in UNUSED_NAME_1
    show run | in UNUSED_NAME_2
    show run | in UNUSED_NAME_3



### REMOVE UNUSED NAMES:
    no name 1.1.1.1 UNUSED_NAME_1
    no name 1.1.1.2 UNUSED_NAME_2
    no name 1.1.1.3 UNUSED_NAME_3




##############################################
##############################################


############### ACCESS-LISTS ANALYSIS ###############
#####################################################



### USED ACCESS-LISTS BREAKDOWN:
USED_ACL
  >> Usage Count: 1
  >> Members:
  >> Usage:
      15| access-group USED_ACL in interface TEMP



### UNUSED ACCESS-LISTS:
    UNUSED_ACL



### DOUBLE CHECK UNUSED ACCESS-LISTS:
    show run | in UNUSED_ACL



### REMOVE UNUSED ACCESS-LISTS:
    clear configure access-list UNUSED_ACL




#####################################################
#####################################################


############### OBJECT-GROUPS ANALYSIS ###############
######################################################



### USED OBJECT-GROUPS BREAKDOWN:
USED_OBJECT-GROUP_2
  >> Usage Count: 1
  >> Members:
        3| description Using a name here
       24| network-object host USED_NAME_1
  >> Usage:
      100| access-list USED_ACL extended permit ip object-group USED_OBJECT-GROUP_1 object-group USED_OBJECT-GROUP_2
USED_OBJECT-GROUP_1
  >> Usage Count: 1
  >> Members:
       110| network-object host 5.5.5.5
       112| network-object object USED_OBJECT_1
  >> Usage:
      access-list USED_ACL extended permit ip object-group USED_OBJECT-GROUP_1 object-group USED_OBJECT-GROUP_2



### UNUSED OBJECT-GROUPS:
    UNUSED_OBJECT-GROUP_2
    UNUSED_OBJECT-GROUP_1



### DOUBLE CHECK UNUSED OBJECT-GROUPS:
    show run | in UNUSED_OBJECT-GROUP_2
    show run | in UNUSED_OBJECT-GROUP_1



### REMOVE UNUSED OBJECT-GROUPS:
    no object-group network UNUSED_OBJECT-GROUP_2
    no object-group network UNUSED_OBJECT-GROUP_1




######################################################
######################################################

@PackeTsar
Copy link
Owner

How does the above look?

@svt1998gt
Copy link
Author

svt1998gt commented Mar 13, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants