2011年9月7日 星期三

frox ftp proxy setting

1.install frox package with squid on the server
#apt-get install frox

2.modify frox configuration
#vim /etc/frox.conf

Port 2121
BindToDevice eth0
User nobody
Group nogroup
WorkingDir /var/log/frox
DontChroot no
LogLevel 15
LogFile /var/log/frox/frox-log
XferLogging yes
PidFile /var/run/frox.pid
PAConv yes
BounceDefend yes
AllowNonASCII yes
CacheModule http
HTTPProxy 172.16.100.100:9119
MinCacheSize 65536
DoNTP yes
MaxForks 10
MaxForksPerHost 4
ACL Allow * - *

3.add new iptables rule
iptables -t nat -A PREROUTING -p tcp -s LOCALNET --dport 21 -j REDIRECT --to 2121