I am looking for a way to set secure web proxy HTTPS on specific wifi networks for example wifi_secure leaving others unchanged. Casper V9.97
Thank You,
I am looking for a way to set secure web proxy HTTPS on specific wifi networks for example wifi_secure leaving others unchanged. Casper V9.97
Thank You,
@MST You can push the SSID's out via the JSS & define a proxy there.
Well, I would not do that since we use RAdius SSID, user use AD credentials. Ideally would be just add proxy to existing SSID leaving ethernet untouched, other SSIDs also untouched.
I have tried to use: JSS > Computers > Configuration Profiles > New+ > Proxies
But that does not work either for any type of network.
even if I change proxy manually for specific SSID that affects other SSID as well - I don't want to do that
I have found a script:
networkInterface="Wi-Fi"
proxyAddress="lightspeed.mydomain.org"
port="8088"
if [ "$4" != "" ] && [ "$networkInterface" == "" ];then
networkInterface=$4
fi
if [ "$5" != "" ] && [ "$proxyAddress" == "" ];then
proxyAddress=$5
fi
if [ "$6" != "" ] && [ "$port" == "" ];then
port=$6
fi
if [ "$networkInterface" == "" ]; then
echo "Error: No network interface has been specified."
exit 1
fi
if [ "$proxyAddress" == "" ]; then
echo "Error: No proxy address has been specified."
exit 1
fi
if [ "$port" == "" ]; then
echo "Error: No port was specified."
exit 1
fi
OS=/usr/bin/defaults read /System/Library/CoreServices/SystemVersion ProductVersion | awk '{print substr($1,1,4)}'
if [[ "$OS" < "10.5" ]]; then
echo "Setting web proxy for OS $OS..."
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup -setwebproxy "$networkInterface" "$proxyAddress" "$port"
else
echo "Setting web proxy for OS $OS..."
/usr/sbin/networksetup -setsecurewebproxy "$networkInterface" "$proxyAddress" "$port"
fi
but have error when running it:
Script result: Setting web proxy for OS 10.1...
/Library/Application Support/JAMF/tmp/securewebproxy.sh: line 135: /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup: No such file or directory
Error running script: return code was 127.
above script is garbage, so I have used this one:
networkInterface="Wi-Fi"
AutoProxyDiscovery="lightspeed.mydomain.org"
port="8888"
if [ "$4" != "" ] && [ "$networkInterface" == "" ];then
networkInterface=$4
fi
if [ "$5" != "" ] && [ "$AutoProxyDiscovery" == "" ];then
AutoProxyDiscovery=$5
fi
if [ "$networkInterface" == "" ]; then
echo "Error: No network interface has been specified."
exit 1
fi
if [ "$AutoProxyDiscovery" == "" ]; then
echo "Error: No setting been specified."
exit 1
fi
echo "Setting web proxy for OS $OS..." /usr/sbin/networksetup -setsecurewebproxy "$networkInterface" "$AutoProxyDiscovery" "$port"
the only problem is if I would like to add another wifi ssid that adds proxy as well, in case of taking laptop to home that would be an issue
I believe there is a way to fix that
Anybody?
@MST Maybe a policy triggered by network change that will only apply the proxy if attached to this specific SSID (airport -I)? Or added logic to ping a host on the network beforehand?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.