You are not logged in.
Pages: 1
Hey guys...
I'm looking for a good ftp proxy, to save bandwith while downloading the arch-packages onto multiple clients.
Squid doesn't work for me, because it does not support the ftp-protocol on the client-side... and pacman does not support http-downloads.
Is the a recommended tool?
I found this one: http://www.ftpproxy.org/
Maybe anyone could create a package for it...
Regards,
Moritz
Offline
[snip from its webpage]
Beside this basic function which makes the program useful on firewall or masqueraders it offers fixing the FTP server (e.g. for connections into a protected LAN) and proxy authentication.
[/snip]
So IMHO this is not a caching proxy. For that job you need jftpgw (http://www.mcknight.de/jftpgw). However I'm too busy to create a pkg & don't have access to an AL box at the moment.
Offline
hmmm, what about apache ? It can act as a caching proxy and it speaks ftp.
http://httpd.apache.org/docs-2.0/mod/mod_proxy.html
Something else : why not share /var/cache/pacman (e.g. via NFS) among the various clients ?
Offline
Hey guys!
I missed the information that ftpproxy does not cache... well that would be important 8)
NFS is no solution for me, because i need the proxy as well, and I don't want to launch two daemons (nfs is not running) for one service...
Well... I found a new daemon called frox. (http://frox.sourceforge.net/)
I'll try to create a package for it, but I might need some help with the init-scripts... (yeah, I've never learned shell-programming :cry:) and probably with the dependcies...
Well, let's see when I get some time for that
Regards,
Moritz
Oooops that was me... :?
(actually I don't like anonymous postings! Sorry for that )
so... here's my PKGBUILD... no dependcies at all...I'm to stupid to find them ;-)
pkgname=frox
pkgver=0.7.11
pkgrel=1
pkgdesc="A transparent ftp proxy (supports caching and/or scanning for viruses)"
url="http://frox.sourceforge.net/"
depends=()
conflicts=()
backup=()
install=
source=(http://frox.sourceforge.net/download/$pkgname-$pkgver.tar.bz2)
md5sums=()
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr --enable-local-cache
make || return 1
make prefix=$startdir/pkg/usr install
Offline
pacman -S namcap
namcap frox-0.7.11-1.pkg.tar.gz
plus read the docs to see if there are any other things required.. (like commands in /usr/bin that the binary isn't specifically dependent on, or if the package is written in java or python or perl those generally need to be added w/o namcap letting you know about them)
also run
makepkg -g PKGBUILD
to determine the md5sums line.
I dunno about the init-scripts, I'm no script hacker, but when I need to write one I usually look in /etc/rc.d/, copy a similar script and adapt it. (or the package comes with the init scripts)
Hapy.
Offline
okay...
namcap just said glibc was missing... nothing else.
I'll play a littlebit with it, and if it does all the things I need I'll write a init-script for it!
Regards,
Moritz
Offline
I was out of town (& thus offline ) this week, so I'll give it a shot on Monday when I get home. This seems to be a nice prog, especially for security paranoids like me ([snip]in the default setup it runs as a non root user in a chroot jail.[/snip]).
Offline
Moritz,
Squid proxy, do in fact support ftp caching/access. You just need to enable it in the configuration.
Regarding pacman and proxy, I have made a small wrapper script, that deals with that, see http://bbs.archlinux.org/viewtopic.php?t=1763
Cheers, KS.
Offline
Pages: 1