Install IPP2P in Debian Etch

Posted: September 1, 2009 in Debian

You have to complie kernel headers and iptables

To compile ipp2p you need to install the kernel headers and iptables headers.

aptitude install linux-headers-$(uname -r)  iptables-dev

Download ipp2p source from their website

wget http://www.ipp2p.org/downloads/ipp2p-0.8.2.tar.gz

Untar the file and download Gentoo’s kernel patch for ipp2p

cd ../ipp2p-0.8.2

wget http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-firewall/ipp2p/files/ipp2p-0.8.2-kernel-2.6.22.patch

wget http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-firewall/ipp2p/files/ipp2p-0.8.2-iptables-1.4.0.patch

Apply the patch for ipp2p

patch -p1 < ipp2p-0.8.2-kernel-2.6.22.patch
patch -p1 < ipp2p-0.8.2-iptables-1.4.0.patch

Modify the Makefile file

pico Makefile

and change:

ld -shared -o libipt_ipp2p.so libipt_ipp2p.o

to

$(CC) -shared -o libipt_ipp2p.so libipt_ipp2p.o

Compile ipp2p :

make

Copy libraries

cp libipt_ipp2p.so /lib/iptables/
cp ipt_ipp2p.ko /lib/modules/2.6.18-6-686/kernel/net/netfilter/

and run

depmod -a

IPP2P is now installed, you can check using this command:

iptables -m ipp2p –help

Comments
  1. hideaki says:

    Long long replaced by xtables-addons’s xt_ipp2p.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s