Logoff a VPN Session from Cisco ASA 5505

Your ads will be inserted here by

Easy AdSense Lite.

Please go to the plugin admin page to paste your ad code.

First, review some of the available commands with vpn-sessiondb:

ciscoasa# vpn-sess logoff ?

  all           All sessions
  email-proxy   Email-Proxy sessions
  index         Index specific session
  ipaddress     IP Address specific sessions
  l2l           IPsec LAN-to-LAN sessions
  name          Username specific sessions
  protocol      Protocol specific sessions
  remote        IPsec Remote Access sessions
  svc           SSL VPN Client sessions
  tunnel-group  Tunnel-group sessions
  vpn-lb        VPN Load Balancing Mgmt sessions
  webvpn        WebVPN sessions

Here’s how I log off a VPN session from an ASA. You can also log off all sessions.

Log off single session based on index.

First, get the index.

# show vpn-sessiondb remote

Username     : remoteuser1               Index        : 10030
Assigned IP  : 172.16.0.182           Public IP    : 1.2.3.4
Protocol     : IKE IPsecOverNatT
License      : IPsec
Encryption   : DES 3DES               Hashing      : MD5 SHA1
Bytes Tx     : 220                    Bytes Rx     : 844
Group Policy : MyGroupPolicy         Tunnel Group : tpm
Login Time   : 09:59:32 EDT Wed Sep 21 2011
Duration     : 0h:01m:15s
Inactivity   : 0h:00m:00s
NAC Result   : Unknown
VLAN Mapping : N/A                    VLAN         : none

Your ads will be inserted here by

Easy AdSense Lite.

Please go to the plugin admin page to paste your ad code.

Look for the user and associated index ID (in bold).

Log off that specific ID:

# vpn-sessiondb logoff index 10030
Do you want to logoff the VPN session(s)? [confirm]
INFO: Session with Index = 10030 has been logged off

Note, you can also logoff a specific sesson based on name (as well as index) if you know the name.

You can log off all sessions by simply using

vpn-sessiondb logoff all

About Rich Kreider

Hello, world! I'm over 1/4 of a century old. I'm just another tech guy swinging from vine to vine in the jungle of technology and life. I currently work for an IT consulting firm in northwestern Pennsylvania and before that I was a system administrator for a small ISP that was centrally located in Ohio's Amish area. The answer is 42.
This entry was posted in Networking and tagged , , , . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>