Sunday 11 December 2016

Allow/block ports in Linux/centos/redhat iptables

If you want to open port in firewall via command line

vi /etc/sysconfig/iptables and add below line

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

save and exit.

#service iptables restart

3 comments:

  1. Stunning, this is truly intriguing perusing. I am happy I discovered this and got the chance to peruse it. Extraordinary employment on this substance. I like it. making a donation

    ReplyDelete
  2. West texas IT consulting agency I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.

    ReplyDelete
  3. This article will talk about the distinctions between the Linux and Windows working programming's; we examine a portion of the star's and con's of every framework. https://onohosting.com/

    ReplyDelete

Install XRDP in Centos 7

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update yum groupinstall "GNOME Desktop" ...