歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> 用ipp2p封禁BT過程介紹

用ipp2p封禁BT過程介紹

日期:2017/2/27 9:32:29   编辑:更多Linux
  RH AS3 內核為: 2.4.21-15.EL。iptables版本為:1.2.9    1. 下載最新的patch-o-matic-ng補丁和最新的iptables源代碼。放到/usr/src 下    http://FTP.netfilter.org/pub/patch-o-matic-ng/snapshot/ patch-o-matic-ng    http://www.netfilter.org/files/iptables-1.3.1.tar.bz2 iptables    2. 如果你的系統裡沒有安裝內核源碼請自行安裝。解壓縮patch-o-matic-ng和iptables包    tar -jxvf patch-o-matic-ng-20050302.tar.bz2    tar -jxvf iptables-1.31..tar.bz2    3. 給內核打補丁    cd /usr/src/patch-o-matic-ng-20050302    #KERNEL_DIR=/usr/src/Linux-2.4 IPTABLES_DIR=/usr/src/iptables-1.3.1 ./runme extra    按照提示打相應的補丁就可以了。我只選擇了ipp2p,connlimit,time模塊    4. 編譯內核    cd /usr/src/linux-2.4    make prproper    make config    在這裡的前半部分一直安回車就可以了。遇到network option的部分時候選擇需要的模塊即可。    然後在一路回車至結束。    make dep    make clean    make bzImage    make modules    make modules_install    make install    reboot    啟動新內核    5. 編譯iptables    cd /usr/src/iptables-1.3.1    make KERNEL_DIR=/usr/src/linux-2.4  make BINDIR=/sbin LIBDIR=/lib MANDIR=/usr/share/man install  如果沒什麼錯誤的話iptables就升級到1.3.1的版本了    6. 測試    Iptables -m ip2p2 -help  iptables -A FORWARD -m ipp2p --edk --kazaa --bit -j DROP




Copyright © Linux教程網 All Rights Reserved