top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to disable a port in RHEL?

+1 vote
777 views

In my RHEL system I have enabled a port using,

/usr/bin/firewall-cmd --zone=public --add-port=50000/tcp --permanent

Now how will I disable it? Can anyone help?

posted Feb 29, 2016 by Chirag Gangdev

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

I believe disable means closing a port and you can use IPTABLE something like

$ iptables -A INPUT -p tcp --dport 50000 -m state --state NEW,ESTABLISHED -j DROP

You will require root privileges or SUDO.

answer Feb 29, 2016 by Salil Agrawal
I dint try this one but i have found a solution with the same "firewall-cmd" command,

firewall-cmd --zone=public --remove-port=50000/tcp
cool thanks for the update
Similar Questions
0 votes

I have my product binary built on the RHEL5.5 and my customer is having 6.2. Just want to know the compatibility between these two version. Can we ship the binary to customer?

Thanks

0 votes

Hi

I have a binary of my software built on centos though its working on RHEL but not sure if will work in all cases.
Is there any catch or should we do through testing on RHEL.

Thanks

+1 vote

Google found nothing in this list archives for me but did find this :
http://www.unixmen.com/how-to-jul-convert-rhel-5-to-centos-5/

Before I just go try that on one of my systems can someone confirm that it works?

I'm running RHEL 5.7 so I guess I'd replace the 5.4 in the URL with 5.7. Basically I let my RHEL licenses run out (never really used them) and am getting warnings now from yum. Want to just switch over to the CentOS repos.

+1 vote

I've seen several articles that listed Centos 6.x as vulnerable, but DID NOT LIST RHEL 6.

I'd think that if Centos 6.x is vulnerable, then so would RHEL 6.x, since Centos is made from RHEL sources.

Does anyone know for sure either way?

0 votes

I need a guide to virtualization in RHEL.
I tried many ways but it always gives me a different error, and in fact is very difficult and I know what I'm doing wrong.
What I want to achieve is to install a virtual machine from a ks.cfg on RHEL 6
If someone is holding appreciate some guidance about whether the share.
I've searched Google, Youtube, and other pages about it, and I can not accomplish anything.

...