Stored in fftp.conf file, contain configuration section named ftpconfig and number of sections describing users and their privileges.
Port number to bind the server to. Default: 21
Maximum connections count to the server, that can be established simultaneously. Default: 1
Interface IP to bind to. Use 0.0.0.0 to listen on any available interface. Default: 127.0.0.1
If you running the server behind a NAT, it is a good idea to put your real IP here. This will help clients to establish data connections. Default: 0.0.0.0
IP mask for local network. This will help the server to distinguish between local and Internet clients. Default: 255.255.255.0
Port range for data connections. You can use it to configurate port forwarding on your gateway device. Default: 1024..65535
Full path with file name for a log file. Comment or delete it to disable logging. Default: disabled
It is recommended to leave this option as it is (/etc/ssl/certs/ca-certificates.crt)
Path to your SSL certificate. Accepted format is x509 ASCII PEM.
Path to PEM private key file for your certificate.
Password to decrypt private key.
Send keepalive packets (some NATs may require this). Default: 0 (disabled)
Note for "accs" field:
not allowed to log in
just read directories and download files
creating new directories, store new files. Append, rename and delete disabled.
all the features enabled.
Note for "pswd" field: pswd=* means "any password is match"
Example of configuration file can be found in Source directory as fftp.conf.
You need GCC and Make installed. If they are not installed you can install them as part of build-essential package:
sudo apt install build-essential
LightFTP uses GnuTLS library. It need to be installed before compiling LightFTP. To install it, open terminal and use:
sudo apt install gnutls-dev
or if this doesn't work try:
sudo apt install libgnutls28-dev
You can download source from https://github.com/hfiref0x/LightFTP/releases or use git.
In case if you want to use git and git is not installed, install it first:
sudo apt install git
Next use the following:
git clone https://github.com/hfilef0x/lightftp cd lightftp/Source/Release make
Result binary is fftp. Next setup ftp config, example config file is Source/fftp.conf. Set port, accounts, path to log file (optionally if you need it), path to certificates if you want to use them, etc.
(c) 2007 - 2020 LightFTP Project