Will jamf be able to track Mac real IP if it's connected to VPN all the time?

YMCA
New Contributor

As described. Thanks

2 REPLIES 2

tlarkin
Honored Contributor

It will report the WAN and LAN IP, so VPN will report the VPN IP

geoff_widdowson
Contributor II

I'm using an extension attribute (see below) to read Cisco Anyconnect. This displays a 10. IP number, as this is the vpn IP address. This is not what shows in the inventory for IP Address or Reported IP Address, but it is more useful if you want to connect using screen sharing which is how I find it useful (due to Jamf Remote not working when the user is on vpn).

!/bin/bash

clientIPV4=$(/opt/cisco/anyconnect/bin/vpn stats | grep "Client Address (IPv4):" | awk '{print $4}')

echo "<result>$clientIPV4</result>"