
Originally Posted by
monkey64
Here's some feedback after I submitted the ticket and those excellent CPanel guys got things working:
The following needs to be added at the top of etc/proftpd.conf, after the ServerName section:
Code:
TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
TCPServiceName ftp
# TCPAccessSyslogLevels debug warn
AND for each Virtual Host.
That's it. Now Host Access Control works as it should.
Example VirtualHost for additional IPs
Code:
<VirtualHost 192.168.0.22>
ServerName ftp.example.tld
AuthUserFile /etc/proftpd/example
MaxClients 3 "Sorry, this ftp server has reached its maximum user count (%m). Please try again later"
DirFakeGroup On ftpgroup
DirFakeUser On ftpuser
DefaultRoot ~
TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
TCPServiceName ftp
[truncated]
Note: Proftpd should add the VirtualHost container for the additional IPs. The two additional directives for access control just need to be added inside of the VirtualHost