broken privoxy ipkg?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
donkthemagicllama
DD-WRT Novice


Joined: 20 Jun 2006
Posts: 9

PostPosted: Fri Nov 03, 2006 16:39    Post subject: broken privoxy ipkg? Reply with quote
Has anyone else had problems with privoxy? I installed it using some ipkg I found on the web a long time ago, and it resulted in a ~500kB executable which worked fine. I recently installed SP2 on a new WRT54GL and used ipkg to install privoxy again, and it resulted in a ~150kB executable which didn't work very well. The versions reported were the same, and I was able to get the second one working by copying the executable over from the first. Is there something I'm doing wrong? Is it possible the old one was statically linking some required components that the new one is missing and need to be installed separately? I don't get any errors, but I can't get the privoxy info page to load either...

Thanks for any help...

Donk
Sponsor
cameljock
DD-WRT Novice


Joined: 25 Dec 2009
Posts: 3

PostPosted: Sat Dec 26, 2009 0:22    Post subject: Reply with quote
I've been having problems getting privoxy to work as well. Here's the process I went

through:

Firmware info:
Quote:

DD-WRT v24-sp2 (10/10/09) mini
(SVN revision 13064)


1. Went to Administration tab in my router, enabled JFFS2, applied settings, cleaned JFFS2,

rebooted router.

2. Telnetted into my router, logged in,
Code:

root@DD-WRT:~# mkdir -p /jffs/tmp/ipkg
root@DD-WRT:~# cd /jffs/tmp/ipkg
root@DD-WRT:/jffs/tmp/ipkg# ipkg update

   Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
   Connecting to downloads.openwrt.org (78.24.191.177:80)
   Packages             100% |*******************************|   143k 00:00:00 ETA
   Done.
   Updated list of available packages in /jffs/usr/lib/ipkg/lists/whiterussian
   Downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages
    ...
   Connecting to downloads.openwrt.org (78.24.191.177:80)
   Packages             100% |*******************************|   568  --:--:-- ETA
   Done.
   Updated list of available packages in /jffs/usr/lib/ipkg/lists/non-free
   Downloading http://downloads.openwrt.org/backports/rc5/Packages ...
   Connecting to downloads.openwrt.org (78.24.191.177:80)
   Packages             100% |*******************************| 98390  00:00:00 ETA
   Done.
   Updated list of available packages in /jffs/usr/lib/ipkg/lists/backports

root@DD-WRT:/jffs/tmp/ipkg# ipkg -d root -force-depends -force-defaults install privoxy

   Downloading http://downloads.openwrt.org/backports/rc5/privoxy_3.0.3-1_mipsel.ip
   k ...
   Connecting to downloads.openwrt.org (78.24.191.177:80)
   privoxy_3.0.3-1_mips 100% |*******************************| 66694  00:00:00 ETA
   Done.
   ipkg_install_file: ERROR unpacking control.tar.gz from /jffs/tmp/ipkg/privoxy_3.
   0.3-1_mipsel.ipk
   ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/privoxy_3.0.3-1_mipsel
   .ipk
   ipkg_get_install: I'll leave it there for you to try a manual installation

root@DD-WRT:/jffs/tmp/ipkg#


And that's as far as it will let me go. Could someone please read through my code and see what went wrong and where?

I would also humbly appreciate a walkthrough, from beginning to end, in how to install/configure and then run the privoxy software sucessfully. Thanks in advance!
cameljock
DD-WRT Novice


Joined: 25 Dec 2009
Posts: 3

PostPosted: Sat Dec 26, 2009 5:45    Post subject: Reply with quote
I see that this thread has been gaining quite a few views and has aged over three years and not a single person has been able to answer these questions? What's going on here? Is there something taboo about privoxy? Or is this forum just here for aesthetic purposes?
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sat Dec 26, 2009 11:09    Post subject: Reply with quote
You should use ipkg-opt instead of ipkg which uses another set of tools...

And don't burst in and have an attitude....
It's not the way to get help. Not here nor anywhere else...

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
cameljock
DD-WRT Novice


