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!

Close All Port But Allow List

Discussion in 'Security' started by Reza Salehi, May 30, 2019.

Tags:
  1. Reza Salehi

    Reza Salehi Registered

    Joined:
    May 30, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    GE
    cPanel Access Level:
    Root Administrator
    Hello
    I have a server with centos OS with cpanel control panel and firewall CSF. I want close all output ports except allowed list IPs. would you please help me, how can I close port?
     
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,484
    Likes Received:
    187
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    You want to close all outgoing ports? This is not advisable as it would break lots of functions.

    By default, CSF closes all outgoing ports except the ones that are commonly needed:

    TCP_OUT = "20,21,22,25,37,43,53,80,110,113,443,587,873,993,995,2086,2087,2089,2703"

    This allows for FTP out, SSH out, DNS out. Web, email, and cpanel services.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,528
    Likes Received:
    2,180
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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