Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Help & Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Help & Support Information on the useage and anything else of Phex
- Unless you are using or asking about PHEX, please do not post in this section
(Get ”Phex 3.4.2.163 universal" now)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 20th, 2011
ToNneTje's Avatar
Gnutella Admirer
 
Join Date: January 24th, 2009
Location: Netherlands
Posts: 69
ToNneTje is flying high
Default Security rules: Block IP range?

How to do that?
I've get a lot connections from 208.93.7.x (x = number from 1 to almost 200... all using older Limewire versions and this client seems to be very agressive).
I can block every IP at once, but how to block a whole IP range?
I tried but without result (or did i do something wrong?)
Reply With Quote
  #2 (permalink)  
Old June 20th, 2011
Lord of the Rings's Avatar
ContraBanned
 
Join Date: June 30th, 2004
Location: Middle of the ocean apparently (middle earth)
Posts: 666
Lord of the Rings has a distinguished reputationLord of the Rings has a distinguished reputationLord of the Rings has a distinguished reputation
Default

Generally using a wildcard character, example 208.93.7.* or 208.93.*.*
However, one of the devs might be able to correct me if I am wrong with Phex.
ie: this is how it's done with LimeWire & some other p2p sharing clients, so I presume it's the same for Phex.

Keep in mind, blocking a wide range may affect innocent users who are not using such clients or versions as you suggest. And ip address ranges are not strictly divided into country or area zones. PM me if you wish to find out country ip listings.
Also keep in mind, lots of people nowadays have dynamic ip addresses which may switch from totally different ip addresses you may initially ban. I know my ip address switches frequently each week. I've noticed same thing about some problematic gnutella users (yes recognised them as the same persons.)

Very late Edit: seems I might have been incorrect about the above wildcard for even LW.

Last edited by Lord of the Rings; June 30th, 2011 at 05:11 AM. Reason: Suspect I was wrong even for LimeWire
Reply With Quote
  #3 (permalink)  
Old June 20th, 2011
ToNneTje's Avatar
Gnutella Admirer
 
Join Date: January 24th, 2009
Location: Netherlands
Posts: 69
ToNneTje is flying high
Default

Thanks Lord, i didn't use the * but a 0 (zero) to block an IP range, without result... the * isn't working when i try to add this in the field

Quote:
Also keep in mind, lots of people nowadays have dynamic ip addresses which may switch from totally different ip addresses you may initially ban.
True, but i'm online 24/7 as Ultrapeer and i'm having connections from this range for months now... sometimes 20 or more, all of them using an old Limewire version and none of them with sharing files... that's why i'm pretty sure that this IP range is ready to block (at least for a while)
Reply With Quote
  #4 (permalink)  
Old June 20th, 2011
Lord of the Rings's Avatar
ContraBanned
 
Join Date: June 30th, 2004
Location: Middle of the ocean apparently (middle earth)
Posts: 666
Lord of the Rings has a distinguished reputationLord of the Rings has a distinguished reputationLord of the Rings has a distinguished reputation
Default

Quote:
Originally Posted by ToNneTje View Post
True, but i'm online 24/7 as Ultrapeer and i'm having connections from this range for months now... sometimes 20 or more, all of them using an old Limewire version and none of them with sharing files... that's why i'm pretty sure that this IP range is ready to block (at least for a while)
arne_bab or GregorK may know a method of banning client versions. This might be better than ip ban ranges. Or perhaps using a combination with the worst users.

I confess, my LW has large ban ranges. lol I suspect people are paranoid about sharing in come countries nowadays. I don't mind those starting up, but when people see you downloading their files & deliberately remove those files from shares, that annoys the heck out of me. Especially when they have 8,000 of my files to choose from & are usually downloading rapidly from me at the same time.

I think I posted about my annoyances about such users in a private forum section here beginning of year.

What versions of LW are you talking about?


(One issue with a large ban list is it makes Java run out of memory easily. Also becomes slow writing to the settings files. I recognised that LW at least would work best if shared, incomplete downloads, keyword filters, ban list, etc. were each written to different files instead of only the limewire.props, downloads.dat & library5.dat files. Seems to use heaps of memory for a program to read many lines of a setting file as it seeks all the way through it to write again to the appropriate location. Ideally, splitting the file into two files if beyond a certain number of lines of text. 8,000 shared files, that's a lot for the program to read through & rewrite to. Same applies for large number of incomplete files. And a large ban list means the program is forever re-checking the file searching the settings document.
LW seems to have a maximum set use of RAM. Ideally, it would access more RAM and use virtual memory when needed. I have 16 GB of RAM and 4 x 1 TB HDD's, yet LW (LPE) only uses 250 to 300 MB of RAM & 350-500 MB of VM on MacOSX (Some versions of LW 4 used to be a VM hog.) Yet at times the LW 5 program freezes due to Java memory issues.
For Phex, I am only sharing 2,500 files so have not tested its memory limitations or how it handles memory compared to LW. Phex's RAM use for me is similar to LW5, a little less.)
Reply With Quote
  #5 (permalink)  
Old June 21st, 2011
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

We are using CIDR notation to optimize memory use of ban rules.
If you like to ban the range 208.93.7.* you need to add the rule:
208.93.7.0 / 24
See: Classless Inter-Domain Routing - Wikipedia, the free encyclopedia

Even though you might need multiple rules to block part ranges, with this notation Phex is able to reduce memory costs for the address range to 5 bytes, which is the smallest it can get. This allows us to store the around 400.000 default address ranges included in Phex in about 2MB of memory. And I'm not worried about handling a few hundred thousand more.
__________________
Reply With Quote
  #6 (permalink)  
Old June 21st, 2011
ToNneTje's Avatar
Gnutella Admirer
 
Join Date: January 24th, 2009
Location: Netherlands
Posts: 69
ToNneTje is flying high
Default

Thanks Gregor, gonna try that...

This is the IP i want to block, as you can see this client is very agressive, after blocking there still a lot retries form this IP address:



My screen is not high enough to make a screen of ALL blocked clients (and still nog block all!) with this IP address, the screenshot would be 6 times longer
Reply With Quote
  #7 (permalink)  
Old June 20th, 2011
Sleepless's Avatar
ReTired
 
Join Date: January 1st, 2006
Location: Unknown
Posts: 3,121
Sleepless is just really nice
Default

Try looking through these threads. Especially the fourth one i.e. http://www.gnutellaforums.com/help-s...locks-ips.html :

site:gnutellaforums.com +phex +"ip-range" filter - Google Search

I'm ashamed to say Google searches Gnutellaforums way better than Gnutellaforums do
Reply With Quote
  #8 (permalink)  
Old June 22nd, 2011
ToNneTje's Avatar
Gnutella Admirer
 
Join Date: January 24th, 2009
Location: Netherlands
Posts: 69
ToNneTje is flying high
Default

It works, i only have to add 1 rule now to block complete IP range ;-)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 04:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.