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!

iptables on cPanel-DNSOnly and nrpe

Discussion in 'Security' started by Asim Zeeshan, Jul 11, 2015.

  1. Asim Zeeshan

    Asim Zeeshan Member

    Joined:
    Nov 13, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    I have a clean installation of cPanel-DNSOnly. Everything is setup and running great

    • SELINUX is disabled
    • iptables is running
    • Added the following rule to enable nrpe requests from my nagios server (1.2.3.4)

    Code:
    iptables -A INPUT -m tcp -p tcp --src 1.2.3.4 --dport 5666 -j ACCEPT
    iptables -A INPUT -m udp -p udp --src 1.2.3.4 --dport 5666 -j ACCEPT
    To diagnose this, I tried these as well but no effect

    Code:
    iptables-save > /etc/sysconfig/iptables
    iptables -F
    iptables-restore < /etc/sysconfig/iptables
    iptables-save
    service iptables restart
    After spending about 2 hours, I just turned it off and nagios could reach the cPanel-DSNOnly server. At the moment its stopped but I want to fix my problem to get it back online with iptables

    Any help?
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,678
    Likes Received:
    71
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    This should work for you
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Have you considered installing a firewall management utility such as CSF instead of adjusting the iptables rules manually?

    Thank you.
     
    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