socks proxy

leelavati narlikar leelavatin at yahoo.com
Tue Dec 22 20:17:22 PST 2009


tsocks works perfectly! Thanks a ton! (was a little bit of a chicken and egg problem since I need tsocks to use port install, but managed to get it done.)

Lee

--- On Tue, 12/22/09, Randal L. Schwartz <merlyn at stonehenge.com> wrote:

> From: Randal L. Schwartz <merlyn at stonehenge.com>
> Subject: Re: socks proxy
> To: "leelavati narlikar" <leelavatin at yahoo.com>
> Cc: "Joshua Root" <jmr at macports.org>, "nox" <nox at macports.org>, macports-users at lists.macosforge.org
> Date: Tuesday, December 22, 2009, 6:48 PM
> >>>>> "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