Have a light but troublesome problem. Pulse secure is enabled on the mac and proxy does not operate normally while connected. To solve this, I googled. and I find convenient tool and i share it
https://github.com/majgis/psproxy !!
$ npm i -g psproxy
Set your network Proxy and use psproxy (Set proxy and Certificate for ZAP/Burp)
$ sudo psproxy on
$ sudo psproxy off