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!

Installed WHM and iptable rules block important access by default

Discussion in 'General Discussion' started by crossing, Aug 31, 2014.

  1. crossing

    crossing Active Member

    Joined:
    Oct 23, 2012
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Reseller Owner
    I just installed WHM on CentOS server and iptable rules block important access by default, for example I have installed litespeed webserver and I cannot access litespeed configuration admin area (i.e. IP:7080). Users cannot ftp their accounts either. If I disable iptables with 'service iptables stop' everything is available, as soon as I started access is blocked.

    I need urgent help !
     
  2. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    143
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hey,

    By default iptables block all the ports and you need to open the ports separately for each individual services.
    I will recommend you to install csf, so that you can manage the configuration from WHM, if you are not comfortable
    with the terminal.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,787
    Likes Received:
    81
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    You can allow port 7080 in iptables using the following command

    Code:
    
    iptables -A INPUT -p tcp --dport 7080-j ACCEPT
    
    service iptables save 
    
    server iptables restart 
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mageshm

    mageshm Well-Known Member

    Joined:
    Apr 17, 2014
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chennai, INDIA
    cPanel Access Level:
    DataCenter Provider
    @ crossing,

    Install CSF and allow list of ports you want.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. crossing

    crossing Active Member

    Joined:
    Oct 23, 2012
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Reseller Owner
    Thank you, that solved the problem:)
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,621
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see the suggestion of CSF was helpful. Thank you for updating us with the outcome.
     
    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