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,
The method for starting and stopping iptables depends on the Linux release version in use. you can view the documentation of the Linux version in use. In RedHat, start iptables with: # serviceiptablesstart. generally, iptables is already included in
For more information about IPTABLES configuration in linux-general Linux technology-Linux technology and application information, see the following. Simple Application of IPTABLES:
Iptables-a input-p tcp-s 10.1.2.187-j ACCEPT
Add 10.1.2.187 to the
Iptables machine configuration
1) view the current configuration
# Iptables-L
-V: Displays detailed information, including the number of matching packets for each rule and the number of matching bytes. The number of matching packets and flow meter
Author's original: Http://blog.chinaunix.net/uid-9950859-id-98277.html The data to be transmitted on the Internet will be divided into small packets, once we have connected to the network, there will be a lot of packets entered, left, or through our
Firewall:Firewalls in the IT domain: a complete set of security isolation tools;Software firewall:Application software processing logic to run the common hardware implementation of the firewall;The most common firewall in Linux is: NetFilter network
Currently, there are three main types of firewalls: packet filtering, application proxy, and status detection packet filtering firewalls: static packet filtering firewalls are no longer available in the market, replace it with the dynamic packet
First, about Iptables
Iptables is a command-line-based firewall tool that uses rule chains to allow/block network traffic. When a network connection attempts to build on your system, iptables finds its corresponding matching rule. If it is not
Iptables is a common firewall software in Linux, the following describes how to install and clear iptables rules. iptables only opens the specified port, and iptables shields basic applications of iptables, such as specified ip addresses, ip
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.