12-05-2016 04:50 AM
Hi everyone,
I would like to log the following to a syslog server regarding VPN connections to an IOS router:
- username
-time of login
-time of logout (or duration of session)
I have managed to set up a syslog server and thanks to the commands 'debug webvpn aaa' and 'login on-success log' the login events are monitored successful.
What I would also like to log is the time of logout or the duration of the VPN session. Does anyone know if there is some kind of a 'logout on-success' command available to log this to the syslog server ?
Thanks for your help in advance!
Solved! Go to Solution.
01-13-2017 05:28 AM
Thanks for your information everyone.
I have managed to create a workaround by submitting 'loggin enable' on the webvpn context.
This (among other things) logs:
UTC: %SSLVPN-5-SESSION_TERMINATE: vw_ctx: CTX vw_gw: GW2 remote_ip: 1.1.1.1 user_name: testvpn reason: session expired
For me that is sufficient information to see when a user logged out.
01-09-2017 06:27 AM
Anyone ?
01-09-2017 09:09 PM
If your authentication is local then can't be done. If your authentication is ACS/ISE, the you send configure radius accounting to capture session details.
01-13-2017 05:28 AM
Thanks for your information everyone.
I have managed to create a workaround by submitting 'loggin enable' on the webvpn context.
This (among other things) logs:
UTC: %SSLVPN-5-SESSION_TERMINATE: vw_ctx: CTX vw_gw: GW2 remote_ip: 1.1.1.1 user_name: testvpn reason: session expired
For me that is sufficient information to see when a user logged out.
01-10-2018 02:10 AM
01-10-2018 02:30 AM
Hi anmo,
Great that it worked out for you as well!
01-09-2017 04:56 PM
Not that I am aware of. IOS SSLVPN is very sparse when it comes to syslog. Most of the information needs to be obtained from one of the following debugs:
debug webvpn aaa
debug webvpn tunnel
If using Radius for user authentication, you can use radius and aaa accounting debugs to receive user session information either from the router or the AAA server. Unfortunately, local authentication does not give too much of information.
01-18-2017 07:37 AM
If your authentication is local then can't be done. If your authentication is ACS/ISE, the you send configure radius accounting to capture session details.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide