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


ftp-server-nat

This is an old revision of the document!


uFTP - FTP server under NAT

uFTP can easily set to work under NAT, some parameters need to be adjusted.

1) Set the FTP main port, default value is on port 21. Configure accordingly the NAT settings in your route to forward the TCP connection on the uFTP server machine to port 21.

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

2) Set the FTP port range used for passive connections and configure the router accordingly to forward the TCP range to the uFTP server machine.

#
# Random port for passive FTP connections range
#
RANDOM_PORT_START = 1024
RANDOM_PORT_END   = 1524

3) Set the SERVER_IP parameter with the external static IP address. This parameter is not really important since modern FTP server can overcome this issue.

#USE THE SERVER IP PARAMETER IF THE FTP SERVER IS UNDER NAT
#SERVER IP SHOULD BE SET TO ROUTER IP IN THIS CASE
#IF NOT IN USE LEAVE IT COMMENTED OR BLANK
#USE , instad of . eg: 192,168,1,1
SERVER_IP = 192,168,1,1

uFTP should work with no problem with this configuration.

ftp-server-nat.1713468127.txt.gz · Last modified: 2024/04/18 21:22 by kingk