Iptables 4 Table 5 chain (not finished)

Source: Internet
Author: User

iptables 4 Sheets: filter,nat,raw,mangle, where the default table is filter
such as: Iptables-a-P tcp-j accept equivalent to iptables-t filter-a-P tcp-j Accept

Iptables is the management tool for Linux, located in/sbin/iptables, the real implementation of the firewall is NetFilter, which implements the packet filtering structure in the Linux kernel.
the iptables contains 4 tables and 5 chains. Which means that according to the operation of the packet is differentiated, the chain is based on different hook points to differentiate, the table and chain is actually the NetFilter two dimensions.
4 tables are Filter,nat,mangle,raw, where the default table is filter. Table processing has a priority of raw>mangle>nat>filter.
Filter : General filtering function.
NAT: Used for address forwarding.
mangle: Used to modify a specific packet.
Raw: The highest priority, when setting raw, is generally to let iptables do the packet tracking processing, improve performance.

5 chains: Prerouting,input,output,postrouting,forward
prerouting: Before the packet enters the routing table.
INPUT: After routing the table, the destination is native.
FORWARD: The destination is not native after routing the table.
OUTPUT: Generated by this machine, forwarded outward.
postrouting: Before sending to the NIC interface.

Rules table:
1.filter: Three chains: Input,forward,output

Iptables 4 Table 5 chain (not finished)

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.