Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.