Security and use of iptables firewall

Source: Internet
Author: User
Iptables introduction and Installation Command: The key to Linux firewall is iptables. In the 2.2 series, it replaces ipchains and ipfwadm before the 2.0 series. If you want to use any form of firewall, you need to install iptables. I. iptables introduction version: 1.2.7a package size: 115KB estimated disk space: 2.4 MB IptablesIntroduction and Installation Command:

The key to Linux firewall is iptables. In the 2.2 series, it replaces ipchains and ipfwadm before the 2.0 series. If you want to use any form of firewall, you need to install iptables.

I. INTRODUCTION to iptables
Version: 1.2.7a
Software package size: 115 KB
Estimated disk space: 2.4 MB
To use the firewall function of iptable, you need to set it in the kernel to enable the kernel to support the firewall.
If you want to use IPv6, you need to use make patch-o-matic in the kernel source code and directory to expand the kernel. If the source code is expanded from tar, run yes "" | make config & makedep first. otherwise, patch-o-matic may cause errors due to some dependency problems.
Patch the kernel before compiling iptables. During kernel compilation, the program checks the source code tree of the kernel to determine which features are used. Any function can be compiled into the kernel only after it is identified. If an error occurs during patching, the pointer on the patch may be inaccurate, or the patch may have been used.
For many people, there is no need to install kernel patches. The newer versions of the 2.4 series already have many features, unless you want to have some special requirements. If you do not know why a patch is required, it is best not to start.

II. install iptables
Run the following command to install iptables:
Make PREFIX =/usr &&
Make PREFIX =/usr install

III. command explanation
PREFIX =/usr: compile and install iptables to/usr and its subdirectories without using/usr/local.
Included content
Iptable includes iptables, ip6tables, and some library files.
Description
Iptables: The program used in the kernel to establish maintenance and check the IP packet filter rules.
Iptables-save ,~ -Restore: save and restore your iptable settings. Before 1.2.5, it was the lab version.
Ip6tables: a program that uses the same IPv6 and iptable. In 1.2.5, the IPv4 version is still not mature, especially for some modules.
Libip *. so: some modules in the form of dynamic libraries are extensions of kernel iptable functions.
Here is an introduction to iptables, installation, and parameter commands.

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.