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.

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:
    30
    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:
    145
    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.
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    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 
    
    
     
  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.
     
  5. crossing

    crossing Active Member

    Joined:
    Oct 23, 2012
    Messages:
    30
    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:
    30,678
    Likes Received:
    650
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page