delete access rule cisco asa

I have an access rule under the outside interface i'd like to delete using the cli. How can I do it? Thanks.
LVL 7
tolinromeAsked:
Who is Participating?
 
pony10usConnect With a Mentor Commented:
You can enter each line individually from the bottom to the top preceeding with a "no" or you could create a text file with all lines preceded with a "no" and then copy/paste the entire list at the prompt.

no access-list outside_access_in line 33 extended permit object-group TCPUDP any host 75.158.x.x eq www
no access-list outside_access_in line 33 extended permit udp any host 75.158.x.x eq www
no access-list outside_access_in line 33 extended permit tcp any host 75.158.x.x eq www
no access-list outside_access_in extended permit object-group TCPUDP any host 75.158.x.x eq www
no asdm location 75.158.x.x 255.255.255.255 inside
no static (inside,outside) 75.158.x.x  access-list inside_nat_static_13

Open in new window

0
 
pony10usCommented:
To remove a line using the CLI on a Cisco device you need to be in config -t mode and type the line with a preceeding "no" (without the quotes)

Example:

no ip access-list extended Accounting_VLAN_Access
0
 
tolinromeAuthor Commented:
So what would my command look like?
"no ip access-list extended example.domain.com description example.domain"

it's a little confusing to me since when i do a sh run on the asa I see a few entries for this destination\hostname. For ex:

name 75.158.x.x example.domain.com description example.domain

then:

access-list outside_access_in line 33 extended permit object-group TCPUDP any host 75.158.x.x eq www 0x3ec69408
  access-list outside_access_in line 33 extended permit udp any host 75.158.x.x eq www (hitcnt=0) 0xad4b33ed
  access-list outside_access_in line 33 extended permit tcp any host 75.158.x.x eq www (hitcnt=298) 0xa974ba2e

then:

access-list outside_access_in extended permit object-group TCPUDP any host 75.158.x.x eq www

then:

asdm location 75.158.x.x 255.255.255.255 inside

then:

static (inside,outside) 75.158.x.x  access-list inside_nat_static_13
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.