Linuxip disguise (IPMasquerade)-Linux Enterprise Application-Linux server application information. The following is a detailed description. It is a network function provided by linux. The biggest advantage is that some machines without formal IP addresses are connected to the Internet through a valid IP address, such: use a linux machine to dial up the internet and bring the entire LAN to the internet.
For example, if there is a linux machine 192.168.100.10 on the LAN 192.168.100.0, after dialing the Internet, you can use the following command to implement IP Masquerade:
# Cause all hosts on the 192.168.100/24 network to be masqueraded.
4. In ipfwadm, 24 is the corresponding number of netmask, as follows:
Netmask | x | Subnet
~~~~~~~~~~~~ | ~ ~ | ~~~~~~~~~~~~~~~
255.0.0.0 | 8 | Class
255.255.0.0 | 16 | Class B
255.255.255.0 | 24 | Class C
255.255.255.255 | 32 | Single Machine
5. The TCP/IP gateway of other machines in the LAN should be set to the IP address of the linux machine, and the DNS Server can be set to the IP address of any available DNS server, such as 202.96.0.133.
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.