The call for sysConf[kSCPropNetProxiesProxyAutoConfigURLString] as? String actually shows what’s set in the systemwide proxy setting. However, it is not giving the desired effect. I am not sure if this works because the Systemwide proxy settings gets invalidated when a packet-tunnel extension is loaded. This has been my experience working with iOS and OSX. So, I am not sure if this is a valid test.
I have been doing my test by hard-coding the proxy return. It always return something like “return "PROXY x.x.x.x:80"; . Nothing going DIRECT.
I see the agent downloading the pac script when running wireshark so I am sure the setting is received by the packet-tunnel framework. The issue is more that each http request is not utilizing the proxy setting.
We’re using Packet Tunnel Provider in destination IP mode. We are using “packetFlow.readPackets { }” interface to pull data.
I also tried pushing “Global Proxy” through JAMF. I see only “Description” and “Auto” being pushed. I don’t see “ProxyPACURL” being pushed onto the MacBook. I am not sure if this an issue with Apple or JAMF.
The agent is still working under Catalina but not on Big Sur. I am wondering as to what changed.
Thanks,
Dankira.