Uncategorised

Resetting a VPN connection on CISCO ASA-5505

A had this challenge on how to reset or reconnect the VPN service in the office whenever I am mobile and do not have access to the Cisco ASDM-IDM. I do however have access to the device via SSH, so here is how you can reset or reconnect the VPN session using CLI.

  1. Connect and login to the device via SSH (granting you have already enabled the service on your device).

    iOS: Terminus 3.6.3
    Android: Terminus 3.0.5
    or any of your preferred SSH client.

  2. Enable config mode.
    Type help or '?' for a list of available commands.
    CISCO> enable
    Password: ********
    CISCO#
  3. Get a list of the site-to-site VPN tunnels that are up. Issue the following command:
    CISCO# show vpn-sessiondb l2l
    
    Output example:
    
    Session Type: LAN-to-LAN
    
    Connection   : 192.168.50.1
    Index        : 4                      IP Addr      : 192.168.50.1
    Protocol     : IKEv1 IPsec IPsecOverNatT
    Encryption   : IKEv1: (1)3DES  IPsec: (1)3DES  IPsecOverNatT: (1)3DES
    Hashing      : IKEv1: (1)SHA1  IPsec: (1)SHA1  IPsecOverNatT: (1)SHA1
    Bytes Tx     : 8022844                Bytes Rx     : 389894534
    Login Time   : 09:56:20 PHST Wed Aug 1 2018
    Duration     : 1h:31m:11s
  4. You can now logoff or disconnect the VPN session using the “Index” number.
    CISCO# vpn-sessiondb logoff index 4
  5. Confirm the session has been restarted, issue the following command and check the “Login Time” and “Duration”.
    CISCO# show vpn-sessiondb l2l

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.