cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8270
Views
5
Helpful
8
Replies

VPN Timeout Issue

macgyver0099_1
Level 1
Level 1

Hi,

 

Currently our network allows unlimited VPN timeout duration, meaning, once a user logs on to our network via vpn, that user remains on until s/he logs out of the system manually.  We attempted to limit this by adding a timeout value on the firewall (where our vpn logins have been assigned) for our anyconnect sessions to six hours as can be see from the command output below to no avail.  My question, therefore, is how do we force vpn sessions to disconnect after six hours of idle time?

 

config t
group-policy Any.Connect.Policy attributes

vpn-idle-timeout 360

1 Accepted Solution

Accepted Solutions

could you try this

 

group-policy cc-VPN-u$r attributes
 vpn-idle-timeout 30
 vpn-session-timeout XX   (mean after XX hours user-will discounted)
 ipsec-udp enable
 ipsec-udp-port 10000
 split-tunnel-policy tunnelspecified
 split-tunnel-network-list value ClientVPN
group-policy DfltGrpPolicy attributes
 vpn-idle-timeout 360

 vpn-session-timeout XX
 vpn-tunnel-protocol ikev1 l2tp-ipsec ssl-client ssl-clientless
 address-pools value vpn_pool
 webvpn
  anyconnect ssl dtls none
  anyconnect ask none default webvpn
group-policy Any.Connect.Policy internal
group-policy Any.Connect.Policy attributes
 dns-server value x.x.x.x x.x.x.x
 vpn-idle-timeout 360

 vpn-session-timeout XX
 vpn-tunnel-protocol ssl-client
 split-tunnel-policy tunnelspecified
 split-tunnel-network-list value ClientVPN
 default-domain value <>
 split-dns value <>
 address-pools value vpn_pool
dynamic-access-policy-record DfltAccessPolicy

please do not forget to rate.

View solution in original post

8 Replies 8

This is the command you need 

 

group-policy DfltGrpPolicy attributes
vpn-idle-timeout 1440

 

 

please do not forget to rate.

Thank you very much.  Many apologies for the potential lack of foresight, but should that timeout value be 360 to equal six hours or is the 1440 a required arbitrary value of some sort necessary to make the idle disconnect process work?

Hi you can set the idle time value according to your needs. I just put a random number.

 

please do not forget to rate.

Hi,

 

We configured that parameter and tested over the weekend still to no avail.  I know I'm missing something, but I'm not sure what.

 

Here's what we now have:

 

group-policy cc-VPN-u$r internal
group-policy cc-VPN-u$r attributes
 vpn-idle-timeout 30
 ipsec-udp enable
 ipsec-udp-port 10000
 split-tunnel-policy tunnelspecified
 split-tunnel-network-list value ClientVPN
group-policy DfltGrpPolicy attributes
 vpn-idle-timeout 360
 vpn-tunnel-protocol ikev1 l2tp-ipsec ssl-client ssl-clientless
 address-pools value vpn_pool
 webvpn
  anyconnect ssl dtls none
  anyconnect ask none default webvpn
group-policy Any.Connect.Policy internal
group-policy Any.Connect.Policy attributes
 dns-server value x.x.x.x x.x.x.x
 vpn-idle-timeout 360
 vpn-tunnel-protocol ssl-client
 split-tunnel-policy tunnelspecified
 split-tunnel-network-list value ClientVPN
 default-domain value <>
 split-dns value <>
 address-pools value vpn_pool
dynamic-access-policy-record DfltAccessPolicy

What is the ASA software version you using? and what anyconnect version you using?

please do not forget to rate.

ASA5545

asa983-16-smp-k8.bin

anyconnect-win-4.6.00362-webdeploy-k9.pkg

 

could you try this

 

group-policy cc-VPN-u$r attributes
 vpn-idle-timeout 30
 vpn-session-timeout XX   (mean after XX hours user-will discounted)
 ipsec-udp enable
 ipsec-udp-port 10000
 split-tunnel-policy tunnelspecified
 split-tunnel-network-list value ClientVPN
group-policy DfltGrpPolicy attributes
 vpn-idle-timeout 360

 vpn-session-timeout XX
 vpn-tunnel-protocol ikev1 l2tp-ipsec ssl-client ssl-clientless
 address-pools value vpn_pool
 webvpn
  anyconnect ssl dtls none
  anyconnect ask none default webvpn
group-policy Any.Connect.Policy internal
group-policy Any.Connect.Policy attributes
 dns-server value x.x.x.x x.x.x.x
 vpn-idle-timeout 360

 vpn-session-timeout XX
 vpn-tunnel-protocol ssl-client
 split-tunnel-policy tunnelspecified
 split-tunnel-network-list value ClientVPN
 default-domain value <>
 split-dns value <>
 address-pools value vpn_pool
dynamic-access-policy-record DfltAccessPolicy

please do not forget to rate.

That was it.  Thank you very much!