socks proxy

Randal L. Schwartz merlyn at stonehenge.com
Tue Dec 22 05:18:39 PST 2009


>>>>> "leelavati" == leelavati narlikar <leelavatin at yahoo.com> writes:

leelavati> Thanks, Josh and Nox, for your replies. The problem is I have to
leelavati> use socks and I don't think there's an env variable that MacPorts
leelavati> honors for that. macports.conf has all other proxy settings, but
leelavati> not socks..

Cocoa applications use the System Preferences proxy settings.

For command-line applications, you have to patch the connect() call in the
libc.so, which is conveniently done by preceding your actual command with
"tsocks".  (If you don't have tsocks, "sudo port install tsocks").

After that, you should be able to say "sudo tsocks port install ..."
to cause port and all of its children to use your socks proxy.

You might have to configure /opt/local/etc/tsocks.conf to match
your System Preferences settings.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


More information about the macports-users mailing list