Date: Thu, 4 Jan 2001 16:25:37 +0100 From: Andrew Prewett <prewett@kronos.HostUniverse.net> To: freebsd-questions@FreeBSD.ORG Cc: "Victor R. Cardona" <vcardona@home.com> Subject: Re: Socks5 --aditional info-- Message-ID: <20010104162537.A91914@kronos.hostuniverse.hu> In-Reply-To: <20001229183628.A9863@home.com>; from vcardona@home.com on Fri, Dec 29, 2000 at 06:36:28PM -0600 References: <20001229012707.A28949@home.com> <20001230010451.C21454@kronos.hostuniverse.hu> <20001229183628.A9863@home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 29, 2000 at 06:36:28PM -0600, Victor R. Cardona wrote:
> On Sat, Dec 30, 2000 at 01:04:51AM +0100, Andrew Prewett wrote:
> > On Fri, Dec 29, 2000 at 01:27:07AM -0600, Victor R. Cardona wrote:
> > > I forgot to mention that I do not see Socks when I run netstat. I don't
> > > know if that means anything.
> >
> > It means that your socks server not running. (netstat -n | grep 1080)
> >
> > Start socks in the foreground with debugging info enabled:
> > socks5 -fos -d3
>
> I tried that. I still cannot get it to work. netstat is still not
> showing anything, even though top shows that there is a process. There
> is no errors in the debugging output.
>
I start socks with the following script, and works like a charm:
--------------------
#!/bin/sh
case "$1" in
start)
if [ -x /usr/local/libexec/socks5 ]; then
/usr/local/libexec/socks5 -b 10.1.1.254:1080 -p -n 16 -d \
> /dev/null && echo 'Socks5 '
fi
;;
stop)
if [ -x /usr/local/bin/stopsocks ]; then
/usr/local/bin/stopsocks -INT && echo 'Socks5 '
elif [ -x /usr/local/sbin/stopsocks ]; then
/usr/local/sbin/stopsocks -INT && echo 'Socks5 '
else
killall socks5 && echo 'Socks5 '
fi
;;
*) :;;
esac
--------------------
[prompt]$ netstat -n | grep 1080 | grep LISTEN
tcp4 0 0 10.1.1.254.1080 *.* LISTEN
My socks5.conf:
--------------------
set SOCKS5_BINDINTFC 10.1.1.254:1080
set SOCKS5_PIDFILE /var/run/socks5.pid
set SOCKS5_MAXCHILD 16
set SOCKS5_V4SUPPORT
auth - - -
interface 10.1.1. - 10.1.1.254
interface - - 195.228.250.4
permit - - 10.1.1. - - -
--------------------
Do you have a libsocks5.conf file (and libs) on the client?
See libsocks5.conf(5).
--------------------
#proxy cmd dst-host dst-port userlst proxylst
socks5 - - - - 10.1.1.254:1080
--------------------
You could set the environment variables on the client (depends on the shell,
this is sh/ksh/bash) to use with runsocks, etc.
export SOCKS_SERVER="10.1.1.254:1080"
export SOCKS4_SERVER="${SOCKS_SERVER}"
export SOCKS5_SERVER="${SOCKS_SERVER}"
You should read the apropriate manpages carefully. I'm sure, there is an
answer for your problem.
Hope this helps,
-Andrew
--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010104162537.A91914>
