На главную

Безопасная раздача торретнов chroot + ctorrent в Debian.


mkdir /Tchroot_ctorrent/

debootstrap --arch i386 unstable /Tchroot_ctorrent/ http://ftp.us.debian.org/debian/

cp /etc/resolv.conf       /Tchroot_ctorrent/etc/
cp /etc/hosts             /Tchroot_ctorrent/etc/
cp /etc/apt/sources.list  /Tchroot_ctorrent/etc/apt/
Меняем в файле /Tchroot_ctorrent/etc/apt/sources.list дистр на unstable

chroot /Tchroot_ctorrent/


Оставляем в папке /dev/ chroot-а:
pts - папку
console
null
ptmx
tty
tty0

exit - выходим из chroot

cat /etc/fstab


cat chroot_check


cat /etc/crontab


iptables -t filter  -A INPUT -i eth0  -p tcp -m tcp --dport ПОРТ1 -j ACCEPT
iptables -t filter  -A INPUT -i eth0  -p tcp -m tcp --dport ПОРТ2 -j ACCEPT

ЗЫ: Для отладки можно использовать утилиту script.


Используемые материалы:
интернет

Автор: smeegul

  28.10.2011 15:13
  28.10.2011 16:12
  31.10.2011 11:05
  05.12.2011 18:10
  17.03.2012 13:43
  01.04.2014 15:23
  30.04.2014 12:04