Is it possible to specify the SOCKS proxy for Safari in OS X Lion?

I've got an address and port number I have to fill in there but I can't find the settings in the browser...

| improve this question | | | | |

No. It is only possible to set the system-wide proxy for a specific connection in System Preferences » Network » (select a connection) » Advanced… » Proxies.

enter image description here

Which is where you are sent when you access Safari » Preferences… » Advanced » Proxies.

enter image description here

| improve this answer | | | | |
  • this is stupid, since in firefox I can do this without problem. what I wanted to say is if using safari can be hacked for this purpose – Open the way Nov 1 '11 at 19:07
  • 1
    @flow Firefox is a cross-platform program and probably not even capable of using the system-wide proxy. As should be obvious from the integration of the Network preference pane into Safari's own options, there just is no separate proxy configuration for Safari. – Daniel Beck Nov 1 '11 at 19:29
  • SOCKS proxies are commonly used to provide different proxies for different processes. It's clearly a flaw in Mac OS X if you cannot easily do this. – Jeff Burdges Apr 4 '12 at 17:26
  • 1
    @flow How is this stupid? What use case do you have to configure Safari separately? In fact I find this greatly convenient. Any application that uses the system network settings, will be able to use any proxy you set. And you can configure multiple network profiles with different proxies and switch between them easily, instead of configuring each application (which could be 5 or 10), each time you switch connections (which could be at least twice per day, eg between work, home, school). – Jason S Feb 12 '14 at 19:20
  • @JasonS Use case for being able to set Safari proxy alone: Safari for video (i.e. US NetFlix, etc.) as its video processing is efficient, but Chrome is my regular main browser (no need to appear from US) with its much better cross-browser sharing of bookmarks/passwords/history/tabs across devices. Sending traffic to route through (paid) proxy when not needed seems wasteful, slower and inefficient. – Baker Oct 23 '15 at 11:41

Try networksetup -setwebproxy

usage : networksetup -setwebproxy "Your service name" domain port authentication(on/off) username password

e.g :

networksetup -setwebproxy "Wi-Fi" localhost 8000 off

The protocol defaults to http, you would have to specify socks:// Username and password only need to be set if your authentication is on.

| improve this answer | | | | |

There's also MacProxy to get system-wide network proxy support!

| improve this answer | | | | |
  • 2
    Can you maybe elaborate a bit on how it works? – slhck Nov 3 '11 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.