Hybrid NAT and firewall applications in Linux

Source: Internet
Author: User
Linux Enterprise Application-Linux server application information, a hybrid application of NAT and firewall in the Linux operating system. For details, refer to the following section. LINUX has been popular around the world over the past few years thanks to its stability, security, and code openness. As a UNIX system, Linux is being applied in all aspects of the Internet, from scientific computing to cash machines, from web services to high-level Oracle database applications. You can see the shadows of linux. Since Linux complies with the GPL protocol (public software license), anyone can obtain and modify its source code, so its security is much higher than other non-open source systems; and it can be downloaded from the network for free. From these two points, he is very suitable for Network Information locks (soft routing or gateway) and self-built firewalls (in fact, domestic hardware firewall vendors use industrial X86 hardware and linux for their products, although it is not really a hardware firewall ). Nowadays, the School pays too much attention to learning software and development tools on windows and its windows platforms. But the students didn't realize that the UNIX system really supported the Internet. From my perspective on Linux, I would like to show you a corner of the UNIX system.

   What is NAT?

NAT stands for Network Address Translation, which is an IETF standard that allows an organization (including multiple Network nodes) to appear on the Internet with one Address. NAT converts the addresses of each LAN node into one IP address, and vice versa. It can also be applied to the firewall technology to hide individual IP addresses from external discovery, so that external networks cannot directly access internal network devices. At the same time, it also helps the network to surpass address restrictions, reasonably arrange the use of public and private IP addresses in the network.

   Why NAT?

Assume that the campus network provides Internet access services for the campus network. To facilitate management, the IP addresses assigned to campus users by the campus network center are all pseudo IP addresses (internal IP addresses ), however, some users require the establishment of their own WWW server to publish external information. In this case, we can provide such services through NAT. We can bind multiple valid IP addresses or ports to the external network card of the firewall, and then forward packets sent to one of the IP addresses to the internal WWW server of a user through the NAT technology, then, the response packet of the internal WWW server is disguised as the package sent by the legal IP address.

   Tutorial Environment

All the lab environments used in this article are as follows:

LINUX host (server): Dual Nic REDHAT 9.0 host Name: host

WINDOWS 98 host (client): single Nic Host Name: test

One Lenovo D-link 8 port 10 M/M Switch



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // linux.ccidnet.com/col/attachment/2006/12/947333.jpg'); ">



Network Topology

   I. Installation and attention of RED HAT 9.0

Linux is an independent operating system, so it cannot be installed in other operating systems. It has its own startup method and can be installed using either of the following methods.

● Installation from CD-ROM

● Install from the FTP server

Since the Linux system is installed (the first method) and there is a random reference manual, it is not very difficult, so we will focus on the installation from ftp.

Create a boot disk before installation:

1. In the windows operating system, place the installation disk into the optical drive;

2. Run e: \ dosutils \ rawrite.exe (the e drive is an optical drive)

3. Enter e: \ images \ bootnet. img in the running interface.

4. Specify the target disk and enter the user's floppy disk:

In this way, the boot disk of the installer is created.

Use a floppy disk to boot the computer. after entering the blue interface, enter the FTP server address and the ftp user name and password to install it. The installation interface of red hat 9.0 is Chinese. The installation instructions can be customized. Note that/swap (swap partition) the size is twice the memory size. Since it is used as a nat gateway, it is necessary to separate/var (log partition) separately and not less than 500 mb. There is ample space to store logs, it is well documented for future system faults or attacks.

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.