I am having problems with ProFTPD server, because I am not able to set it to work correctly when multiple ports are active (IP address is the same).
In my proftpd.conf file, I have added this section:
<VirtualHost 0.0.0.0> Port 2122 Umask 022 ServerName "Example" DefaultRoot /home/usr1/www/example1 UserAlias fuser usr1 # Valid LOGINs <Limit LOGIN> AllowUser usr1 DenyALL </Limit> </VirtualHost>
So, when I try to establish connection to port 21, everything is ok, and I get directory listing. But when I try to establish connection to port 2122, it connects, but I get an error 500 Illegal PORT command at the very end.
In Linux Firewall ports 21 and 2122 are opened.
This is what I get when execute netstat -lpn | grep ftp
tcp6 0 0 :::2122 :::* LISTEN 30597/proftpd: (acc tcp6 0 0 :::21 :::* LISTEN 30597/proftpd: (acc
Now, I am not sure, where could be a problem with this virtual server, and why I cannot get directory listing at the very end.
The point is, that I need two FTPs, since some of users should connect to the first one, and some of them to the second. Every FTP has its own home directory.
If needed, I can provide the full proftpd.conf file.