All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] ipp2p problems
@ 2007-03-14 13:45 J.E.
  2007-03-14 15:56 ` Marco Aurelio
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: J.E. @ 2007-03-14 13:45 UTC (permalink / raw)
  To: lartc

Hello list,

I'm newbie in this list. Well, i'm going crazy with ipp2p.
Googling i find a mini-howto but i've got problems.

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 = /usr/src/iptables
* In my case, the headers are detected automaticaly.
4) make (WITHOUT ERRORS!!! ;) )
5) cp libipt_ipp2p.so /lib/iptables
6) cp ipt_ipp2p.ko /lib/modules/`uname -r`/kernel/net/ipv4/netfilter
7) depmod -A
8) insmod ipt_ipp2p.ko (or modprobe)
9) lsmod | grep ipp2p
10) iptables -m ipp2p --help

root@servidor:/usr/src/ipp2p-0.8.0# make
make -C /lib/modules/2.6.15-28-386/build SUBDIRS=/usr/src/ipp2p-0.8.0 
modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.15-28-386'
   CC [M]  /usr/src/ipp2p-0.8.0/ipt_ipp2p.o
   Building modules, stage 2.
   MODPOST
   CC      /usr/src/ipp2p-0.8.0/ipt_ipp2p.mod.o
   LD [M]  /usr/src/ipp2p-0.8.0/ipt_ipp2p.ko
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.15-28-386'
gcc -O3 -Wall -DIPTABLES_VERSION=\"\" -I/usr/src/iptables-1.3.3/include 
-fPIC -c  libipt_ipp2p.c
ld -shared -o libipt_ipp2p.so libipt_ipp2p.o

Seems that all it's ok...
.
.
.
But ...

root@servidor:/usr/src/ipp2p-0.8.0# iptables -m ipp2p --help
iptables: match `ipp2p' v (I'm v1.3.1).

Only i get this line, iptables: match `ipp2p' v (I'm v1.3.1)

root@servidor:/usr/src/ipp2p-0.8.0# iptables -A FORWARD -m ipp2p --ipp2p 
-j DROP
iptables: match `ipp2p' v (I'm v1.3.1).

Only one line, again.

root@servidor:/usr/src/ipp2p-0.8.0# iptables -L FORWARD
Chain FORWARD (policy DROP)
target     prot opt source               destination
DROP      !icmp --  anywhere             anywhere            state INVALID
eth0_fwd   all  --  anywhere             anywhere
eth1_fwd   all  --  anywhere             anywhere
Reject     all  --  anywhere             anywhere
LOG        all  --  anywhere             anywhere            limit: avg 
5/min burst 2 LOG level info prefix `Shorewall:FORWARD:REJECT:'
reject     all  --  anywhere             anywhere

I don't see anything of ipp2p.
(In Spanish: Nada por aquí nada por allá :) )

Always i get the same results with:

Ubuntu Dapper
Kernels: 2.6.15-27-386, 2.6.15-28-386
iptables: 1.3.3
ipp2p: 0.8.0

Ubuntu Breezy (i think)
Kernel: 2.6.12-10-386
iptables: 1.3.1
ipp2p: 0.8.0

I don't know what's going on. Any ideas?

Thank you all
Juanen
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] ipp2p problems
  2007-03-14 13:45 [LARTC] ipp2p problems J.E.
@ 2007-03-14 15:56 ` Marco Aurelio
  2007-03-14 22:34 ` J.E.
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Marco Aurelio @ 2007-03-14 15:56 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 1696 bytes --]

On 3/14/07, J.E. <jecarb@menta.net> wrote:
>
>
> root@servidor:/usr/src/ipp2p-0.8.0# iptables -m ipp2p --help
> iptables: match `ipp2p' v (I'm v1.3.1).
>
> Only i get this line, iptables: match `ipp2p' v (I'm v1.3.1)


You are running iptables version 1.3.1, and this is not the version you
compiled ipp2p for (1.3.3)
What is the output of the ipp2p make install?


-- Marco

root@servidor:/usr/src/ipp2p-0.8.0# iptables -A FORWARD -m ipp2p --ipp2p
> -j DROP
> iptables: match `ipp2p' v (I'm v1.3.1).
>
> Only one line, again.
>
> root@servidor:/usr/src/ipp2p-0.8.0# iptables -L FORWARD
> Chain FORWARD (policy DROP)
> target     prot opt source               destination
> DROP      !icmp --  anywhere             anywhere            state INVALID
> eth0_fwd   all  --  anywhere             anywhere
> eth1_fwd   all  --  anywhere             anywhere
> Reject     all  --  anywhere             anywhere
> LOG        all  --  anywhere             anywhere            limit: avg
> 5/min burst 2 LOG level info prefix `Shorewall:FORWARD:REJECT:'
> reject     all  --  anywhere             anywhere
>
> I don't see anything of ipp2p.
> (In Spanish: Nada por aquí nada por allá :) )
>
> Always i get the same results with:
>
> Ubuntu Dapper
> Kernels: 2.6.15-27-386, 2.6.15-28-386
> iptables: 1.3.3
> ipp2p: 0.8.0
>
> Ubuntu Breezy (i think)
> Kernel: 2.6.12-10-386
> iptables: 1.3.1
> ipp2p: 0.8.0
>
> I don't know what's going on. Any ideas?
>
> Thank you all
> Juanen
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>



-- 
Marco

[-- Attachment #1.2: Type: text/html, Size: 3129 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [LARTC] ipp2p problems
  2007-03-14 13:45 [LARTC] ipp2p problems J.E.
  2007-03-14 15:56 ` Marco Aurelio
