View Single Post
  #2 (permalink)  
Old December 10th, 2003
GregorK GregorK is offline
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

The file is called security.xml
It is located in the phex or .phex directory of your home directory.

The file header is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<phex phex-version="0.9.5.57">
<security>

The content is:
<ip-access-rule>
<description></description>
<isDenyingRule>true</isDenyingRule>
<isDisabled>false</isDisabled>
<expiryDate>9223372036854775807</expiryDate>
<isDeletedOnExpiry>false</isDeletedOnExpiry>
<addressType>1</addressType>
<ip>01010101</ip>
<compareIP>FFFFFFFF</compareIP>
</ip-access-rule>

The file footer is:
</security>
</phex>


The expiryDate is the time in millis since 1.1.1970. The above example is Unlimited.

The addressType value meaning is:
1 - single address (<ip>)
2 - network mask ( <ip> and <compareIP> is mask )
3 - network range ( <ip> is from IP and <compareIP> is to IP )

The IP address is in HEX format the above <ip> shows 1.1.1.1 and
<compareIP> shows 255.255.255.255


I hope this helps you. If you have any questions please ask also if you like to suggest a different import format, I'm thinking about an import feature and like to get some suggestions about it.

Gregor
__________________
Reply With Quote