Gnutella Forums  

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

General Discussion For anything which doesn't fit somewhere else (for PHEX users)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old January 29th, 2005
Apprentice
 
Join Date: January 29th, 2005
Posts: 5
rjpear is flying high
Default Security Rules?

Hi Folks..

Where does PHEX (2.0.0.76) store it's security rules? I want to create a set of rules to distribute to friends which allows/denys certain IP ranges but cannot find the file where they are stored...

Thanks!

Rob
Reply With Quote
  #2 (permalink)  
Old January 30th, 2005
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

In you user home directory there is a folder called phex or .phex

In windows this usually is c:\Documents and Settings\<YourLogin>\phex

In this folder is a file called security.xml

The format is:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<phex phex-version="2.1.4.80">
<security>


<ip-access-rule>
<description>Banned by user.</description>
<isDenyingRule>true</isDenyingRule>
<isDisabled>false</isDisabled>
<triggerCount>196</triggerCount>
<expiryDate>1143121516735</expiryDate>
<isDeletedOnExpiry>false</isDeletedOnExpiry>
<addressType>2</addressType>
<ip>CFEA0000</ip>
<compareIP>FFFF0000</compareIP>
</ip-access-rule>

... more rules
...
...


</security>
</phex>



Gregor
__________________
Reply With Quote
  #3 (permalink)  
Old January 30th, 2005
Apprentice
 
Join Date: January 29th, 2005
Posts: 5
rjpear is flying high
Default Thanks..

Thanks sir...

That XML file..The IP listed... There are two TAGS..first IP and the other is Compare IP ..If you were doing a rule that was and IP SPAN ...ex: 202.34.34.00-202.34.34.255 ..How is this displayed? Would the IP tag be the first number and the compare be the second?? In HEX..

Thanks again..

I find that PHEX seems th be the most Flexible and powerful client out there for controlling what you want or need ....

A request would be able to dump all searches that stream by in the SEARCH monitor to a TEXT file or a log.. there is some neat stuff in there...

Thanks!
Reply With Quote
  #4 (permalink)  
Old January 30th, 2005
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Yes, in case address type is 3 the ip is the "from" value and the compare IP is the "to" value.

Check this old thread for a more complete but still valid description.

http://www.gnutellaforums.com/showth...threadid=22835
__________________
Reply With Quote
  #5 (permalink)  
Old January 30th, 2005
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Oh by the way if you like to block from x.y.z.00 to x.y.z.255
you can also use the address type 2 for a netmask...
like 255.255.255.0 in this case

address type would be 2
ip would be x.y.z.0
compareIp would be 255.255.255.0

resulting in a block of x.y.z.0 - x.y.z.255


The address type 2 is the most performant when evaluated and should therefore be preferred if possible. Most IP ranges can be specified with the use of a net mask.
Just search in google for a decent netmask calculation tool.
__________________
Reply With Quote
  #6 (permalink)  
Old February 3rd, 2005
Apprentice
 
Join Date: January 29th, 2005
Posts: 5
rjpear is flying high
Default block all except?

Hi folks..

Is there anyway to block ALL except the ones you have a rule to ALWAYS accept?

And is there a way to STOP PHEX from looking for HOSTS at any point and just Dload from what you have listed..?

Thanks!

Rob
Reply With Quote
  #7 (permalink)  
Old February 4th, 2005
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default Re: block all except?

Quote:
Originally posted by rjpear
Is there anyway to block ALL except the ones you have a rule to ALWAYS accept?
Yes... use a "accept" security rule with the IPs you only like to accept.
But keep in mind this counts for network, download and upload hosts.

Quote:
And is there a way to STOP PHEX from looking for HOSTS at any point and just Dload from what you have listed..?
[/B]
Yes, just disconnect from the network. Downloads and uploads will still continue.
__________________
Reply With Quote
  #8 (permalink)  
Old February 4th, 2005
Apprentice
 
Join Date: January 29th, 2005
Posts: 5
rjpear is flying high
Talking

Thanks sir!...

Rob
Reply With Quote
  #9 (permalink)  
Old February 20th, 2005
jerle
Guest
 
Posts: n/a
Default

I edited the security XML file on my PC and it doesn't seem to change update anything on the security tab of Phex. I even added some using the GUI, but as soon as i close teh program and re-open, my newly created rule is gone. All of the system rules still seem to be there, though. I even removed the security XML file altogether, but the system rules still showed showed up. Am i missing something here?

-Adrian
Reply With Quote
  #10 (permalink)  
Old February 20th, 2005
jerle
Guest
 
Posts: n/a
Default

Btw... I'm using Phex 2.0.0.76. I had .0.9.0.44 for a while, but upgraded later.

-adrian
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing with the rules arne_bab General Discussion 4 August 9th, 2006 08:39 PM
phex security rules not working? f00bar General Discussion 5 March 6th, 2006 02:33 PM
LW 1.7 RULES my Mac Rhohl General Mac Support 2 April 17th, 2002 11:13 AM


All times are GMT -7. The time now is 11:28 AM.


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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.