From owner-freebsd-questions Thu Jan 4 7:25:45 2001 From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 07:25:42 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from kronos.hostuniverse.hu (gep18-5.nyircatv.broadband.hu [195.184.160.117]) by hub.freebsd.org (Postfix) with ESMTP id 6734437B400 for ; Thu, 4 Jan 2001 07:25:40 -0800 (PST) Received: (from witch@localhost) by kronos.hostuniverse.hu (8.11.1/8.11.1) id f04FPbs92080; Thu, 4 Jan 2001 16:25:37 +0100 (CET) (envelope-from witch) Date: Thu, 4 Jan 2001 16:25:37 +0100 From: Andrew Prewett To: freebsd-questions@FreeBSD.ORG Cc: "Victor R. Cardona" Subject: Re: Socks5 --aditional info-- Message-ID: <20010104162537.A91914@kronos.hostuniverse.hu> Reply-To: Andrew Prewett Mail-Followup-To: freebsd-questions@FreeBSD.ORG, "Victor R. Cardona" References: <20001229012707.A28949@home.com> <20001230010451.C21454@kronos.hostuniverse.hu> <20001229183628.A9863@home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001229183628.A9863@home.com>; from vcardona@home.com on Fri, Dec 29, 2000 at 06:36:28PM -0600 X-Mailbox: SENT-MESSAGES Sender: witch@kronos.hostuniverse.hu Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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