Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure the 80 side of CentOS Firewall

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

It is believed that many inexperienced people do not know what to do about how to configure the 80-end CentOS firewall. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Friends who often use CentOS may encounter the same problems as me. Recently, when I installed and configured the ORACLE database under the Linux CentOS firewall, it always showed that the EM installation failed due to the network port, so I planned to shut down the CentOS firewall first. It feels good to see the configuration instructions of CentOS firewall by chance. Execute the "setup" command to start the text mode configuration utility, select "Firewall configuration" in "Select a tool", then select "run tool" button, CentOS firewall configuration interface appears, set the "security level" to "disabled", and then select "OK".

After restarting the computer in this way, the CentOS firewall has opened ports 80 and 22 by default

Introduction: CentOS is a branch of the Linux family.

CentOS firewall installed in the CENTOS of the virtual machine APACHE can not be used, depressed, the solution is as follows

/ sbin/iptables-I INPUT-p tcp-- dport 80-j ACCEPT

/ sbin/iptables-I INPUT-p tcp-- dport 22-j ACCEPT

Then save:

/ etc/rc.d/init.d/iptables save

After restarting the computer in this way, CentOS Firewall has opened ports 80 and 22 by default.

It should be possible not to restart the computer here:

/ etc/init.d/iptables restart

To shut down the CentOS firewall, you can simply turn off its services:

View CentOS firewall information: / etc/init.d/iptables status

Turn off the CentOS Firewall service: / etc/init.d/iptables stop

* close? I don't know how to do it.

Chkconfig-level 35 iptables off

After reading the above, have you mastered the method of how to configure the 80 side of CentOS firewall? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report