COVID-19 💊 We take care of your Remote Access VPN needs!
👍 Available as SmartConsole Extension.
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 -s ' '|sed "1d";cvpnd_admin license all 2>/dev/null|grep "User Name"|sed "s/^.*User Name/User/g"|awk 'BEGIN{FS="|"} {print $2 " Type: Mobile Access " $1" ConnectTime: 0"$3}'|sed "s/Session Expiration Time In Minutes/Expires/g"|sed "s/^ *//"|more
Integrated with our ccc script.
Remote Access VPN Statistics - One-liner