Ask an iptables configuration question

Source: Internet
Author: User
For more information about iptables configuration, see Linux general technology-Linux technology and application. I'm a newbie. I 'd like to ask you a question. Thank you very much for your understanding!
Assume that there are three hosts, the ip address of the Internet is 202.202.202.100, the gateway is 202.202.202.254, the gateway is installed with apaserv, And the apache service port is 80.
In the middle of the linux system, the nat service is provided. There are two NICs. The eth0 ip address is 202.202.254, the gateway is 202.202.254, The eth1 ip address is 192.168.1.254, And the gateway is 192.168.1.254, when iptables is disabled, the Intranet host can ping the internet.
The ip address on the Intranet is 192.168.1.100, And the gateway is 192.168.1.254.
I would like to ask, if I open iptables, define the default rule as all drop of input chain, all drop of forward chain, and all accept of output chain, so how do I define rules so that the Intranet can access http services on the Internet?
Do I have to add rules for both the forward chain and the postrouting chain?
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.