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.

Ports blocked on server reset?

Discussion in 'General Discussion' started by mark1hos, Oct 16, 2005.

  1. mark1hos

    mark1hos Active Member

    Joined:
    Jun 18, 2003
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Somerset, UK
    When I reset one of our servers the ports for cpanel, whm and ssh no longer work. It just hangs.

    The server itself comes back up and works etc etc, but its as if the ports get blocked.

    I have checked APF and all ports are included in the configuration.

    The only way to get passed this (although I don't know how) is to reset the server and then just as its finished rebooting login into SSH, I initially get a connection refused then I log in again and I access SSH.

    Once I am in and the server has rebooted, cPanel, whm and ssh work. But I merely logged in to ssh.

    Could anyone shed any light on this?
     
  2. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Did you check the messages and dmesg. I thing you can find out the reason from that files.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Since you're using APF, make sure that the files /etc/apf/deny_hosts.rules and /etc/apf/ad/ad.rules are relatively small (a handful of IP addresses). If you have a large number of blocks, it can cause the startup procedure to hang which can leave other services down. Seen this quite a few times with APF which doesn't do a good job of tidying itself up.
     
Loading...

Share This Page