uFTP - FTP Server

uftp server, open source ftp server, linux ftp server, linux ftp server for embedded, easy to configure ftp server, ftp server for initramfs

User Tools

Site Tools


uftp-server-configuration

This is an old revision of the document!


uFTP Server configuration uFTP server can be configured with the “uftpd.cfg” configuration file, the location of the file can be either on the same path of the binary application or under “/etc/uftpd.cfg”.

Here below a sample “uftpd.cfg” configuration file.

#FTP CONFIGURATION SAMPLE "/etc/uftpd.cfg"

#######################################################
#                 UFTP SERVER SETTINGS                #
#######################################################

MAXIMUM_ALLOWED_FTP_CONNECTION = 30
#MAXIMUM ALLOWED CLIENT CONNECTIONS ON THE SERVER

FTP_PORT = 21
#TCP/IP PORT SETTINGS (DEFAULT 21)

SINGLE_INSTANCE = true
#Allow only one server instance (true or false)

DAEMON_MODE = true
#Run in background as a daemon

IDLE_MAX_TIMEOUT = 3600
# Idle timeout in seconds, client are disconnected for inactivity after the
# specified amount of time in seconds, set to 0 to disable


MAX_CONNECTION_NUMBER_PER_IP = 2
#LIMIT THE MAXIMUM NUMBER OF CONNECTION FOR EACH IP ADDRESS
# 0 TO DISABLE


MAX_CONNECTION_TRY_PER_IP = 3
#THE IP ADDRESS WILL BE BLOCKED FOR 5 MINUTES AFTER THE SPECIFIED NUMBER OF WRONG LOGIN ATTEMPTS 
#0 TO DISABLE

#USERS
#START FROM USER 0 TO XXX
USER_0 = username
PASSWORD_0 = password
HOME_0 = /
GROUP_NAME_OWNER_0 = usergroup
USER_NAME_OWNER_0 = user

USER_1 = apache
PASSWORD_1 = apachePassword
HOME_1 = /var/www/html/
GROUP_NAME_OWNER_1 = www-data
USER_NAME_OWNER_1 = www-data

USER_2 = anotherUsername
PASSWORD_2 = anotherPassowrd
HOME_2 = /

Parameters explained.

MAXIMUM_ALLOWED_FTP_CONNECTION = 30

Define the number of maximum client allowed connections on the FTP server, to reduce server memory usage this number can be reduced.

FTP_PORT = 21

FTP server TCP/IP port, 21 is the standard FTP service port.

SINGLE_INSTANCE = true

If enabled the single instance check will allow only one server instance to run.

DAEMON_MODE = true

When the daemon mode is activated uFTP server runs as a service in background, this option can be deactivated to run the server from the console for debug purpose.

IDLE_MAX_TIMEOUT = 3600

Ftp clients will be automatically closed if there is no activity for more than the specified number of seconds.

MAX_CONNECTION_NUMBER_PER_IP = 2

FTP resource can be limited for each IP address by setting a maximum number of connections limit per IP.

MAX_CONNECTION_TRY_PER_IP = 3

To prevent brute force attacks IP address are banned from the server for 5 minutes after the specified number of wrong login attempts.

USER_0 = username
PASSWORD_0 = password
HOME_0 = /
GROUP_NAME_OWNER_0 = usergroup
USER_NAME_OWNER_0 = user

USER_1 = apache
PASSWORD_1 = apachePassword
HOME_1 = /var/www/html/
GROUP_NAME_OWNER_1 = www-data
USER_NAME_OWNER_1 = www-data

USER_2 = anotherUsername
PASSWORD_2 = anotherPassowrd
HOME_2 = /
uftp-server-configuration.1527538817.txt.gz · Last modified: 2019/03/26 12:32 (external edit)