Joined: 25 Dec 2009
Posts: 3

PostPosted: Sat Dec 26, 2009 11:16    Post subject: Reply with quote
Thank you for responding. I take it that you have read the code/quote I have posted and are implying that I simply replace ipkg with ipkg-opt and follow every step by the letter?

ipkg-opt is not available in the list of alvailable and installable software provided by the default repository dumped by ipkg.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sat Dec 26, 2009 12:13    Post subject: Reply with quote
ipkg-opt needs to be installed....
You need to have an ext3 partition on your usb-device and let it get mounted to /opt and run prep_optware...

http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
opt1k
DD-WRT Novice


Joined: 15 Jan 2010
Posts: 1

PostPosted: Fri Jan 15, 2010 21:26    Post subject: [UPDATED] Well there is another way... Reply with quote
[UPDATED Mon Jan 18 16:36:21 PST 2010]

Format Layout.
---------------------------------------
[Sat Jan 16 13:08:38 PST 2010]
Consolidated size of post.
Added neilvandyke rule-set option.
Fixed all etc files to operate properly 3.0.3-1.
Combined all etc files into gzip-tarball.
Changed installation method removing any use of ipkg.
Fixed some typo-graphical errors.
Added netcat usage information.
Added information about running transparently.


I had a similar problem, it appears the whole configuration for privoxy is broken as well as the installation process with ipkg, which still spits errors no matter how you do it.

Quote:

ipkg-opt needs to be installed....
You need to have an ext3 partition on your usb-device and let it get mounted to /opt and run prep_optware...

http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way


This is very good, but not everyone has the extra storage or space, these people just wanted to install privoxy, and it can be done without that.

####START
# Make sure you have jffs setup.
# Privoxy depends on libpcre.

So lets do this..... If there are any errors in these directions please correct me. I'm writing this from memory.


Here we will use tar to extract the files, it will give some errors but they are non fatal, this way ipkg wont break anything.

Quote:

# cd /jffs

###################################
#Ignore tar errors, but check df to make sure you aren't out of space

Make sure you are working in /jffs

# wget http://downloads.openwrt.org/whiterussian/packages/libpcre_5.0-3_mipsel.ipk

# tar xvzf l libpcre_5.0-3_mipsel.ipk

# rm control.tar.gz; rm debian* ; rm libpcre_5.0-3_mipsel.ipk

# tar xvzf data.tar.gz; rm data.tar.gz



# wget http://downloads.openwrt.org/backports/rc5/privoxy_3.0.3-1_mipsel.ipk

# tar xvzf privoxy_3.0.3-1_mipsel.ipk

# rm control.tar.gz; rm debian* ;rm privoxy_3.0.3-1_mipsel.ipk

# tar xvzf data.tar.gz; rm data.tar.gz




unpack the /jffs/etc/privoxy files
Attached to this post

Quote:


####wget URL_TO_ATTACHED_FILE.TGZ###
#

# cd /jffs/etc

This should be correct, please check the url:
# wget http://www.dd-wrt.com/phpBB2/download.php?id=12915

# mv *download* privoxy-etc.tgz

# tar xvzf privoxy-etc.tar.gz ; rm privoxy-etc.tar.gz


So now lets configure it

Quote:

# cd /jffs/etc/privoxy

# vi config

Quick rundown on vi editor:
Quote:

i = insert
x = delete character
:w config = write to file named config
:q = exit
:wq = write to current file and quit
:q! = quit + dont save changes
escape = exit current mode (such as insert mode)


Now set your listen address, and any other options you desire in /jffs/etc/privoxy/config

Quote:

listen-address $YOUR_IP_ADDRESS_OF_SERVER_HERE:8118


If you un-comment this line in config you will get neilvandyke's strict rule set.
It takes ***A LOT OF CPU POWER***. You were warned.
Quote:

actionsfile neilvandyke



So lets try to start privoxy
Quote:

# privoxy /jffs/etc/privoxy/config



Hint: If you need to transfer files from another host on your network dd-wrt includes netcat
Quote:

