You are not logged in.

#1 2007-06-16 09:29:33

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

[REQ] wwwoffle - proxy cache utility

Could someone produce a PKGBUILD for wwwoffle.  Its a proxy cache designed to be simple to setup & configure.  Particularly useful across a LAN or for dialup.

http://www.gedanken.demon.co.uk/wwwoffle/

Offline

#2 2007-06-16 10:54:23

anakin
Member
From: Portugal
Registered: 2006-09-11
Posts: 85
Website

Re: [REQ] wwwoffle - proxy cache utility

Just uploaded it to the AUR. Get it here.

It's indeed a nice package!


www.geekslot.com - a place where peculiar people fit

Offline

#3 2007-06-16 16:00:13

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [REQ] wwwoffle - proxy cache utility

Many thanks for that prompt response anakin. 

It works fine with Firefox & Seamonkey but not with konqueror which reports "Connection with XXX is broken" for every page, then displays some of the content.  I think it is a wwwoffle/konqueror issue, many reports of konqueror symptoms out there, but haven't found a solution yet.

Offline

#4 2007-06-16 19:42:31

anakin
Member
From: Portugal
Registered: 2006-09-11
Posts: 85
Website

Re: [REQ] wwwoffle - proxy cache utility

Please let me know of any issues or further requests.

I'm still playing arround with wwwoffle so I'll probably tweak the package a bit more and upload the changes. It is good practice to run any daemon with a standard user rather than root which wwwoffle allows by setting it in wwwwoffle.conf although it's not set by default, would you find it reasonable for the PKGBUILD to change the conf file so that the "daemon" user is used rather than root or the current user? Or should this be left up to you to change?


www.geekslot.com - a place where peculiar people fit

Offline

#5 2007-06-16 21:13:32

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [REQ] wwwoffle - proxy cache utility

It would be good for the default to be non-root, with the option to change it if required, on the conf file.

It might also be worth including a post install message about setting 'bind-ipv4 = none' due to the package being compiled with ipv6 enabled (see Q3.10 in http://www.gedanken.demon.co.uk/wwwoffl … /FAQ.html)

Offline

#6 2007-06-17 00:18:50

anakin
Member
From: Portugal
Registered: 2006-09-11
Posts: 85
Website

Re: [REQ] wwwoffle - proxy cache utility

Cotton wrote:

It would be good for the default to be non-root, with the option to change it if required, on the conf file.

It might also be worth including a post install message about setting 'bind-ipv4 = none' due to the package being compiled with ipv6 enabled (see Q3.10 in http://www.gedanken.demon.co.uk/wwwoffl … /FAQ.html)

The PKGBUILD now changes the wwwoffle.conf file so that wwwoffle daemon uses the wwwoffle user and group which are created post install by wwwoffle.install.

There's also a post install warning describing how to get rid of the ipv4 bind issues.

Removed the gnutls dependency.

Thanks for your feedback, let me know your opinion on the latest release.


www.geekslot.com - a place where peculiar people fit

Offline

#7 2007-06-17 12:21:54

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [REQ] wwwoffle - proxy cache utility

Looks good. 

The only thing that puzzled me was that the /etc/wwwoffle/wwwoffle.conf file only appeared to be read once when the daemon starts.  For instance, changing the purge period from 4w to 1w only came into affect after killing then restarting.  I'm sure that when I used it as a standalone application, running wwwoffle -purge used the current conf file.  Do you get this behaviour?

Offline

#8 2007-06-17 13:18:01

anakin
Member
From: Portugal
Registered: 2006-09-11
Posts: 85
Website

Re: [REQ] wwwoffle - proxy cache utility

I suspect it's something about the user running the daemon, did you get this behavior when running as root?


www.geekslot.com - a place where peculiar people fit

Offline

#9 2007-06-17 13:22:22

anakin
Member
From: Portugal
Registered: 2006-09-11
Posts: 85
Website

Re: [REQ] wwwoffle - proxy cache utility

Hummm, does "wwwoffle -purge" tells wwwoffled to change the conf file? If that's so, wwwoffle.conf must be owned by the wwwoffle user or at least belong to the wwwoffle group.


www.geekslot.com - a place where peculiar people fit

Offline

#10 2007-06-17 13:28:30

anakin
Member
From: Portugal
Registered: 2006-09-11
Posts: 85
Website

Re: [REQ] wwwoffle - proxy cache utility

Configuration file editing
   The configuration file editing functions through the http interface that are
   included in WWWOFFLE add some security concerns.  When the files are edited
   the WWWOFFLE process will need to be able to write out the new files.  The
   new files will be written with the same permissions as the old files into the
   same location.  Included configuration files must be in the same directory as
   the main configuration file.  To simplify management of this the default
   location for the configuration files is the directory '/etc/wwwoffle' which
   must be writable by the WWWOFFLE server but not all users.

Thus, /etc/wwwoffle must be owned by the wwwoffle user so that it can create further conf files there. I'll change that and upload a new release.


www.geekslot.com - a place where peculiar people fit

Offline

#11 2007-06-17 13:56:47

anakin
Member
From: Portugal
Registered: 2006-09-11
Posts: 85
Website

Re: [REQ] wwwoffle - proxy cache utility

Done.

Get the latest version from the AUR, let me know if it worked for you.


www.geekslot.com - a place where peculiar people fit

Offline

#12 2007-06-17 15:14:31

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [REQ] wwwoffle - proxy cache utility

No change, but thinking about it, the contents of the conf file probably should only be read by the daemon when its started - if a change is made, the onus is on the person making the change to restart the daemon (in common with other daemons, eg nfsd).

Thanks for your efforts anakin.

Offline

#13 2007-06-17 19:15:35

anakin
Member
From: Portugal
Registered: 2006-09-11
Posts: 85
Website

Re: [REQ] wwwoffle - proxy cache utility

Anyway, since /etc/wwwoffle is protected against upgrades make sure to run  pacman -R wwwoffle followed by rm -rf /etc/wwwoffle and then install again or change the permissions manually.


www.geekslot.com - a place where peculiar people fit

Offline

Board footer

Powered by FluxBB