Differences
This shows you the differences between two versions of the page.
linux:iptables:l7patch [2007/04/01 12:15] a |
linux:iptables:l7patch [2009/05/25 00:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Playing with netfiltering-l7 and ipp2p under Debian (Sarge) ====== | ||
- | Problem: Debian + patched kernel as debian package + patched iptables with latest netfilter-l7 and ipp2p patches. | ||
- | |||
- | **need some more restyling** | ||
- | |||
- | ====== Get the source! ====== | ||
- | |||
- | apt-get source iptables (take it from debian-packports 1.3.3x) | ||
- | |||
- | get ipp2p source | ||
- | get netfilter-l7 source | ||
- | |||
- | untar iptables source from upstream and patch it with netfilter-l7-iptables patch. Create a .tgz and put it back at the same location. | ||
- | |||
- | untar patch-o-matic stuff .. put ipp2p stuff there .. | ||
- | |||
- | .. more to come | ||
- | |||
- | |||
- | |||
- | |||
- | ====== Another way to do it ====== | ||
- | FIXME Need some styling | ||
- | |||
- | I downloaded the source package for '' | ||
- | |||
- | Try loading the module with modprobe ipt_ipp2p. If everything is OK try the following command: | ||
- | |||
- | | ||
- | |||
- | You should see some info about the usage of this module. | ||
- | |||
- | Thanks to //Abel Martín// at debian-firewall mailinglist. | ||
- | |||
- | ===== Yet another way to do it .. ===== | ||
- | |||
- | 1) Download: | ||
- | * iptables-dev (apt-get) | ||
- | * kernel-headers-2.x.x (your kernel, "uname -r") | ||
- | * src of your iptables (iptables -V and apt-get source) | ||
- | * ipp2p-0.8.0.tar.gz (stable) | ||
- | 2) untar ipp2p and cd ipp2p | ||
- | 3) Edit Makefile, if it's necesary: | ||
- | * IPTABLES_SRC = / | ||
- | * In my case, the headers are detected automaticaly. | ||
- | 4) make (WITHOUT ERRORS!!! ;) ) | ||
- | 5) cp libipt_ipp2p.so / | ||
- | 6) cp ipt_ipp2p.ko / | ||
- | 7) depmod -A | ||
- | 8) insmod ipt_ipp2p.ko (or modprobe) | ||
- | 9) lsmod | grep ipp2p | ||
- | 10) iptables -m ipp2p --help | ||
- | |||
- | | ||
- | make -C / | ||
- | | ||
- | | ||
- | CC [M] / | ||
- | | ||
- | | ||
- | | ||
- | LD [M] / | ||
- | | ||
- | gcc -O3 -Wall -DIPTABLES_VERSION=\" | ||
- | -fPIC -c libipt_ipp2p.c | ||
- | ld -shared -o libipt_ipp2p.so libipt_ipp2p.o |