Taken from google's cache of http://fak3r.com/2007/02/15/transfer-files-via-netcat-and-tar/
Quote:

Netcat (nc) is a “…simple Unix utility which reads and writes data across network connections, using TCP or UDP protocol. It is designed to be a reliable back-end” tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.” Basically it’s another small, cool Unix tool that allows you to do tons of cool stuff. I found this example out there that lets you transfer files via tar from one box to another. As with anything to do with nc, it’s dead simple, and logical. On the target box, start nc to listen on a port, and tar up anything it ‘hears’ like this:

nc -l -p $PORT | tar -xf -

Then, on the source system, have tar pipe out to netcat, that is pointed to the target host/ip:

tar -cf - $DIRECTORY | nc $HOST $PORT




Running as transparent or intercepting proxy
BUT WE NEED VERSION 3.0.8 OR LATER, CROSS COMPILE FOR MIPS ANYONE?
Quote:

3.20. Can Privoxy run as a "intercepting" proxy?

Privoxy can't intercept traffic itself, but it can handle requests that where intercepted and redirected with a packet filter (like PF or iptables), as long as the Host header is present.

As the Host header is required by HTTP/1.1 and as most web sites rely on it anyway, this limitation shouldn't be a problem.

Please refer to your packet filter's documentation to learn how to intercept and redirect traffic into Privoxy. Afterward you just have to configure Privoxy to accept intercepted requests.

Quote:

7.5.5. accept-intercepted-requests

Specifies:

Whether intercepted requests should be treated as valid.
Type of value:

0 or 1
Default value:

0
Effect if unset:

Only proxy requests are accepted, intercepted requests are treated as invalid.
Notes:

If you don't trust your clients and want to force them to use Privoxy, enable this option and configure your packet filter to redirect outgoing HTTP connections into Privoxy.

Make sure that Privoxy's own requests aren't redirected as well. Additionally take care that Privoxy can't intentionally connect to itself, otherwise you could run into redirection loops if Privoxy's listening port is reachable by the outside or an attacker has access to the pages you visit.
Examples:

accept-intercepted-requests 1



privoxy-etc.tar.gz
 Description:
/jffs/etc/privoxy files

Download
 Filename:  privoxy-etc.tar.gz
 Filesize:  48.21 KB
 Downloaded:  506 Time(s)

aviad_ra
DD-WRT User


Joined: 17 Jun 2006
Posts: 103

PostPosted: Wed Jun 23, 2010 7:15    Post subject: this doesnt work :\ Reply with quote
Hi... I have just tried using your instructions to install the package, and it doesn't work with this error:
"bus error"

Apart for some typing mistakes like:
Quote:
# tar xvzf l libpcre_5.0-3_mpsel.ipk

Extra "l"

And
Quote:

# mv *download* privoxy-etc.tgz

# tar xvzf privoxy-etc.tar.gz ; rm privoxy-etc.tar.gz

Incorrect file name in the untar and delete command.

The main problem IMHO right now is that the config file is apparently missing from the attached configuration file.... so I can't invoke the high CPU usage, because there is no line to uncomment :\

Other then these minor it seems that its 90% there...
Could you please help me with the remaining 10%?

Thank you in advance, Aviad.
keeper1
DD-WRT Novice


Joined: 07 Jun 2010
Posts: 39

PostPosted: Sun May 22, 2011 19:59    Post subject: Reply with quote
accept-intercepted-requests =

that parameter is not acepted by the privoxy you posted or any pryvoxy versions in the ipkg/ipkg-opt

any chance to compile a new one?
keeper1
DD-WRT Novice


Joined: 07 Jun 2010
Posts: 39

PostPosted: Tue May 24, 2011 2:29    Post subject: Reply with quote
nevermind it works with the ipkg-opt one the 3.0.16
kodak
DD-WRT Novice


Joined: 31 Jul 2006
Posts: 17
Location: Warsaw, Poland

PostPosted: Thu Sep 08, 2011 12:09    Post subject: Reply with quote
What is the path for having privoxy updated to 3.0.17?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum