Install IPP2P in Debian Etch to Block P2P EasyZone - บริการ Software จัดการ อินเตอร์เน็ตในหอพัก, อพาร์ทเมนท์, แมนชั่น, คอนโด, โรงแรม
 


หน้าแรก | ลงทะเบียน | เข้าสู่ระบบ | สินค้าและบริการ | ลูกค้าของเรา | Dealer | Install | Support | ติดต่อ | DEMO
02-691-6382 (Office), 089-758-0691(ฝ่ายขาย), 086-644-2243 (ฝ่ายเทคนิค)

EasyZone Pro30 : บริการโปรแกรม Radius, Hotspot, PPPoE billing


  

 Question: Install IPP2P in Debian Etch to Block P2P

 

Install IPP2P in Debian Etch to Block P2P

 


 

What is IPP2P

The goal of the IPP2P project is to identify peer-to-peer (P2P) data in IP traffic. For this purpose we extended the iptables/netfilter architecture by a new matching module. Thereby IPP2P integrates itself easily into existing Linux firewalls and it's functionality can be used by adding appropriate filter rules.

IPP2P uses suitable search patterns to identify P2P traffic thus allowing the reliable identifcation of traffic belonging to many P2P networks. Once identified one may handle P2P traffic in different ways - dropping such traffic, putting into low priority classes or shaping to a given bandwidth limit is possible. Reducing costs, freeing network ressources and therefore improving network performance is often the result of using IPP2P.

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

apt-get install linux-headers-$(uname -r) iptables-dev

Download ipp2p source from their website

Untar the file and download Gentoo's kernel patch for ipp2p.

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

vi Makefile

and change:

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

to:

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

Compile ipp2p using this command:

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

You can start blocking P2P applications such as bittorrent and gnutella.

refer: http://www.cahilig.org/install-ipp2p-debian-etch-block-p2p



  by: EasyZone      วันที่ 11/9/2553 - 04:06:00  




Question and Comment
name:
Email:
message:
Security Code :
    * กรุณากรอก Security Code เพื่อป้องการกันการโจมตีเว็บบอร์ด
 

Back