Proxy firewall: Linux system Configuration Instance method

Source: Internet
Author: User
Keywords iptables installation nbsp; firewall
Tags aliyun code compile configuration configuration instance directory download files

&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; First download the latest source code for iptables. Compile the installation, and then stop the iptables installed by the system, and use the latest installed iptables to use the newly installed Iptables tool.

Experiment One: Installation

1, download the latest Iptables source code package from http://www.netfilter.org/downloads.html#iptables-1.2.9, is currently iptables-1.2.9.tar.bz, download and save to/usr /LOCAL/SRC directory.

2, into the/USR/LOCAL/SRC directory, unpack the package, into the Iptables source code directory,

#cd/USR/LOCAL/SRC

#bunzip2 iptables-1.2.9.tar.bz

#tar XF Iptables-1.2.9.tar

#cd iptables-1.2.9

3, use the following locust command to compile and install the Iptables source code package

#make PREFIX=/USR

#make prefix=/usr Install

Note: Use the PREFIX=/USR parameter to specify iptables install related files with the/usr directory as the top-level directory, not the default USR, such as iptables files will be installed in/usr/sbin,/usr/lib,/usr/ Man directory, using the LS command to view these directories, can find iptabels related executables and library files,

4, installation complete, using the default installation of the Iptables command and the newly installed iptables command, compare view version information

#/sbin/iptables–v

5. In order to use the newly installed Iptables tool, you need to deactivate the Iptabels command that is executed when the system starts, and remove the firewall startup script from the system boot queue.

#chkconfig –level 2345 iptables off

#chkconfig –list iptables

Then reboot the system with reboot.

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.