[LARTC] imq problem

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I've running imq on some servers and it works everywhere except the new
machine I just try to set up.

on that machine I get that

tsunami:/usr/src# iptables -t mangle -A PREROUTING -i eth0 -j IMQ
iptables: No chain/target/match by that name

for testing I've added an 1 and get that

tsunami:/usr/src# iptables -t mangle -A PREROUTING -i eth0 -j IMQ1
iptables v1.2.6a: Couldn't load target `IMQ1':/lib/iptables/libipt_IMQ1.so:
cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

here what I've done plus an strace, I don't have a clue what I did wrong,
works on an other debian woody machine so it can't a dist. problem.

tsunami:/usr/src# tar xvzf libipt_IMQ-1.2.6a.tar.gz -C /lib/iptables
libip6t_IMQ.so
libipt_IMQ.so
tsunami:/usr/src# strace iptables -t mangle -A PREROUTING -i eth0 -j IMQ
execve("/sbin/iptables", ["iptables", "-t", "mangle", "-A", "PREROUTING",
"-i", "eth0", "-j", "IMQ"], [/* 16 vars */]) =3D 0
uname({sys=3D"Linux", node=3D"tsunami", ...}) =3D 0
brk(0)                                  =3D 0x8056a5c
open("/etc/ld.so.preload", O_RDONLY)    =3D -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D7340, ...}) =3D 0
old_mmap(NULL, 7340, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40014000
close(3)                                =3D 0
open("/lib/libdl.so.2", O_RDONLY)       =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0T\27\0\000"..., 102=
4)
=3D 1024
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D8008, ...}) =3D 0
old_mmap(NULL, 11004, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0x40016000
mprotect(0x40018000, 2812, PROT_NONE)   =3D 0
old_mmap(0x40018000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x1000) =3D 0x40018000
close(3)                                =3D 0
open("/lib/libc.so.6", O_RDONLY)        =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024) =
=3D
1024
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1153784, ...}) =3D 0
old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0x40019=
000
mprotect(0x4012c000, 40160, PROT_NONE)  =3D 0
old_mmap(0x4012c000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x113000) =3D 0x4012c000
old_mmap(0x40132000, 15584, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x40132000
close(3)                                =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0=
) =3D
0x40136000
munmap(0x40014000, 7340)                =3D 0
brk(0)                                  =3D 0x8056a5c
brk(0x8056a8c)                          =3D 0x8056a8c
brk(0x8057000)                          =3D 0x8057000
open("/lib/iptables/libipt_IMQ.so", O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\4\0\000"..., 1024=
) =3D
1024
fstat64(3, {st_mode=3DS_IFREG|0775, st_size=3D3815, ...}) =3D 0
old_mmap(NULL, 6076, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0x40014000
mprotect(0x40015000, 1980, PROT_NONE)   =3D 0
old_mmap(0x40015000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, =
0)
=3D 0x40015000
close(3)                                =3D 0
socket(PF_INET, SOCK_RAW, IPPROTO_RAW)  =3D 3
getsockopt(3, SOL_IP, 0x40 /* IP_??? */, [1735287149], [84]) =3D 0
brk(0x8058000)                          =3D 0x8058000
getsockopt(3, SOL_IP, 0x41 /* IP_??? */, [1735287149], [2340]) =3D 0
brk(0x8059000)                          =3D 0x8059000
setsockopt(3, SOL_IP, 0x40 /* IP_??? */, [1735287149], 2544) =3D -1 ENOSYS
(Function not implemented)
setsockopt(3, SOL_IP, 0x40 /* IP_??? */, [1735287149], 2544) =3D -1 ENOSYS
(Function not implemented)
setsockopt(3, SOL_IP, 0x40 /* IP_??? */, [1735287149], 2544) =3D -1 ENOENT =
(No
such file or directory)
write(2, "iptables: No chain/target/match "..., 45iptables: No
chain/target/match by that name
) =3D 45
_exit(1)                                =3D ?


and the module is loaded

tsunami:/usr/src# lsmod
Module                  Size  Used by    Not tainted
ipt_limit                960   1  (autoclean)
ipt_REJECT              2816   1  (autoclean)
ipt_mac                  672   1  (autoclean)
ipt_LOG                 3168   2  (autoclean)
ipt_state                608   7  (autoclean)
ipt_MARK                 800   2  (autoclean)
iptable_mangle          2208   1  (autoclean)
iptable_nat            13876   0  (autoclean) (unused)
iptable_filter          1728   1  (autoclean)
imq                     1880   1
ip_conntrack_ftp        3776   0  (unused)
ip_conntrack           16652   3  [ipt_state iptable_nat ip_conntrack_ftp]
ip_tables              10400  11  [ipt_limit ipt_REJECT ipt_mac ipt_LOG
ipt_state ipt_MARK iptable_mangle iptable_nat iptable_filter]
cls_fw                  2016   2  (autoclean)
sch_sfq                 3424   4  (autoclean)
sch_htb                18080   2  (autoclean)


system data:  debian woody with an 2.4.20 patched with imq-2.4.18.diff-10 A=
ND=20
(=3D tried both) imq-2.4.18.diff-combo-6 (extracted the source for each pat=
ch),=20
it doesn't work with any of them



=2D --
Regards,
Robert
=2D ----------------
Robert Penz
robert.penz AT outertech.com

=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+QpoK8tTsQqJDUBMRAtpfAJ9HMKFiAtKwoE66rCPKkVBXVGFQPQCdE9po
hP+ea9gB7p5w9AjylBuWxeY=3D
=3DyPa6
=2D----END PGP SIGNATURE-----



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux