LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   how to enable port 8000 in CentOS 7? (https://www.linuxquestions.org/questions/centos-111/how-to-enable-port-8000-in-centos-7-a-4175539066/)

cebo_myeza 04-07-2015 11:34 PM

how to enable port 8000 in CentOS 7?
 
hi everybody

i am using centOS 7 and i am new to Linux, i just want to know how to modify the local firewall in centOS 7 to enable port 8000 because i need the port in order to be able to access the splunk web on centOS 7

dijetlo 04-08-2015 07:55 AM

Hi Cebo

Welcome to Linuxquestions

Quote:

centOS 7 to enable port 8000
Enabling normally means configuring it to accept packets on the firewall. Most applications require at least 2 ports to be opened, I'm not familiar with splunk but I'd encourage you to check and see what the second port would be.
That said, according to memory, there is a graphical thingy that you can access by going to activities overview->typing in 'firewall' and hitting the enter key and then you'll see something named "firewal-config" or something similar. I've never used it but it's supposed to be easy to figure out.

Or, you can configure your firewall through iptables, which has an educational manual page and the added bonus of reliably working.

Doug G 04-08-2015 12:01 PM

If you're using the default firewalld, use firewall-cmd --add-port=8000/tcp

You can modify the command to operate in a specific zone, be a permanent change, etc. Refer to man firewall-cmd


All times are GMT -5. The time now is 08:35 PM.