cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1845
Views
0
Helpful
2
Replies

How to disconnect\reset vpn connections nightly?

jbitter001
Level 1
Level 1

We have some clients that connect in via a vpn connection.  I have noticed that some do not disconnect for days.  is there a way to reset all vpn connections at a specific time each day...say at 1:00AM?  We are using a ASA 5508 w/SourceFire (Firepower), vpn connection is anyconnect.

Regards,

2 Replies 2

Rahul Govindan
VIP Alumni
VIP Alumni

You can use EEM to do this. The following guide has an example to do exactly what you need:

http://www.cisco.com/c/en/us/support/docs/security/asa-5500-x-series-next-generation-firewalls/118087-technote-asa-00.html#anc7

event manager applet VPN-Disconnect
event timer absolute time 01:00:00
action 1 cli command "vpn-sessiondb logoff anyconnect noconfirm"
output none

Collin Clark
VIP Alumni
VIP Alumni

You could also configure a 'max connect time' for the Anyconnect session. Set it to 24 hours and they will automatically be logged off 24 hours after connecting.