@ 2007-03-14 22:34 ` J.E.
  2007-03-14 22:53 ` J.E.
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: J.E. @ 2007-03-14 22:34 UTC (permalink / raw)
  To: lartc

Thank you Marco.

 >> You are running iptables version 1.3.1, and this is not the version 
you compiled ipp2p for (1.3.3)

But I make a mistake in my explanation. I've mixed the results of Ubuntu 
Dapper with results of Ubuntu Breezy, sorry. Instead of 1.3.1 should it
would have to put 1.3.3. In any case I will verify it. But i'm sure at 
99% that i've used the correct source code.

 >> What is the output of the ipp2p make install?

I don't made "make install". Is it necesary?

Simply i made

5) cp libipt_ipp2p.so /lib/iptables
6) cp ipt_ipp2p.ko /lib/modules/`uname -r`/kernel/net/ipv4/netfilter

May be I need to recompile iptables?
I'm using the same version of iptables debian packet, to compile ipp2p. 
May be it's a silly question, but now i doubt of everything. ;)


First time:
-----------
Compiled in Ubuntu Dapper
Kernel: 2.6.15-28-386
iptables: 1.3.3
ipp2p: 0.8.0

Second time:
------------
Compiled in Ubuntu Dapper
Kernel: 2.6.15-27-386
iptables: 1.3.3
ipp2p: 0.8.0

Third time:
------------
Compiled in Ubuntu Breezy
Kernel: 2.6.12-10-386
iptables: 1.3.1
ipp2p: 0.8.0

--------------------

This would be the correct explanation.

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 = /usr/src/iptables
* In my case, the headers are detected automaticaly.
4) make (WITHOUT ERRORS!!! ;) )
5) cp libipt_ipp2p.so /lib/iptables
6) cp ipt_ipp2p.ko /lib/modules/`uname -r`/kernel/net/ipv4/netfilter
7) depmod -A
8) insmod ipt_ipp2p.ko (or modprobe)
9) lsmod | grep ipp2p
10) iptables -m ipp2p --help

root@servidor:/usr/src/ipp2p-0.8.0# make
make -C /lib/modules/2.6.15-28-386/build SUBDIRS=/usr/src/ipp2p-0.8.0 
modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.15-28-386'
   CC [M]  /usr/src/ipp2p-0.8.0/ipt_ipp2p.o
   Building modules, stage 2.
   MODPOST
   CC      /usr/src/ipp2p-0.8.0/ipt_ipp2p.mod.o
   LD [M]  /usr/src/ipp2p-0.8.0/ipt_ipp2p.ko
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.15-28-386'
gcc -O3 -Wall -DIPTABLES_VERSION=\"\" -I/usr/src/iptables-1.3.3/include 
-fPIC -c  libipt_ipp2p.c
ld -shared -o libipt_ipp2p.so libipt_ipp2p.o

