Bobcares

For every $500 you spend, we will provide you with a $500 credit on your account*

BLACK FRIDAY SPECIAL EXTENSION

*The maximum is $4000 in credits, Offer valid till December 6th, 2024, New Customers Only, Credit will be applied after purchase and expires after six (6) months

For every $500 you spend, we will provide you with a $500 credit on your account*

BLACK FRIDAY SPECIAL EXTENSION

*The maximum is $4000 in credits, Offer valid till December 6th, 2024, New Customers Only, Credit will be applied after purchase and expires after six (6) months

Open ports in WHM/SSH firewall like a pro

by | Dec 8, 2021

Open ports in WHM/SSH firewall with this handy guide from Bobcares.

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.

Let’s take a look at how our Support Team recently helped a customer open ports in WHM/SSH firewall in a breeze.

How to open ports in WHM/SSH firewall

If you are looking for a way to open ports in WHM or SSH firewall, you have come to the right place. This handy guide by our Support Techs is a lifesaver!

How to open port in CSF Firewall via SSH

  1. First, we have to log in to the Linux server via SSH. Then we will open the csf.conf file located at /etc/csf/csf.conf via any text editor.
  2. Then, we have to add the port we plan on opening.
    # Allow incoming TCP ports
    TCP_IN = "20,443,465,21,22,587,993,25,53,80,110,143,995"
    # Allow outgoing TCP ports
    TCP_OUT = "20,21,443,587,22,25,80,110,43,53"
  3. Next, we have to restart CSF with the following command to allow the changes to come into effect.
    csf -r

How to open port in CSF Firewall via WHM

  1. First, we will log in to WHM.
  2. Then, we will enter firewall in the search bar and click ConfigServer Security & Firewall as seen below:

    open ports in WHM /SSH firewall

  3. Next, we will click the Firewall Configuration button.
  4. After that, we have to scroll down to the Allow incoming TCP ports section. Here, we will enter the port we want to open and click the Change button and save the changes made.
  5. Finally, we have to restart CSF by selecting, Restart csf + lfd button.

[Need assistance with a different query? We are available 24/7.]

Conclusion

In essence, the skilled Support Engineers at Bobcares demonstrated how to open ports in WHM or SSH firewalls.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.