donkey killing
ipp2p
OS software debian4r3
First steps
download the package and unpack it
# cd / usr / src # wget http://www.ipp2p.org/downloads/ipp2p-0.8.2
. tar.gz # tar-xvf
ipp2p-0.8.2
install the necessary dependencies
# apt-get install iptables-dev
# apt-get install linux-kernel-headers # apt
-get install linux-source-2.6.18
# apt-get install build-essential
# apt-get install linux-headers-2.6.18-6-686
As we are in / usr / src we decompress the kernel-source
# bunzip2 linux-source-2.6.18.tar.bz2 # tar-xvf
linux-source-2.6.18.tar
create a symlink to linux-source-*
# ln-s linux-source-2.6.18 / linux
Now we only need to know which version you're using iptables for that matter run
# iptables - version
iptables v1.3.6
Then downloaded the sources of this version of http://www.netfilter.org/projects/iptables/downloads.html
# wget http://www.netfilter.org/projects/ iptables/files/iptables-1.3.6.tar.bz2
Unzip
# bunzip2 iptables-1.3.6.tar.bz2 # tar-xvf
iptables-1.3.6.tar
We went to the folder
# ipp2p-0.8.2 cd
Edit the Makefile
# vim Makefile
and change the following line
ld-shared-o libipt_ipp2p.so
libipt_ipp2p.o
by
$ (CC)-shared-o libipt_ipp2p.so
libipt_ipp2p.o
proceed to compile
# make
Finally, copy the following files
libipt_ipp2p.so # cp / lib / iptables / cp
ipt_ipp2p.ko / lib/modules/2.6.18-6-686/kernel/net/ipv4 /
# insmod ipt_ipp2p.ko
# depmod-a
check whether our module carried out either with
# lsmod
and
# iptables-m ipp2p -
help rule
Finally we put our iptables-rules would
In general for all -A FORWARD-m ipp2p - ipp2p-j DROP
For a given network in particular
-A FORWARD-s 172.16.5.0/24-m ipp2p - ipp2p-j DROP
Edit the Makefile
# vim Makefile
and change the following line
ld-shared-o libipt_ipp2p.so
libipt_ipp2p.o
by
$ (CC)-shared-o libipt_ipp2p.so
libipt_ipp2p.o
proceed to compile
# make
Finally, copy the following files
libipt_ipp2p.so # cp / lib / iptables / cp
ipt_ipp2p.ko / lib/modules/2.6.18-6-686/kernel/net/ipv4 /
# insmod ipt_ipp2p.ko
# depmod-a
check whether our module carried out either with
# lsmod
and
# iptables-m ipp2p -
help rule
Finally we put our iptables-rules would
In general for all -A FORWARD-m ipp2p - ipp2p-j DROP
For a given network in particular
-A FORWARD-s 172.16.5.0/24-m ipp2p - ipp2p-j DROP
0 comments:
Post a Comment