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!

SOLVED Configserver green ips in deny ip list

Discussion in 'Security' started by durangod, Sep 16, 2018.

  1. durangod

    durangod Well-Known Member

    May 12, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hi, i know this is not a cpanel issue... But i was wondering if anyone knew what the green text ip's listed in the deny ip mean.

    I posted a list of about 30 ips that had been running scripts on my site for days now to the deny ip part of configserver via the UI. I noticed when i pasted them that some of them were green and all the others normal red text. What do the green ones mean?

    I look for duplicates, none.
    I looked to see if they were on the whitelist also, nope...

    So what could the green text mean?

    Thanks :)

    UPDATE: ok i feel dumb now... it means there is some kind of space after it or something like a comment. I pasted them in notepad first so there would be none of that junk but i guess that is not perfect. Once i got rid of the space after it, they changed back to red.

    Solved !!
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 durangod, Sep 16, 2018
    Last edited: Sep 16, 2018
  2. rpvw

    rpvw Well-Known Member

    Jul 18, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    It doesn't mean anything......

    In Editor mode (switch between the editor mode and the textarea mode by clicking on the Toggle box top left) each new line start is usually the IPs that are active in the deny list (one IP per line), and are shown in red, and comments or inactive IPs are shown in green.

    The actual delimiter for a comment is the # symbol - this signifies that everything after this symbol is a comment and should not be loaded into the firewall tables (it may corrupt the iptables if loaded in the text form)

    Since each new line shows up in the editor mode in red, you will see any # at the start of a line is red, but any # further on in a line (eg after an IP) is green.

    The red/green has no significance other than to attempt to help you edit the list of IPs. If you switch to Textarea mode - everything is black, and errors you might make in syntax are harder to spot.

    Failure to adhere to the correct syntax may result in a corrupt deny table at best, and a non working firewall at worst.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    I've marked this thread as solved.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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