Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Dropping connection because of tcp_wrappers

Discussion in 'General Discussion' started by asmithjr, Oct 30, 2015.

  1. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    510
    Likes Received:
    5
    Trophy Points:
    168
    I use tcp_wrappers and have ALL set to only my IP in the /etc/hosts/allow file as well as sshd: for cpanel to access the server. I had a customer in New Zealand that could not access cPanel and Webmail all of a sudden. I turned off the csf/lfd firewall and it was no help.
    When I added ALL:HIS IP ADDRESS he could then access cpanel and webmail.

    I like having the tcp_wrappers working but would like to find the proper setting instead of ALL: in the hosts.allow file to allow him to access cpanel and webmail. I was not aware that using tcp_wrappers would deny access to cpanel and webmail until I found this in the /usr/local/cpanel/logs/error_log

    "Dropping connection from xxx.xx.xxx.xxx because of tcp_wrappers at cpsrvd.pl line 4066." for his IP address.

    Does anyone know what to use?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    6
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    We've been using the following entries in hosts.allow for quite some time.

    #Allow cpanel services
    cpaneld : ALL : allow
    webmaild : ALL : allow
    whostmgrd : ALL : allow
    cpdavd: ALL

    Can't say if there are any more current directives being suggested.
     
  3. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    510
    Likes Received:
    5
    Trophy Points:
    168
    Thanks, I have implemented this and will try it out.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    510
    Likes Received:
    5
    Trophy Points:
    168
    it works for me also. thanks again.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    6
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Good to know.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,183
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice