LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-05-2008, 07:52 PM   #1
klauswunderlich
LQ Newbie
 
Registered: Jan 2008
Distribution: openSuse, Debian, Ubuntu
Posts: 22

Rep: Reputation: 15
Privoxy SOCKS4 forwarding error


I'm having a hard time making Privoxy work. (I'm trying to get it working in conjunction with Tor, but I don't think this problem is tor related).

Privoxy has its own user and group. I've configured firefox to use 127.0.0.1:8118 as a http and https proxy server. I've uncommented the forwarding lines in the privoxy config file as per http://www.privoxy.org/user-manual/quickstart.html, including:
Code:
forward-socks4a   /               127.0.0.1:9050 .
Yet I still get a http 503 for any browsing attempted using these proxy settings.

The error message:
Quote:
Originally Posted by Privoxy 3.0.8 on localhost (127.0.0.1), port 8118, enabled
Forwarding failure

Privoxy was unable to socks4a-forward your request http://google.com/ (or anywhere else, for that matter) through 127.0.0.1: SOCKS4 negotiation write failed.
What is a SOCKS4 negotiation, and does a write fail mean that a certain file doesn't have write permissions and should?
 
Old 06-05-2008, 08:17 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Since Privoxy returns the error page, have you uncommented and set the torrc ^Socks.* directives?
 
Old 06-05-2008, 10:50 PM   #3
klauswunderlich
LQ Newbie
 
Registered: Jan 2008
Distribution: openSuse, Debian, Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
I haven't, but since I built tor from source, I don't yet have a torrc, just the included sample. As I said though, I don't believe this has anything to do with tor, because privoxy doesn't work when running on its own. If I disable the "Tor button" add-on, ensure there's nothing in the SOCKS proxy fields in the network settings (ie I remove tor's 127.0.0.1:9005 port info), and try to run firefox using just privoxy, I'm still getting the problem.
What does "write negotiation failed" mean - doesn't that mean the proxy connection to the TCP port 8118 on 127.0.0.1 was refused?

(Oh, and for the sake of it, I've copied the sample torrc file and uncommented these lines:
Quote:
Originally Posted by My torrc file
SocksPort 9050
SocksListenAddress 127.0.0.1
I take it those were the lines you referred to?

Last edited by klauswunderlich; 06-05-2008 at 11:01 PM.
 
Old 06-05-2008, 11:19 PM   #4
klauswunderlich
LQ Newbie
 
Registered: Jan 2008
Distribution: openSuse, Debian, Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
Wow, it's working now. Trouble is, I didn't really learn anything because it mysteriously started working after a stack of updates and a new kernel. Thanks anyway.
 
Old 06-06-2008, 07:09 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by klauswunderlich View Post
I take it those were the lines you referred to?
Yes.


Quote:
Originally Posted by klauswunderlich View Post
Trouble is, I didn't really learn anything because it mysteriously started working after a stack of updates and a new kernel.
I'm pretty sure the kernel has nothing to do with it. (Please at least fill in your distro information in your profile, TIA, it'll help you get nfo and instructions more geared towards the one you use.) Apart from commenting out the ^Socks.* lines to test that part, (and running both with full debug logging on) you could start by for instance running 'ldd' on the Privoxy and TOR binaries and see if any updates affected dependent libraries (but IIRC the only interesting one would be 'libevent' for TOR and you already said you compiled everything from source). Else there isn't much chance of finding out (since AFAIK both Privoxy and TOR don't have any "exotic" requirements wrt libs or networking) except for looking into what updates got installed and what other reconfiguration was done.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Configure Kopete to Use SOCKS4 Proxy ehsanj Linux - Desktop 2 04-10-2007 10:20 AM
Privoxy - "Privoxy is not being used" from http://www.privoxy.org/config/ slimjim Linux - Networking 1 03-12-2007 11:07 AM
Error installing Privoxy on Suse 10.2 exit status 6? eric11210 Linux - Software 2 01-07-2007 10:20 AM
Error forwarding X through SSH (FC4/Debian) ethics Linux - Networking 4 11-13-2005 06:16 PM
Privoxy BajaNick Linux - Software 5 07-04-2003 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration