Iptables problems ?? -- Linux general technology-Linux technology and application information. For details, refer to the following section. Assume that the gateway is configured with a firewall and the server is on the Intranet.
When the Internet accesses an intranet server, when the requested package enters the gateway, it first goes through the PREROUTING chain and then selects the route. If it is local, it goes through the INPUT chain, if it is an intranet server, it goes through the FORWARD chain and then the POSTROUTING chain to the Intranet server.
When the Intranet server responds to the Internet, does the response packet pass through the gateway through the PREROUTING chain filter? Or directly go to the FORWARD chain for forwarding ???
I personally think that the response packet does not pass through the PREROUTING chain, because when I set the default PREROUTIN chain policy to DROP, the Intranet cannot initiate a connection to the Internet, however, packages that can respond to Internet requests.
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