Jump to content

Recommended Posts

Posted

A large site but with only two non AD macs at present. The site utilises a county managed proxy server that uses different ports for different types of user. So our macs are set up with a number of users but the network proxy settings are the same for all users.

 

So present everyone is using young children internet access on the Mac, this is far from ideal for the older children and teachers.

 

What is the best way to set a different proxy (or at least port number) per user?

Posted

If you're running ProfileManager and have the AD groups imported into it you can define the relevant proxies, for each user group, in there (Groups->Settings->Network). This is the cleanest and most straight forward way of doing it.

 

If not you could do it via a LoginHook/LaunchD with a script that queries the username and then sets the relevant Location (with the individual proxies defined under separate Locations) for that user.

 

A few useful commands if you go down the scripting path (or just want to squirt the commands to a machine on the fly with Apple Remote Desktop/SSH): -

networksetup -switchtolocation Automatic

networksetup -setwebproxy Ethernet dummy.proxy.com 80

networksetup -setsecurewebproxy Wi-Fi dummy.proxy.com 8080

networksetup -getwebproxy Ethernet

networksetup -getwebproxy Wi-Fi

networksetup -setwebproxystate Ethernet on

 

Few useful reference sites: -

Mac Network Commands Cheat Sheet - krypted.com

https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/networksetup.8.html

https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CustomLogin.html

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...