- 论坛徽章:
- 0
|
原帖由 platinum 于 2009-12-8 16:53 发表 ![]()
好的,整理一下你的全部过程,这样才好分析
[root@FJF src]# uname -r
2.6.18-128.el5
[root@FJF ~]# ls
anaconda-ks.cfg install.log iptables-1.4.0.tar.tar patch-o-matic-ng-20091202.tar.tar
Desktop install.log.syslog linux-2.6.18.tar.bz2
tar xjvf iptables-1.4.0.tar.tar -C /usr/src/
tar xjvf patch-o-matic-ng-20091202.tar.tar -C /usr/src/
tar xjvf linux-2.6.18.tar.bz2 -C /usr/src/
cd /usr/src/
mv iptables-1.4.0/ iptables
mv linux-2.6.18/ linux
cd iptables/
make KERNEL_DIR=/usr/src/linux/ BINDIR=/sbin/ LIBDIR=/lib/ MANDIR=/usr/man
make KERNEL_DIR=/usr/src/linux/ BINDIR=/sbin/ LIBDIR=/lib/ MANDIR=/usr/man install
[root@FJF src]# iptables -V
iptables v1.4.0
[root@FJF iptables]# date
Wed Dec 9 03:23:21 CST 2009
[root@FJF src]# cd /lib/iptables/
[root@FJF iptables]# ll
total 1612
-rwxr-xr-x 1 root root 7917 Dec 9 03:16 libip6t_ah.so
-rwxr-xr-x 1 root root 4648 May 25 2008 libip6t_connmark.so
-rwxr-xr-x 1 root root 5848 May 25 2008 libip6t_CONNMARK.so
-rwxr-xr-x 1 root root 8024 Dec 9 03:16 libip6t_dst.so
-rwxr-xr-x 1 root root 4671 Dec 9 03:16 libip6t_eui64.so
-rwxr-xr-x 1 root root 8348 Dec 9 03:16 libip6t_frag.so
-rwxr-xr-x 1 root root 8056 Dec 9 03:16 libip6t_hbh.so
-rwxr-xr-x 1 root root 6254 Dec 9 03:16 libip6t_hl.so
-rwxr-xr-x 1 root root 6294 Dec 9 03:16 libip6t_HL.so
-rwxr-xr-x 1 root root 8431 Dec 9 03:16 libip6t_icmp6.so
-rwxr-xr-x 1 root root 6756 May 25 2008 libip6t_icmpv6.so
-rwxr-xr-x 1 root root 8296 Dec 9 03:16 libip6t_ipv6header.so
-rwxr-xr-x 1 root root 5124 May 25 2008 libip6t_length.so
-rwxr-xr-x 1 root root 5876 May 25 2008 libip6t_limit.so
-rwxr-xr-x 1 root root 8604 Dec 9 03:16 libip6t_LOG.so
-rwxr-xr-x 1 root root 4612 May 25 2008 libip6t_mac.so
-rwxr-xr-x 1 root root 4580 May 25 2008 libip6t_mark.so
-rwxr-xr-x 1 root root 4292 May 25 2008 libip6t_MARK.so
-rwxr-xr-x 1 root root 8116 Dec 9 03:16 libip6t_mh.so
-rwxr-xr-x 1 root root 6472 May 25 2008 libip6t_multiport.so
-rwxr-xr-x 1 root root 4168 May 25 2008 libip6t_NFQUEUE.so
-rwxr-xr-x 1 root root 7938 Dec 9 03:16 libip6t_owner.so
-rwxr-xr-x 1 root root 5864 May 25 2008 libip6t_physdev.so
-rwxr-xr-x 1 root root 12754 Dec 9 03:16 libip6t_policy.so
-rwxr-xr-x 1 root root 6749 Dec 9 03:16 libip6t_REJECT.so
-rwxr-xr-x 1 root root 10031 Dec 9 03:16 libip6t_rt.so
-rwxr-xr-x 1 root root 3428 May 25 2008 libip6t_standard.so
-rwxr-xr-x 1 root root 5060 May 25 2008 libip6t_state.so
-rwxr-xr-x 1 root root 8740 May 25 2008 libip6t_tcp.so
-rwxr-xr-x 1 root root 3328 May 25 2008 libip6t_TRACE.so
-rwxr-xr-x 1 root root 6388 May 25 2008 libip6t_udp.so
-rwxr-xr-x 1 root root 8025 Dec 9 03:16 libipt_addrtype.so
-rwxr-xr-x 1 root root 6893 Dec 9 03:16 libipt_ah.so
-rwxr-xr-x 1 root root 4424 May 25 2008 libipt_CLASSIFY.so
-rwxr-xr-x 1 root root 8626 Dec 9 03:16 libipt_CLUSTERIP.so
-rwxr-xr-x 1 root root 4292 May 25 2008 libipt_comment.so
-rwxr-xr-x 1 root root 4696 May 25 2008 libipt_connlimit.so
-rwxr-xr-x 1 root root 4648 May 25 2008 libipt_connmark.so
-rwxr-xr-x 1 root root 5848 May 25 2008 libipt_CONNMARK.so
-rwxr-xr-x 1 root root 12080 Dec 9 03:16 libipt_conntrack.so
-rwxr-xr-x 1 root root 8052 May 25 2008 libipt_dccp.so
-rwxr-xr-x 1 root root 8016 Dec 9 03:16 libipt_DNAT.so
-rwxr-xr-x 1 root root 6004 May 25 2008 libipt_dscp.so
-rwxr-xr-x 1 root root 6004 May 25 2008 libipt_DSCP.so
-rwxr-xr-x 1 root root 6714 Dec 9 03:16 libipt_ecn.so
-rwxr-xr-x 1 root root 6557 Dec 9 03:16 libipt_ECN.so
-rwxr-xr-x 1 root root 5344 May 25 2008 libipt_esp.so
-rwxr-xr-x 1 root root 9432 May 25 2008 libipt_hashlimit.so
-rwxr-xr-x 1 root root 4228 May 25 2008 libipt_helper.so
-rwxr-xr-x 1 root root 8708 Dec 9 03:16 libipt_icmp.so
-rwxr-xr-x 1 root root 6998 Dec 9 03:16 libipt_iprange.so
-rwxr-xr-x 1 root root 5092 May 25 2008 libipt_length.so
-rwxr-xr-x 1 root root 5876 May 25 2008 libipt_limit.so
-rwxr-xr-x 1 root root 8600 Dec 9 03:16 libipt_LOG.so
-rwxr-xr-x 1 root root 4608 May 25 2008 libipt_mac.so
-rwxr-xr-x 1 root root 4580 May 25 2008 libipt_mark.so
-rwxr-xr-x 1 root root 5924 May 25 2008 libipt_MARK.so
-rwxr-xr-x 1 root root 6467 Dec 9 03:16 libipt_MASQUERADE.so
-rwxr-xr-x 1 root root 4613 Dec 9 03:16 libipt_MIRROR.so
-rwxr-xr-x 1 root root 8968 May 25 2008 libipt_multiport.so
-rwxr-xr-x 1 root root 6574 Dec 9 03:16 libipt_NETMAP.so
-rwxr-xr-x 1 root root 4164 May 25 2008 libipt_NFQUEUE.so
-rwxr-xr-x 1 root root 3300 May 25 2008 libipt_NOTRACK.so
-rwxr-xr-x 1 root root 8555 Dec 9 03:16 libipt_owner.so
-rwxr-xr-x 1 root root 5860 May 25 2008 libipt_physdev.so
-rwxr-xr-x 1 root root 4932 May 25 2008 libipt_pkttype.so
-rwxr-xr-x 1 root root 11344 Dec 9 03:16 libipt_policy.so
-rwxr-xr-x 1 root root 8221 Dec 9 03:16 libipt_realm.so
-rwxr-xr-x 1 root root 9679 Dec 9 03:16 libipt_recent.so
-rwxr-xr-x 1 root root 6579 Dec 9 03:16 libipt_REDIRECT.so
-rwxr-xr-x 1 root root 8030 Dec 9 03:16 libipt_REJECT.so
-rwxr-xr-x 1 root root 7696 May 25 2008 libipt_rpc.so
-rwxr-xr-x 1 root root 7071 Dec 9 03:16 libipt_SAME.so
-rwxr-xr-x 1 root root 10532 May 25 2008 libipt_sctp.so
-rwxr-xr-x 1 root root 8016 Dec 9 03:16 libipt_SNAT.so
-rwxr-xr-x 1 root root 3432 May 25 2008 libipt_standard.so
-rwxr-xr-x 1 root root 5060 May 25 2008 libipt_state.so
-rwxr-xr-x 1 root root 7716 May 25 2008 libipt_string.so
-rwxr-xr-x 1 root root 3428 May 25 2008 libipt_TARPIT.so
-rwxr-xr-x 1 root root 4964 May 25 2008 libipt_tcpmss.so
-rwxr-xr-x 1 root root 4500 May 25 2008 libipt_TCPMSS.so
-rwxr-xr-x 1 root root 8736 May 25 2008 libipt_tcp.so
-rwxr-xr-x 1 root root 6904 Dec 9 03:16 libipt_tos.so
-rwxr-xr-x 1 root root 6529 Dec 9 03:16 libipt_TOS.so
-rwxr-xr-x 1 root root 3300 May 25 2008 libipt_TRACE.so
-rwxr-xr-x 1 root root 6423 Dec 9 03:16 libipt_ttl.so
-rwxr-xr-x 1 root root 6331 Dec 9 03:16 libipt_TTL.so
-rwxr-xr-x 1 root root 6384 May 25 2008 libipt_udp.so
-rwxr-xr-x 1 root root 7889 Dec 9 03:16 libipt_ULOG.so
-rwxr-xr-x 1 root root 4611 Dec 9 03:16 libipt_unclean.so
-rwxr-xr-x 1 root root 5908 Dec 9 03:16 libxt_CLASSIFY.so
-rwxr-xr-x 1 root root 6174 Dec 9 03:16 libxt_comment.so
-rwxr-xr-x 1 root root 8059 Dec 9 03:16 libxt_connbytes.so
-rwxr-xr-x 1 root root 8120 Dec 9 03:16 libxt_connlimit.so
-rwxr-xr-x 1 root root 6385 Dec 9 03:16 libxt_connmark.so
-rwxr-xr-x 1 root root 7283 Dec 9 03:16 libxt_CONNMARK.so
-rwxr-xr-x 1 root root 9641 Dec 9 03:16 libxt_dccp.so
-rwxr-xr-x 1 root root 8228 Dec 9 03:16 libxt_dscp.so
-rwxr-xr-x 1 root root 7245 Dec 9 03:16 libxt_DSCP.so
-rwxr-xr-x 1 root root 6997 Dec 9 03:16 libxt_esp.so
-rwxr-xr-x 1 root root 11680 Dec 9 03:16 libxt_hashlimit.so
-rwxr-xr-x 1 root root 5972 Dec 9 03:16 libxt_helper.so
-rwxr-xr-x 1 root root 6868 Dec 9 03:16 libxt_length.so
-rwxr-xr-x 1 root root 7470 Dec 9 03:16 libxt_limit.so
-rwxr-xr-x 1 root root 6404 Dec 9 03:16 libxt_mac.so
-rwxr-xr-x 1 root root 6349 Dec 9 03:16 libxt_mark.so
-rwxr-xr-x 1 root root 7053 Dec 9 03:16 libxt_MARK.so
-rwxr-xr-x 1 root root 11757 Dec 9 03:16 libxt_multiport.so
-rwxr-xr-x 1 root root 8036 Dec 9 03:16 libxt_NFLOG.so
-rwxr-xr-x 1 root root 5830 Dec 9 03:16 libxt_NFQUEUE.so
-rwxr-xr-x 1 root root 4816 Dec 9 03:16 libxt_NOTRACK.so
-rwxr-xr-x 1 root root 8072 Dec 9 03:16 libxt_physdev.so
-rwxr-xr-x 1 root root 6819 Dec 9 03:16 libxt_pkttype.so
-rwxr-xr-x 1 root root 5947 Dec 9 03:16 libxt_quota.so
-rwxr-xr-x 1 root root 12886 Dec 9 03:16 libxt_sctp.so
-rwxr-xr-x 1 root root 4853 Dec 9 03:16 libxt_standard.so
-rwxr-xr-x 1 root root 6850 Dec 9 03:16 libxt_state.so
-rwxr-xr-x 1 root root 7988 Dec 9 03:16 libxt_statistic.so
-rwxr-xr-x 1 root root 9588 Dec 9 03:16 libxt_string.so
-rwxr-xr-x 1 root root 6778 Dec 9 03:16 libxt_tcpmss.so
-rwxr-xr-x 1 root root 6483 Dec 9 03:16 libxt_TCPMSS.so
-rwxr-xr-x 1 root root 10379 Dec 9 03:16 libxt_tcp.so
-rwxr-xr-x 1 root root 12713 Dec 9 03:16 libxt_time.so
-rwxr-xr-x 1 root root 4806 Dec 9 03:16 libxt_TRACE.so
-rwxr-xr-x 1 root root 8346 Dec 9 03:16 libxt_u32.so
-rwxr-xr-x 1 root root 8155 Dec 9 03:16 libxt_udp.so
[root@FJF iptables]# iptables -A INPUT -m connlimit --connlimit-above 10 -j DROP
iptables: No chain/target/match by that name
[root@FJF iptables]# lsmod
Module Size Used by
iptable_filter 7105 0
ip_tables 17029 1 iptable_filter
x_tables 17349 1 ip_tables
ipv6 261473 16
xfrm_nalgo 13381 1 ipv6
crypto_api 12609 1 xfrm_nalgo
dm_multipath 24013 0
scsi_dh 11713 1 dm_multipath
video 21193 0
hwmon 7365 0
backlight 10049 1 video
sbs 18533 0
i2c_ec 9025 1 sbs
button 10705 0
battery 13637 0
asus_acpi 19289 0
ac 9157 0
lp 15849 0
floppy 57125 0
snd_ens1371 28513 0
gameport 18633 1 snd_ens1371
snd_rawmidi 26561 1 snd_ens1371
snd_ac97_codec 93025 1 snd_ens1371
ac97_bus 6337 1 snd_ac97_codec
snd_seq_dummy 7877 0
snd_seq_oss 32577 0
snd_seq_midi_event 11073 1 snd_seq_oss
snd_seq 49585 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 11725 4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 42817 0
snd_mixer_oss 19009 1 snd_pcm_oss
snd_pcm 72133 3 snd_ens1371,snd_ac97_codec,snd_pcm_oss
snd_timer 24517 2 snd_seq,snd_pcm
snd 55237 10 snd_ens1371,snd_rawmidi,snd_ac97_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
pcnet32 35269 0
mii 9409 1 pcnet32
soundcore 11553 1 snd
snd_page_alloc 14281 1 snd_pcm
pcspkr 7105 0
i2c_piix4 12237 0
i2c_core 23745 2 i2c_ec,i2c_piix4
parport_pc 29157 1
parport 37513 2 lp,parport_pc
ide_cd 40161 0
serio_raw 10693 0
cdrom 36577 1 ide_cd
dm_raid45 66509 0
dm_message 6977 1 dm_raid45
dm_region_hash 15681 1 dm_raid45
[root@FJF iptables]# insmod /lib/iptables/libipt_connlimit.so
insmod: error inserting '/lib/iptables/libipt_connlimit.so': -1 Invalid module format
dm_mem_cache 9537 1 dm_raid45
dm_snapshot 22245 0
dm_zero 6209 0
dm_mirror 22981 0
dm_log 14529 3 dm_raid45,dm_region_hash,dm_mirror
dm_mod 62201 11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
ata_piix 23621 0
libata 156677 1 ata_piix
sd_mod 25153 0
scsi_mod 141589 3 scsi_dh,libata,sd_mod
ext3 124233 2
jbd 56937 1 ext3
uhci_hcd 25421 0
ohci_hcd 24681 0
ehci_hcd 33357 0
[root@FJF iptables]# insmod /lib/iptables/libipt_connlimit.so
insmod: error inserting '/lib/iptables/libipt_connlimit.so': -1 Invalid module format |
|