Seems that all it's ok...
.
.
.
But ...

root at servidor:/usr/src/ipp2p-0.8.0# iptables -m ipp2p --help
iptables: match `ipp2p' v (I'm v1.3.3). <--- mistake

Only i get this line, iptables: match `ipp2p' v (I'm v1.3.3) <--- mistake

root at servidor:/usr/src/ipp2p-0.8.0# iptables -A FORWARD -m ipp2p 
--ipp2p -j DROP
iptables: match `ipp2p' v (I'm v1.3.3). <--- mistake

Only one line, again.

root at servidor:/usr/src/ipp2p-0.8.0# iptables -L FORWARD
Chain FORWARD (policy DROP)
target     prot opt source               destination
DROP      !icmp --  anywhere             anywhere            state INVALID
eth0_fwd   all  --  anywhere             anywhere
eth1_fwd   all  --  anywhere             anywhere
Reject     all  --  anywhere             anywhere
LOG        all  --  anywhere             anywhere            limit: avg
5/min burst 2 LOG level info prefix `Shorewall:FORWARD:REJECT:'
reject     all  --  anywhere             anywhere

I don't see anything of ipp2p.



Thank you.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [LARTC] ipp2p problems
  2007-03-14 13:45 [LARTC] ipp2p problems J.E.
  2007-03-14 15:56 ` Marco Aurelio
  2007-03-14 22:34 ` J.E.
@ 2007-03-14 22:53 ` J.E.
  2007-03-15  3:51 ` Jorge Evangelista
  2007-03-16  3:06 ` Luciano Ruete
  4 siblings, 0 replies; 6+ messages in thread
From: J.E. @ 2007-03-14 22:53 UTC (permalink / raw)
  To: lartc

 >> What is the output of the ipp2p make install?

When i 'make install'

root@servidor:/usr/src/ipp2p-0.8.0# make install
make: *** No hay ninguna regla para construir el objetivo `install'.  Alto.

This is the answer

make: *** There's no rules to build `install' object. Stop.

Logs don't give me any clue.

Any ideas?
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] ipp2p problems
  2007-03-14 13:45 [LARTC] ipp2p problems J.E.
                   ` (2 preceding siblings ...)
  2007-03-14 22:53 ` J.E.
@ 2007-03-15  3:51 ` Jorge Evangelista
  2007-03-16  3:06 ` Luciano Ruete
  4 siblings, 0 replies; 6+ messages in thread
From: Jorge Evangelista @ 2007-03-15  3:51 UTC (permalink / raw)
  To: lartc

Hi

This is my small guide (in spanish) for compile ipp2p with iptables, I
think that you have these errors because the script is looking for
files in other directories. I had had similars problems, I suggest you
that install it over a clon of redhat(centos, whitebox). I have
installed it in these distributions and I does not have problems more.

Guide IPP2P

Para esto uso el ipp2p, aqui esta el procedimiento de como instalarlo:
Tengo iptables instalado en rpm, extraer la version

#iptables -V

En un directorio especifico puede ser /opt o /tmp descomprime el ipp2p
y las fuentes de mi iptables. Baje la version correspondiente de mi
iptables-miversion.tar.gz desde la pagina de NETFILTER
(ftp.netfilter.org)

Luego te vas al directorio del ipp2p
En el Makefile del ipp2p editar los siguientes parametros
IPTABLES_BIN = /usr/sbin/iptables
IPTABLES_SRC = /tmp/iptables-1.3.1
Luego hacer un
# make

Se crean los siguientes archivos en el directorio del ipp2p:
libipt_ipp2p.so
libipt_ipp2p.o
ipt_ipp2p.o

