Example Slave Config

From DrFTPD

Jump to: navigation, search

In order to setup a slave, you'll have to copy the slave.zip over to the server that the slave is to be hosted on. Note that the slave.zip must be compiled (with ant) on the same basic platform as the slave is to be ran on or problems will arise (with paths, etc).


Slave.conf


######################
### Slave settings ###
######################

# What you want to name the slave. You will also need to use the "site addslave <slave-name>" 
#  via ftp on the master so that they will talk to each other. 
# It is also necessary to use the "site slave <slave-name> addmask ident@IP" command via ftp in order for the slave to connect.
slave.name=MySlave

#root to serve contents from, is automatically created for you (if it doesn't already exist)
slave.root.1=/root/drive2/drftpd/site

#you can use several roots for striping files across
#several hard drives without using RAID or similar.
#slave.root.2=d:/

# Master host/ip
master.host=joe.phreefilez.com
#port to connect to the master
master.bindport=1099
#Set the master to use SSL for slave connections as well
slave.masterSSL=true

# pasv port range. 
# 
# note: If you are behind a router, you'll need to foward these ports to the specific 
# computer upon which said slave is located.
slave.portfrom=30000
slave.portto=33000

# pasv_addr
#
# Set this to the external IP address of your network, the one in which passive connections
# (connections from other clients back to your ftp server) will be directed at. 

# note: Make sure that the above ports are forwarded to the below address if things don't work.
pasv_addr 1.2.3.4


# Enable checksums for uploads
# [ true | false ]
enableuploadchecksums=true


# Enable checksums for downloads
# [ true | false ]
enabledownloadchecksums=true


#bufferSize set at 0 lets the kernel handle the buffer sizes
bufferSize=0

# This is the maximum the slave will wait for the master
# timeout on the slave (on the master side) should be equal
# "site slave <slavename> set timeout <value>
# 60000 = one minute
slave.timeout=60000

Personal tools
SourceForge.net Logo