SBDavid
Jul 18th, 2009
Jul 18th, 2009
Configuring FTP server for passive mode
Configuring FTP server for passive mode.
The common issue faced while running FTP in passive mode is the firewall.
Usually, in FTP servers like pure-ftp, the Passive Port Range can be specified in its configuration file itself.
But, if the Passive Port Range isn’t specified, the server uses the locally available ports for FTP.
These port ranges are specified in /proc/sys/net/ipv4/ip_local_port_range file.
Please follow the below method so that the ports remain constant and FTP runs smoothly.
1. Configure sysctl and set the port range in /etc/sysctl.conf as, net.ipv4.ip_local_port_range
2. sysctl -p would load the new kernel values.
3 Open the port range specified above in your firewall.