На Tue, 12 Aug 2008 06:57:46 +0400 Stanislav Kruchinin <stas@crypt.org.ru> записано: > Alexander Sashnov wrote: > > > > Либо подскажите bittorrent клиент, которому можно объяснить, что > > никуда кроме > > > > 192.168.x.x > > 212.17.0-31.x > > 81.1.252.x > > 193.32.20.x > > > > больше подключаться нельзя, и нельзя принимать входящие > > > > Это можно сделать средствами iptables и модуля ipp2p > (http://www.ipp2p.org/). Как-то так: > iptables -A OUTPUT -d ! 192.168.0.0/16 -m ipp2p --bit -j DROP > iptables -A OUTPUT -d ! 212.17.0.0/19 -m ipp2p --bit -j DROP > iptables -A OUTPUT -d ! 81.1.252.0/24 -m ipp2p --bit -j DROP > iptables -A OUTPUT -d ! 193.32.20.0/24 -m ipp2p --bit -j DROP И все будет резаться первым же правилом. :) А еще можно для конкретного процесса резать. По пиду. -- Best regards, Alexander GQ Gerasiov Contacts: e-mail: gq@cs.msu.su Jabber: gq@jabber.ru Homepage: http://gq.net.ru ICQ: 7272757 PGP fingerprint: 0628 ACC7 291A D4AA 6D7D 79B8 0641 D82A E3E3 CE1D
Attachment:
signature.asc
Description: PGP signature