You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Justin McWilliams edited this page Oct 17, 2014
·
1 revision
Introduction
Simian has support for tracking the number of connections a client has made from on your corporate network or from any other Internet connection. This is particularly useful for mobile clients like laptops, giving admins insight into how their fleet is being used and where machines are located when patched.
Implementation
During preflight, Simian attempts to execute an optional script, not provided as part of the Simian source, to detect a corporate network connection
Simian admins may choose to craft their own scripts however they wish. At Google we attempt to connect to a couple of different servers and even validate certificates, but a tiny bash script like the following may be sufficient for many environments:
#!/bin/bash
CORP_HTTP_SERVER="http://internalonly.example.com/resource"
curl -q ${CORP_HTTP_SERVER}
if [ "$?" = "0" ]; then
exit 0 # on the corporate network
else
exit 1 # NOT on the corporate network
fi