Cisco ASA 5500 – Remote Management via VPN


KB ID 0000984 Dtd 12/08/14


It's been ages since I has to do this, I usually just manage firewalls via SSH from outside. But I was out on a client site last week and needed to connect to to my ASA, so I simply connected in via AnyConnect;


Note: The same procedure is applicable if you are an IPSEC VPN client, L2TP VPN client, or simply coming in over a site to site VPN link.

And attempted to SSH, no joy, I tried the ASDM, nothing. So basic troubleshooting kicked in, and I tried to ping its inside interface;

Ping Fails


Normally, you would see this if you forgot to add 'management-access inside' to the firewall. I was sure I had done, so I connected to one of my servers and then SSH'd to the firewall to check, and that command was there?

The cause of the problem was a change made in version 8.4(3). I had to edit the NAT rule for the remote traffic. But I'll cover ALL the bases in case you are missing anything else.

1. Connect to the the firewall via CLI, and check management-access is on, on the interface you are connecting to, mines the 'inside' interface yours might be management or some other name you have allocated to the interface in question.

User Access Verification

Password:  Type help or '?' for a list of available commands.  PetesASA> enable  Password: ********  PetesASA# show run management-access  management-access inside  PetesASA#

If yours is different or missing;

PetesASA# configure terminal  PetesASA(config)# management-access inside

To do the same via ASDM.

ASDM Management Access

2. Now I know, my remote VPN clients are getting a 10.253.254.x addresses, (show run ip local pool should tell you, unless you are using internal DHCP for the remote clients). After version 8.4(3) you need an extra command on the end of the NAT rule for that traffic. I'll highlight the line below;

PetesASA# show run nat  nat (inside,any) source static obj- obj- destination static obj- obj-  !  object network obj_any  nat (inside,outside) dynamic interface  object network Media_PC  nat (inside,outside) static interface service tcp 467 467  !  nat (outside,outside) after-auto source dynamic VPN_Pool interface  PetesASA#

3. The line highlighted above, needs 'route-lookup' adding to the end of it.

PetesASA# configure terminal  PetesASA(config)#nat (inside,any) source static obj- obj- destination static obj- obj- route-lookup

To do the same in the ASDM locate the NAT rule, edit it, and tick this box. (Configuration > Firewall > NAT Rules).

Pinf Fails

4. At this point your VPN client(s) should now be ale to ping the interface again.

Ping Working

5. As with any management traffic, also ensure that the subnet you are connecting from, has been allowed.

Check SSH

PetesASA# show run ssh  ssh inside  ssh inside  ssh outside  ssh timeout 45  ssh key-exchange group dh-group1-sha1  PetesASA#

Check Telnet (If used)

PetesASA# show run telnet  telnet inside  telnet inside  telnet timeout 45  PetesASA#

Check ASDM (If used)

PetesASA# show run http  http server enable  http inside  http inside  http outside  PetesASA#

5. Save the changes.

PetesASA# write mem  Building configuration...  Cryptochecksum: 79745c0a 509726e5 b2c66028 021fdc7d

7424 bytes copied in 1.710 secs (7424 bytes/sec)  [OK]  PetesASA#


Related Articles, References, Credits, or External Links

Cisco ASA - Allow Remote Management

Connecting to and Managing Cisco Firewalls 

Author: Migrated

Share This Post On