Operating the firewall under CENTOS7

Source: Internet
Author: User

Introduction

  Recently used CENTOS7 system more frequently, in the configuration of the server, always encounter can ping the server, but there is no way to access port 80, this time my intuition tells me, it must be the reason of the firewall, but the use of iptables but how can not find the command, after checking the data to find , centos7 default firewall is firewall, so firewall some common commands to record down, one is to deepen the impression, and secondly convenient query.

Firewall related commands

#启动firewall/bin/systemctl Stop Firewalld.service
#关闭firewall/bin/systemctl Stop Firewalld.service
#开机启动firewall/bin/systemctl able Firewalld.service
#禁止firewall开机启动/bin/systemctl Disable Firewalld.service

#查看firewall状态
/bin/systemctl Status Firewalld.service

Operating the firewall under CENTOS7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.