Re: sockify squid

From: Michael Mittelstadt <meek@dont-contact.us>
Date: Thu, 12 Aug 1999 16:58:06 -0500

[Quoth Wong Ching Kuen Frederick]
] has anyone tried sockify squid by the following command?
]
] runsocks squid -sY >> /usr/local/squid.out 2>&1 &
]
] seems it doesn't work. i get
]
] Ambiguous output redirect.
]
] anyway, what is the meaning of this command?

Aside from the invalid shell syntax that someone else pointed out,
using runsocks doesn't work for running squid 2.x with socks5, at
least in my experience.

Which is not to say it is undoable, I've done it.

Follow the directions at:

http://www.socks.nec.com/how2socksify.html

What I did:

First run ./configure as normal, then

Add:

   SOCKSinit(argv[0]);

near the top of main() in src/dnsserver.c, and src/main.c

Add:

  #include <socks.h>

to include/config.h

Add '-DSOCKS' to the AC_CFLAGS line in src/Makefile
Add '-lsocks5' to the XTRA_LIBS line in src/Makefile

And that should probably do it.

If you chroot squid, be sure to put libsocks5.conf in the chroot, too.

-- 
Michael Mittelstadt - ExecPC (Voyager.Net)    WorkMail: meek@execpc.com
Sr. Vice President of Network Engineering     PersonalMail: meek@vib.org
PGP: http://www.execpc.com/~meek/pgpkey.html  WWW: http://www.execpc.com/~meek/
SnailMail: 2105 S.170th/New Berlin, WI/53151  Voice: 1.800.ExecPC.1
Received on Thu Aug 12 1999 - 15:41:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:01 MST