[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: user-space traffic wrapper for limit IP ranges



On Sat, 16 Aug 2008 14:05:47 +0400
Alexander GQ Gerasiov wrote:

> На 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
> И все будет резаться первым же правилом. :)
> 
> А еще можно для конкретного процесса резать. По пиду.
> 
То есть надо сделать некую обертку вокруг клиента, в которой смотрелся пид
запущеного процесса и добавлялось правило?

-- 
Матвийчук Олег aka Matvey, LRU#349092
http://mathway.narod.ru

I am the "ILOVEGNU" signature virus. Just copy me to your signature.
This email was infected under the terms of the GNU General Public License.

Attachment: signature.asc
Description: PGP signature


Reply to: