You are not logged in.

#1 2003-10-28 21:37:13

Moritz
Member
From: Cologne, NRW, Germany
Registered: 2002-10-12
Posts: 166

ftpproxy

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

#2 2003-10-28 22:58:10

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: ftpproxy

[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

#3 2003-10-28 23:22:13

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: ftpproxy

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

#4 2003-11-03 13:49:58

Guest
Guest

Re: ftpproxy

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

#5 2003-11-03 14:55:21

Moritz
Member
From: Cologne, NRW, Germany
Registered: 2002-10-12
Posts: 166

Re: ftpproxy

Oooops that was me... :?
(actually I don't like anonymous postings! Sorry for that lol)

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

#6 2003-11-03 18:20:51

hApy
Member
From: Victoria, BC
Registered: 2003-04-13
Posts: 194
Website

Re: ftpproxy

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

#7 2003-11-04 08:23:46

Moritz
Member
From: Cologne, NRW, Germany
Registered: 2002-10-12
Posts: 166

Re: ftpproxy

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

#8 2003-11-08 12:18:42

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: ftpproxy

I was out of town (& thus offline smile) 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

#9 2003-11-15 22:05:29

ipqw
Member
From: Denmark
Registered: 2003-11-02
Posts: 24
Website

Re: ftpproxy

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

Board footer

Powered by FluxBB