uFTP server¶
uFTP is an open source FTP and FTPS server written in C for Linux and other POSIX systems. It is one binary and one configuration file, it is easy to build, and it runs from tiny embedded systems to busy servers.
Quick start{ .md-button .md-button--primary } Source code on GitHub{ .md-button }
Why uFTP¶
- Simple. One program, one configuration file (
uftpd.cfg), every option explained in the file. - FTP and FTPS. Explicit TLS (
AUTH TLS) on the control and the data connections, passive and active mode, IPv4 and IPv6. - Light. One process with a few threads, not one process per client. Memory use is predictable: see Configuration.
- Portable. Plain C. It runs on x86, x64, ARM and other architectures, and it can be built as a static binary.
- Careful by default. Hashed passwords, limits per address and per account, login lock-out, a free space guard, and a ready, tested filter for
fail2ban. - Tested. An automatic test suite, fuzzing, and builds with AddressSanitizer and ThreadSanitizer.
- Open. MIT license: free for personal and commercial use, and you can reuse the code.
Why another FTP server?¶
I have worked with embedded Linux for decades, and one of the most annoying parts is configuring servers so that they match the
application. Most FTP servers are hard to compile, hard to configure and hard to understand. uFTP is an easy alternative to the
classic heavy servers: one portable program, one configuration file that can sit in the directory you start the server from or in /etc/, and only a few settings
to make. That makes it a good fit for small distributions and even for an initramfs, where a server is needed and a full one is too much.
Where to go next¶
| I want to... | Read |
|---|---|
| Try it in five minutes | Quick start |
| Build and install it | Installation |
| Use FTPS | TLS and certificates |
| Know every option | Configuration |
| Run it behind a router | Behind a NAT or a firewall |
| Fix a problem | Troubleshooting |
Source code: https://github.com/kingk85/uFTP