Reputation: 115
I daily need to switch proxies in macOS and going every time to System Preferences > Network > advanced > proxies > enable HTTP proxy and secure web proxy, is really frustrating.
Is there any way or app that acts similar(on macos) to foxyproxy in browsers?
Thanks in advance
Upvotes: 4
Views: 1940
Reputation: 3594
It's possible by executing the following CLI
$ networksetup -setwebproxy "Wi-Fi" 127.0.0.1 9090 && networksetup -setsecurewebproxy "Wi-Fi" 127.0.0.1 9090
Assume that 127.0.0.1 and 9090 is the IP and port you need to Proxy
You can disable HTTP Proxy by
$ networksetup -setwebproxystate "Wi-Fi" off && networksetup -setsecurewebproxystate "Wi-Fi" off
Upvotes: 2
Reputation: 930
I think the most macOS way is to use Locations:
Select a name corresponding to your Proxy name.
Upvotes: 7