El archivo libipt_ipp2p.so moverlo a /lib/iptables
Copiar los otros dos al /lib/modules/2.4.20-8/kernel/net/ipv4/netfilter
luego hacer un
# depmod -a

Listo para definir una regla que bloquee todo el trafico P2P de kazza, ares, etc
# iptables -A FORWARD -m ipp2p --ipp2p -j DROP








On 3/14/07, J.E. <jecarb@menta.net> wrote:
>  >> What is the output of the ipp2p make install?
>
> When i 'make install'
>
> root@servidor:/usr/src/ipp2p-0.8.0# make install
> make: *** No hay ninguna regla para construir el objetivo `install'.  Alto.
>
> This is the answer
>
> make: *** There's no rules to build `install' object. Stop.
>
> Logs don't give me any clue.
>
> Any ideas?
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>


-- 
"The network is the computer"
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] ipp2p problems
  2007-03-14 13:45 [LARTC] ipp2p problems J.E.
                   ` (3 preceding siblings ...)
  2007-03-15  3:51 ` Jorge Evangelista
@ 2007-03-16  3:06 ` Luciano Ruete
  4 siblings, 0 replies; 6+ messages in thread
From: Luciano Ruete @ 2007-03-16  3:06 UTC (permalink / raw)
  To: lartc

On Wednesday 14 March 2007 10:45, J.E. wrote:
> Hello list,
>
> I'm newbie in this list. Well, i'm going crazy with ipp2p.
> Googling i find a mini-howto but i've got problems.
>
> 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 = /usr/src/iptables
> * In my case, the headers are detected automaticaly.
> 4) make (WITHOUT ERRORS!!! ;) )
> 5) cp libipt_ipp2p.so /lib/iptables
> 6) cp ipt_ipp2p.ko /lib/modules/`uname -r`/kernel/net/ipv4/netfilter
> 7) depmod -A
> 8) insmod ipt_ipp2p.ko (or modprobe)
> 9) lsmod | grep ipp2p
> 10) iptables -m ipp2p --help
>
> root@servidor:/usr/src/ipp2p-0.8.0# make
> make -C /lib/modules/2.6.15-28-386/build SUBDIRS=/usr/src/ipp2p-0.8.0
> modules
> make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.15-28-386'
>    CC [M]  /usr/src/ipp2p-0.8.0/ipt_ipp2p.o
>    Building modules, stage 2.
>    MODPOST
>    CC      /usr/src/ipp2p-0.8.0/ipt_ipp2p.mod.o
>    LD [M]  /usr/src/ipp2p-0.8.0/ipt_ipp2p.ko
> make[1]: se sale del directorio `/usr/src/linux-headers-2.6.15-28-386'
> gcc -O3 -Wall -DIPTABLES_VERSION=\"\" -I/usr/src/iptables-1.3.3/include
> -fPIC -c  libipt_ipp2p.c
> ld -shared -o libipt_ipp2p.so libipt_ipp2p.o
>
> Seems that all it's ok...
> .
> .
> .
> But ...
>
> root@servidor:/usr/src/ipp2p-0.8.0# iptables -m ipp2p --help
> iptables: match `ipp2p' v (I'm v1.3.1).
>
> Only i get this line, iptables: match `ipp2p' v (I'm v1.3.1)
>
> root@servidor:/usr/src/ipp2p-0.8.0# iptables -A FORWARD -m ipp2p --ipp2p
> -j DROP
> iptables: match `ipp2p' v (I'm v1.3.1).

ipp2p wasn't able to detect your current iptables versión number at compile 
time, that's why you see a 'v' character with nothing behind. 
Edit the ipp2p Makefile, and make shure that it finds your iptables versión 
number. 

Do a make clean and rebuild.

-- 
Luciano
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-16  3:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-14 13:45 [LARTC] ipp2p problems J.E.
2007-03-14 15:56 ` Marco Aurelio
2007-03-14 22:34 ` J.E.
2007-03-14 22:53 ` J.E.
2007-03-15  3:51 ` Jorge Evangelista
2007-03-16  3:06 ` Luciano Ruete

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.