Iptables in kernel patch Compilation

Source: Internet
Author: User
Compile the iptables-Linux general technology-Linux programming and kernel information in the kernel patch. The following is a detailed description. My system is rhel upload one copy patch-o-matic-ng-200500412.tar.gz.one copy iptables1.3.7.tar.gz
The following steps are executed, which is normal .. select the new core 2.4.34 when starting the system, but lsmod when entering the system, I found that the module I played does not exist at all .. please give me some advice... here are my steps:

Under the/usr/src directory
# Tar-zxvf linux-2.4.34.tar.gz

# Tar-zxvf iptables1.3.7.tar.gz

# Rm-f linux-2.4

# Ln-s linux-2.4.34 linux-2.4

# Cd/usr/include

# Rm-Rf asm linux scsi

# Ln-s/usr/src/linux-2.4/include/asm-i386 asm

# Ln-s/usr/src/linux-2.4/include/linux

# Ln-s/usr/src/linux-2.4/include/scsi

# Tar-zxvf patch-o-matic-ng-200700412.tar.gz

# Cd patch-o-matic-ng-20050331

KERNEL_DIR =/usr/src/linux-2.4 IPTABLES_DIR =/usr/src/iptables-1.3.7./runme string
Prompt whether to apply this module, press "y" to apply. then proceed to the next
KERNEL_DIR =/usr/src/linux-2.4 IPTABLES_DIR =/usr/src/iptables-1.3.7./runme comment
KERNEL_DIR =/usr/src/linux-2.4 IPTABLES_DIR =/usr/src/iptables-1.3.7./runme connlimit
KERNEL_DIR =/usr/src/linux-2.4 IPTABLES_DIR =/usr/src/iptables-1.3.7./runme time
KERNEL_DIR =/usr/src/linux-2.4 IPTABLES_DIR =/usr/src/iptables-1.3.7./runme iprange
KERNEL_DIR =/usr/src/linux-2.4 IPTABLES_DIR =/usr/src/iptables-1.3.7./runme geoip
KERNEL_DIR =/usr/src/linux-2.4 IPTABLES_DIR =/usr/src/iptables-1.3.7./runme nth
KERNEL_DIR =/usr/src/The linux-2.4 IPTABLES_DIR =/usr/src/iptables-1.3.7./runme ipp2p
KERNEL_DIR =/usr/src/linux-2.4 IPTABLES_DIR =/usr/src/iptables-1.3.7./runme quota

# Linux-2.4/cd/usr/src/
# Make mrproper
# Make menuconfig
Select the patch above
# Make dep
# Make bzImage
# Make modules
# Make modules_install
# Depmod? A
# Make install
# Shutdown-r now
After restarting, select the new core and enter the system. After that, I added a sentence in the firewall script fire. sh.

Iptables-p tcp -- syn -- dport 22-m connlimit -- connlimit-abve 2-j REJECT
Then run and the following prompt appears;
[Root @ lws root] # sh fire. sh
Iptables v1.2.8: Couldn't load match 'connlimmit ':/lib/iptables/libipt_connlimit.so: cannot open shared object file: No such file or directory

Try 'iptables-H' or 'iptables -- help' for more information
This is not to explain to uninstall the original iptables-1.2.8 version, in the iptables-1.3.7 directory re-compiled it .. okay .. just give it a try .. however, You Cannot uninstall the iptables-1.2.8 when uninstalling it. The prompt is displayed:
[Root @ lws root] # rpm-qa iptables
Iptables-1.2.8-12.3
[Root @ lws root] # rpm-e iptables-1.2.8-12.3
Error: Failed dependencies:
Iptables = 1.2.8 is needed by (installed) iptables-ipv6-1.2.8-12.3
Iptables is needed by (installed) redhat-config-securitylevel-tui-1.2.9-1
How can this problem be solved ..

[ This post was last edited by nettx]

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.