Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Show VPN Users - One-liner

Danny
MVP Diamond
MVP Diamond

👍 Available as SmartConsole Extension
📊 Also available: Remote Access VPN Statistics

One-liner (Bash) to show all VPN users connected to a VPN gateway.


    fw tab -t userc_users -f -u 2>/dev/null|tr ",;" "\n"|egrep "UserName|ConnectTime|SRAddress|Schema"|tr -d "\n"|sed "s/UserName/User/g; s/SRAddress:[[:space:]]/\n/g; s/Schema:/Type:/g; s/IKE/Endpoint Connect;/g; s/SSL/SSL Network Extender/g; s/([0-9])//g; s/CN=//g"|awk '{ print $0 " >",(strftime("%c",$NF))}'|tr -
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




1 Reply

archie
Participant

Great Tool!

But in my experience, it shows users who have already disconnected, even though querying the kernel table of assigned IP addresses with `fw tab -t om_assigned_ips -f` reveals that the user is no longer present and holds no IP address. Is there any tool—other than the command mentioned above—that shows Remote Access users (i.e., who is currently logged in) in real time?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos