Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 1997 11:00:18 -0800 (PST)
From:      Doug Ambrisko <ambrisko@whistle.com>
To:        imp@village.org (Warner Losh)
Cc:        ports@FreeBSD.ORG
Subject:   Re: socks5 port
Message-ID:  <199712171900.LAA09398@crab.whistle.com>
In-Reply-To: <199712170409.VAA01807@harmony.village.org> from Warner Losh at "Dec 16, 97 09:09:13 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh writes:
| 	I tried to contact the MAINTAINER for the socks 5 port, but
| it bounced.  Anybody know who I should contact?  Or I could just take
| it over myself if ambrisko is no longer able to do it himself.  As you
| can tell, I've upgraded it to v1.0r3 and have done the needed hacks
| for OpenBSD's port tree (the ports are identical between the two).

It seems my ISP deleted ambrisko.roble.com in the past year.  I didn't
notice it since ambrisko.com works.  So mail to ambrisko@ambrisko.com
works.  Feel free to become the maintainer since the hard part is over
and the features are pretty static now (ie. getting LD_PRELOAD into 
FreeBSD and fixing any FreeBSD strangeness is resolved and submitted back 
into the distribution ... now thing just work).  Also the licensing issues 
keep changing and I'm no lawyer. 

| ------- Forwarded Message
| 
| 	I'm in the process of upgrading the FreeBSD socks5 port from
| v1.0r2 to v1.0r3, which seems to be the latest version.  Is there any
| reason to not use that version, assuming that it works?  Are you still
| actively maintaining this port?  Are you interested in patches, or
| would you like me to commit the patches I come up with (so far they
| are really minor, like two lines in the Makefile and a new files/md5).

Feel free to commit the changes and if you make any changes just send
them of to NEC.  They are pretty good about rolling them in for the 
next release.
 
| At the same time, I'm trying to port this to OpenBSD's new ports
| system as well.  I think that it should just build there.  Any ideas?

Does OpenBSD support LD_PRELOAD?  The beauty of socks5 is the ability
to do "runsocks <applicatition>".  This uses LD_PRELOAD to shim in the
libsocks lib to intercept shared library calls to libc and socks'ify them.
If not take a look at FreeBSD's ld.so to see how it was done.

The other thing to watch out for is how the send/sendto is implemented.
I recall that send was a libc wrapper around sendto or vis-versa.  This
caused looping problems in the shim layer.  So there is detection code
in the shim to prevent this.  This was the biggest change that I had
to work with Dave about.  A good test it to set LD_PRELOAD in your .login
(or equivalant) and run stuff.  "vi" was a good test program as is emacs
in which I tested to verify gnus worked over socks.  I also tried perl
as well.

The only other warning is to make sure you keep libc & libsocks in sync
with respect to headers.

If you run into any troubles let me know, I can probably point you in the
right direction.
 
| Many thanks for the original port.

Your welcome.

Doug A.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712171900.LAA09398>