Fórum
Hello,
since a few days I tried to compile this great idea called netfilter-rtpproxy into my kernel. So here is a short report to give u an idea what I did and to get a quick help from u.
For all kernels I used "patch-o-matic-ng-20080521.tar.bz2" and "netfilter-rtpproxy.0.3.tgz". I extracted "netfilter-rtpproxy.0.3.tgz" into patch-o-matic/patchlets directory and executed "./runme netfilter-RTPPROXY". This causes an error, which says that in "/usr/src/linux/net/netfilter/Makefile" is no slot available to add "patchlets/netfilter-RTPPROXY/linux-2.6/net/netfilter/Makefile.ladd" content. In all kernel sources I had to add "obj-$(CONFIG_NETFILTER_XT_TARGET_RTPPROXY) += xt_RTPPROXY.o" into "/usr/src/linux/net/netfilter/Makefile" manually. After that runme seemed to apply the patch.
For each Kernel version I had to do a "chmod 755 /usr/src/iptables/extensions/.RTPPROXY-test" to remove a little error during iptables compliation.
It was quite hard to find/activate RTP-Proxy Module in kernel's menuconfig vor kernels <2.6.20 because of some dependencies from other kernel modules. In 2.6.20 it was easy to find.
Special kernel problems I found:
CentOS5 (2.6.18):
I downloaded "kernel-2.6.18-53.1.21.el5.src.rpm" and "iptables-1.3.5.tar.bz2", set link /usr/src/linux to kernel sources and /usr/src/iptables to iptable sources. During Compilation I got this:
CC [M] net/netfilter/xt_RTPPROXY.o
net/netfilter/xt_RTPPROXY.c: In function ‘do_target’:
net/netfilter/xt_RTPPROXY.c:345: warning: implicit declaration of function ‘ip_nat_cheat_check’
CC [M] net/netfilter/xt_comment.o
and later on:
WARNING: "ip_nat_cheat_check" [net/netfilter/xt_RTPPROXY.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
So no success here.
Debian (2.6.16):
I downloaded "kernel-source-2.6.16.53-stable.tar.bz2" and "iptables-1.3.3.tar.bz2", set link /usr/src/linux to kernel sources and /usr/src/iptables to iptable sources. During compilation the xt_target structure in "include/linux/netfilter/x_tables.h" of kernel source hadn't some of the needed elements needed by rtpproxy.
So no success here.
I found, that the missed elements in xt_target are available in Kernel 2.6.18 and above.
Ubuntu (2.6.20)
I downloaded "linux-source-2.6.20.tar.bz2" and "iptables-1.4.0.tar.bz2", set link /usr/src/linux to kernel sources and /usr/src/iptables to iptable sources. During compilation I got this:
CC [M] net/netfilter/xt_RTPPROXY.o
net/netfilter/xt_RTPPROXY.c: In function ‘do_target’:
net/netfilter/xt_RTPPROXY.c:345: warning: implicit declaration of function ‘ip_nat_cheat_check’
CC [M] net/netfilter/xt_comment.o
and later on
WARNING: "ip_nat_cheat_check" [net/netfilter/xt_RTPPROXY.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
So same as with CentOS here. I found that function "ip_nat_cheat_check" is included in "net/ipv4/netfilter/ip_nat_core.c" of kernel sources up to 2.6.17 but not anymore in kernel sources 2.6.18+
It seems rtpproxy v0.3 was tested against a mixed kernel source or against a kernel I do not use.
Any ideas or hints how to get this thingy up and running ?
regards
Helmut
- Pro vkládání komentářů se musíte přihlásit