Skip to main content
Question

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

  • September 24, 2020
  • 2 replies
  • 9 views

Forum|alt.badge.img+1

As described. Thanks

2 replies

Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • September 25, 2020

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


geoff_widdowson
Forum|alt.badge.img+8
  • Contributor
  • 124 replies
  • September 25, 2020

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>"