Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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...

share|improve this question

4 Answers 4

up vote 3 down vote accepted

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

share|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 –  flow 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

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.

share|improve this answer

The solution is to use a real browser. Chrome and Firefox can both be configured in the way you require and using proxyswitchy or foxyproxy extensions respectively will allow even great control over your particular browser's proxy requirements.

It depends on the use case however.

One use case might be like an average proxy user using proxies based on location or VPN connection or whatever, and wanting everything to use the one proxy set for that matching profile and be able to switch that system wide profile at your leisure.

Another use case is someone wanting to access multiple proxies at once, especially programmatically.

Let's say I want to run two browsers, each using a different proxy. I want Safari to use proxy A when domain matches regular expression X, proxy B when domain matches regular expression Y, and directly connect when domain matches regular expression Z. All the while I only want these browsers using the proxy(ies) and everything else is direct connect.

Advanced level proxy connections are quite easy to achieve using Chrome or Firefox with proxyswitchy or foxyproxy type extensions.

Safari relying solely on a system wide configuration makes it unusable for some people's use cases, mine included. It's frustrating me more and more lately that Apple's software has been trending toward the average mom and pop users and safari is no exception to the rule.

share|improve this answer
    
This doesn't seem to address the question; it talks about why you'd want to use a separate proxy, but the question was how to do it. Answers should only be used for answers to the original question, not for discussion. –  cpast Jan 8 at 2:59

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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