Configure the suse10.2 firewall-Linux Enterprise Application-Linux server application information. For more information, see. The experiment environment is the same as yesterday's experiment environment. The purpose of this experiment is to set up A firewall in the suse10.2 System of notebook A so that machines in the two subnets can ping each other without adding routes, in addition, machines in the 192.168.34.0/24 subnet can connect to the internet through the gateway 192.168.33.1.
1. Use the yast tool in the suse10.2 System of the notebook A to enter the firewall configuration interface and enable the firewall function in the Start-Up menu.
2. In the Interfaces menu, change the Interface attribute of the IP address 192.168.34.1 Nic to Internal Zon, and change the Interface attribute of the IP address 192.168.33.52 Nic to Enternal Zon.
3. In the Masquerading menu, select Masquerade Networks to enable the system's NAT Function.
4. Delete the route containing 192.168.34.0/24 from the machine in the 192.168.33.0/24 subnet (except for 192.168.33.1.
5. ping 192.168.33.10 and 192.168.33.1 on computer B whose IP address is 192.168.34.50, and all ping operations are successful.
6. Now, go back to notebook A and go to the firewall settings page. Open Masquerading, cancel the selection of Masquerade Networks, and restart the firewall.
7. Go back to computer B and repeat Step 1's ping operation again.
8. Return to the command line interface of suse10.2, enter vi/etc/sysconfig/SuSEfirewall2, enter the firewall setting text, and change FW_FORWARD = "" To FW_FORWARD = "192.168.34, 0/24, 192.168.33.0/24 ".
9. The ping operation in step 1 is also repeated on computer B, and the ping is successful. However, when you ping www.google.com again, the ping fails.
10. Enter vi/etc/sysconfig/SuSEfirewall2 in The Notebook A and enter the firewall settings text. Set FW_FORWARD = "192.168.34, 0/24, replace 192.168.33.0/24 with FW_FORWARD = "192.168.34, 0/24, 192.168.33.0/24 192.168.34.0/24, 0.0.0.0/0 ".
11. When I ping www.google.com again on computer B, I find that the ping is successful.
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