Installation module IPP2P sur Linux debian Etch 4.0

 
   azertyclub.com Index du Forum // Linux
Auteur Message
News-Virtual



Inscrit le: 10 Juil 2006
Messages: 295

MessagePosté le: Lun Sep 28, 2009 9:59 am    Sujet du message: Installation module IPP2P sur Linux debian Etch 4.0 Répondre en citant
1. Installation des outils de compilation et des headers des sources du kernel :
Code:
apt-get install bzip2 make gcc build-essential linux-headers-$(uname -r)


2. Installation de iptables 1.4.0
Code:
wget http://netfilter.org/projects/iptables/files/iptables-1.4.0.tar.bz2
tar -jxvf iptables-1.4.0.tar.bz2
cd iptables-1.4.0
make KERNEL_DIR=/usr/src/linux-headers-2.6.18-6-686
make install KERNEL_DIR=/usr/src/linux-headers-2.6.18-6-686


2. Installation du module IPP2P
Code:

wget http://www.ipp2p.org/downloads/ipp2p-0.8.2.tar.gz
tar zxvf ipp2p-0.8.2.tar.gz
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
patch -p1 < ipp2p-0.8.2-kernel-2.6.22.patch
patch -p1 < ipp2p-0.8.2-iptables-1.4.0.patch

nano Makefile


Remplacer :
Code:

libipt_ipp2p.so: libipt_ipp2p.c ipt_ipp2p.h
$(CC) $(CFLAGS) $(IPTABLES_OPTION) $(IPTABLES_INCLUDE) -fPIC -c libipt_ipp2p.c
   ld -shared -o libipt_ipp2p.so libipt_ipp2p.o

par :
Code:

libipt_ipp2p.so: libipt_ipp2p.c ipt_ipp2p.h
$(CC) $(CFLAGS) $(IPTABLES_OPTION) $(IPTABLES_INCLUDE) -fPIC -c libipt_ipp2p.c
   $(CC) -shared -o libipt_ipp2p.so libipt_ipp2p.o


Code:
make
cp libipt_ipp2p.so /usr/local/lib/iptables/
cp ipt_ipp2p.ko /lib/modules/2.6.18-6-686/kernel/net/netfilter/
depmod -a


Test de fonctionnement :

Code:
/usr/local/sbin/iptables -m ipp2p --help
/usr/local/sbin/iptables -A FORWARD -m ipp2p --ipp2p -j DROP
Revenir en haut de page
Voir le profil de l'utilisateur Envoyer un message privé
   azertyclub.com Index du Forum // Linux

Répondre au sujet
Page 1 sur 1