ProFtpd refused connection

Mise

Well-Known Member
May 15, 2011
64
3
58
ProFtpd refused connection to users

Code:
# grep -C3 mod_wrap /var/log/messages

Mar 26 16:12:10 host proftpd: 2021-03-26 16:12:10,562 srv.myserver.com proftpd[10187] 7.8.9.0 (1.2.3.4[1.2.3.4]): FTP session opened.
Mar 26 16:12:10 host proftpd: 2021-03-26 16:12:10,887 srv.myserver.com proftpd[10187] 7.8.9.0 (1.2.3.4[1.2.3.4]): mod_wrap/1.2.4: using access files: /etc/hosts.allow, /etc/hosts.deny
Mar 26 16:12:10 host proftpd: 2021-03-26 16:12:10,889 srv.myserver.com proftpd[10187] 7.8.9.0 (1.2.3.4[1.2.3.4]): mod_wrap/1.2.4: refused connection from 1.2.3.4
Mar 26 16:12:10 host proftpd: 2021-03-26 16:12:10,949 srv.myserver.com proftpd[10187] 7.8.9.0 (1.2.3.4[1.2.3.4]): FTP session closed.

after commenting this line inside /etc/proftpd.conf and restart proftpd, it works again:
Code:
#TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
no services or ip were included inside /etc/hosts.allow and /etc/hosts.deny.
It seems an error when TCP.Wrappers option for proftpd are active in the file configuration while both hosts. files don't have restrictions.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,439
1,004
313
cPanel Access Level
Root Administrator
Hey there! Would this server happen to be running the CentOS 8 operating system? If so, there were changes to TCP.Wrappers as outlined here:


so what you're experiencing is actually normal behavior. Let me know if that isn't the case!
 
  • Like
Reactions: Mise