1. Show the status of the firewallRun the following command with root privileges:
# iptables-l-n-v
Parameter description:
-L: Lists the rules.
-V: Displays detailed information. This option displays the interface name,
1. Introduction: CentOS? What is the shortest margin of the dual ship ?? Powerful Fire Prevention ??, It is collectively referred to as iptables, but the more correct name is iptables/netfilter. Iptables is a usage? Which region accounts? ?? Why?
1. Iptables configuration file & para;The default configuration file in RHEL/CentOS/Fedora Linux is:/Etc/sysconfig/iptables-the system executes the script to activate the firewall function by reading the file.2. Basic operation: Display the default
Enable iptables firewall for CentOS and iptables for centos
In fact, these things should be clearly written as soon as they are completed. They have been written for a long time. Maybe they have not been written in some places. I hope to see the
Enable iptables firewall for CentOS
CentOS used iptables as the firewall before 7.0 and firewall after 7.0. In fact, I don't know why, but most people use iptables, so I also use it.
1. Disable firewall
1 // stop firewall2 sudo systemctl stop
Iptables is a good firewall software in Linux, this article describes how to install iptables, add and clear rules, open specified ports, and shield basic applications of iptables in CentOS, such as specified ip addresses and ip segments. 1. install
Although we cannot completely stop attacks, some security work must be done. In Linux, you can configure Iptabels to enhance server security. It is complicated to configure Iptables. However, it is not difficult to configure Iptables step by step
Content of this week's job:The system input and output default policy is drop, please complete the following questions about Iptables;Set the default policy to drop first# iptables-p OUTPUT DROP# iptables-p INPUT DROP1. The Web server that restricts
Disable the default firewall in CentOS 7.0 and enable the iptables firewall.
Operating System Environment: CentOS Linux release 7.0.1406 (Core) 64-bitCentOS 7.0 uses firewall as the firewall by default. Here we change it to iptables firewall.
1.
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.