Firewall in a Linux operating system's floppy disk

Source: Internet
Author: User
The firewall in the Linux operating system's floppy disk-Linux Enterprise Application-Linux server application information. The following is a detailed description. A firewall in LINUX is a combination of software or hardware devices. It is located between an enterprise or a network group computer and an external channel (Internet, restrict external users from accessing the internal network and managing the permissions of internal users to access the external network. It mainly controls the round-trip access to the protected network (that is, the outlets), so that the connection points can be checked and evaluated.

From the emergence of the firewall in LINUX to the present, the firewall has gone through four major stages of development: the first stage: Router-based firewall; the second stage: user-based firewall tool kits; the third stage: A firewall built on a general operating system; Stage 4: A firewall with a secure operating system. Currently, most Firewall vendors in the world provide a combination of software and hardware with secure operating systems, such as NETEYE, NETSCREEN, and TALENTIT. There are also a lot of firewall software on LINUX operating systems, some of which are commercial version firewalls, some of which are completely free and open source code firewalls. Most LINUX tutorials refer to how to use IPCHAINS to build a firewall on the LINUX platform.

Setting and managing firewalls in LINUX operating systems is an important task for network system administrators. Generally, configuring a firewall requires a lot of technical work. Both commercial and free firewalls require software and hardware configuration on the LINUX platform.

Is there a linux firewall that can be carried with you for ease of use? The answer is yes. Now I will introduce you to a LINUX firewall that can be installed on a general floppy disk. The linux Firewall named floppyfw can be stored in a general floppy disk and run independently in RAM memory. It can be used to start the computer, use ipchains to filter out useless IP packets, and use it to configure IP mask (IP masquerade) and monitor ports, you can use a host to remotely control computers in other networks. Floppyfw is very powerful, but it requires a very low hardware environment to run. In addition to a floppy disk, 8 MB of memory is enough.

Floppyfw requires the following hardware devices:

Minimum 8 MB memory, 3.5 "soft drive, display card, keyboard, display. In some LINUX systems, two NICs can be installed to make Floppyfw work normally. This requires that the IRQ and memory address of each Nic be correct. I believe many system administrators are familiar with configuring dual NICs in LINUX.

Floppyfw supports the following NICs. 3Com 3c509; NE2000 compatibles; Tulip-based; Intel EtherExpress PCI.

Software: it is very easy to make Floppyfw into a portable soft disk. But you need to first download Floppyfw to the computer's hard disk in http://www.zelow.no/floppyfw/download. The latest Floppyfw version is 1.0.5 or later. Floppyfw is an image file, you can use the # dd if = floppyfw-1.0.5.img of =/dev/fd0 bs = 72 k Command to decompress the image file and write it to the prepared floppy disk.

About settings: It should be noted that the general floppy disk format will be DOS (FAT) after formatting. In order to start the LINUX system smoothly, we need to make some modifications on this floppy disk. We recommend that you use another computer to modify this floppy disk. It is better to use the MTOOLS tool in LINUX.

Run the following command:

$ Cd/tmp
$ Mcopy a: config
$ Vi config
?? $ Mcopy config:

If you are using another operating system, you can use NotePad to modify it in WINDOWS. On a floppy disk, we can see that floppyfw has a total of five files:

Config (main configuration file );

Firewall. ini (filter rules)

Modules. lst (additional ip_masq module );

Syslinux. cfg (kernel startup parameters );

Syslog. cfg (syslog configuration, such as/etc/syslog. conf ).

In general, we do not need to modify the syslinux. cfg or modules. lst file. Our main task is to modify the config file. To illustrate the problem in a simple and clear way, I don't want to explain the specific configuration list in the config file too much here, but I just want to explain several important items at the end of the config file.

Find "OPEN_SHELL controls shell" in (/bin/ash). If your computer memory is less than 12 MB, set ONLY_8M to "Y ". USE_SYSLOG can be used to determine whether syslogd is running in the system, while SYSLOG_FLAGS is used to determine whether syslogd is started. You can modify it based on your actual situation.

Appendix: configuration List 1, a standard configuration list that passes tests. Because the DHCP service is not provided in this LINUX System and the static IP address is used, it is only for reference by users with similar services.

Filter rules:

Now, let's take a look at the firewall. ini file. The firewall. ini file of floppyfw is not modified. By default, static IP addresses are set to disguise and deny access to some fixed ports. Because we need to build our own firewall, we need to modify the firewall. ini file. We need to comprehensively set filtering rules to close ports that we think are in danger.

I will not explain how to set ipchains here because of the length. If you want to learn more about the ipchains configuration scheme and usage, we recommend that you refer to the following foreign LINUX Firewall ipchains configuration scheme. Http://linux-firewall-tools.com/linux/faq/index.html. For more information about setting the filter rules of firewall. ini, see configuration List 2. This is a modified configuration. If you are not familiar with the LINUX firewall, you can directly download this configuration list for reference or use.

List 2 provides the most basic DNS, SMTP, POP, NNTP, TELNET, SSH, FTP, HTTP, and WHOIS Services, generally, client computers can access the network and use the above services through secure ports.

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.