Next Previous Contents

2. Configuration

2.1 How do I configure frox?

See the INSTALL file for details of compile time options and some configuration information. By default frox uses /usr/local/etc/frox.conf as a configuration file, but this can be changed either by giving --enable-configfile=/etc/whatever/you/want to the ./configure script, or by the -f command line option.

The sample config file is well commented and the best documentation for configuration. Note you will need to edit some of these options for it to work at all.

For the transparent proxying to work your kernel will need to be compiled with transparent proxy support and you will need to enable forwarding with ``echo 1 >> /proc/sys/net/ipv4/ip_forward''. You then need to redirect ftp requests passing through the box to frox. For kernel 2.2 this will be something like ``ipchains -A input -p tcp -s LOCALNET -d 0/0 21 -j REDIRECT 2121'', and for kernel 2.4, ``iptables -t nat -A PREROUTING -p tcp -s LOCALNET --dport 21 -j REDIRECT --to 2121''.

2.2 How should I configure my ftp clients?

Normally you don't have to. Certainly don't set the ftp proxy variable in your browser or set your ftp_proxy environment variable to http://anything.

If you are using non-transparent ftp proxying (set ``DoNTP'' to ``yes'' in the config file) and you have a ftp client which supports this (such as ncftp, or debian's apt-get ftp method) then you need to set it up to login with username ``username@host[:port]''. eg. ``anonymous@ftp.gnu.org'' or ``anonymous@ftp.gnu.org:21''. You can of course do this manually by typing in this when prompted for the username.


Next Previous Contents