Iptables packet flow

Source: Internet
Author: User
Iptables packet flow to local packet ---- & gt; mangleprerouting ------- & gt; natprerouting ------- & gt; mangleinput ------- & gt; filterinput packet from local source ------- & gt; mangleoutput... iptables packet flow to local packet ----> mangle prerouting -------> nat prerouting -------> mangle input -------> filter input packet from local source -------> mangle output -------> nat output -------> filter output -------> mangle postrouting -------> nat postrouting refers to packets forwarded locally -------> mangle prerouting -------> nat prerouting -------> mangle forward -------> filter forward -------> mangle postrouting -------> the difference between nat postrouting drop and reject lies in dropping data packets directly with "drop, when dropping data packets, reject sends the sender an error message indicating that the www.2cto.com mangle table is mainly used to change the characteristics of data packets, such as TOS and TTL. nat tables are mainly used for address translation, the filter table is mainly used to filter the connection status of data packets of interest. you can use-m state -- state NEW, ESTABLISHED, RELATED, INVALID to control NEW indicates a NEW package ESTABLISHED indicates the response package RELATED indicates connections other than the primary connection, such as FTP-data, INVALID indicates no connection status or unrecognized connection status, generally discarded
Related Article

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.