The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    475
    Likes Received:
    1
    Trophy Points:
    18
    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?
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    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:
    475
    Likes Received:
    1
    Trophy Points:
    18
    Thanks, I have implemented this and will try it out.
     
  4. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    it works for me also. thanks again.
     
  5. sawbuck

    sawbuck Well-Known Member

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page