Sign in to follow this  
Followers 0
3dfx

Peer Guardian Plugin

4 posts in this topic

I want to revers the the plugins job - insted of bloking IP adresses entered in its list,to only allow them.My qestion is - can this be done somehow ?

Share this post


Link to post
Share on other sites

Blok everything esle.Look at mine examle:

I did such table manually:

.......................|10.1.2.4-255.255.255.255

10.1.2.3...........|1.1.1.1-10.1.2.2

And then I pasted this into "guarding.p2p" (after I removed everything else)

ForbiddenNetwork1:1.1.1.1-10.1.2.2

ForbiddenNetwork1:10.1.2.4-255.255.255.255

And u can always disable the plugin.

EDIT : i guess the crise's way will work too and will save u some time.

Share this post


Link to post
Share on other sites

I want to revers the the plugins job - insted of bloking IP adresses entered in its list,to only allow them.My qestion is - can this be done somehow ?

Yes it can as the plugin is pretty much plain parser for the ip blocklist so simple modifications to apexdc source should make what you ask possible...

Edit: didn't check but i believe all you need to do to achieve such behaviour is to change two !='s to =='s

Share this post


Link to post
Share on other sites

great :D

thanks a lot,this type of modification is much needed in my case,as i have 1gigabit full duplex conectivety for my town,but outside the internal peering,only a poor 1,2mbit ,and i want to reserv my outbound bandwith.

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0