rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: jlpelectronics on March 26, 2009, 05:37:05 AM

Title: questions
Post by: jlpelectronics on March 26, 2009, 05:37:05 AM
Hi Rejetto
About hfs, nice programs... i am testing hfs months ago, so i am test 2.3-230 now... nice... good... i have some questions:
- I have a task to run hfs when XP started... when login with administrator user... all good, when login with another user no administrator, i have an "monolib error" on display. Also, the ISO format for the date no work... i have to turn off hfs and start it again.
- Is possible to logout next to be login... leave my PC login is no good idea... maybe a timeout for logout?
- If i have an folder only for upload, no for read or delete... Is possible upload files without see the files uploaded before?
Thanks for advancing
Title: Re: questions
Post by: rejetto on March 26, 2009, 11:10:08 AM
1. could you please post the full message?
2. why you say the ISO date doesn't work? could you please post an example?
3. no logout at the moment, sorry, you have to close your browser. i know this sucks.
4. yes, it's possible. http://www.rejetto.com/forum/index.php?topic=6715.0

last 2 questions were answered many times on this forum. use the search!
Title: Re: questions
Post by: jlpelectronics on March 28, 2009, 05:32:25 AM
Thansk for you attention... ok i will post problem 1 on mon... i am far of my office
About ISO date, before i login on XP, the ISO is good... i have tested it from doing a remote access... when i login on XP, the date change to format am-pm: ej: 24/3/09 10:23:58 p.m.... turn off and on again solve the problem...
The solution about 4 is good.. thanks.
Also... I am sorting the files by time-ISO date... but I prefer to sort root directory by name... Is possible?
Thanks for advancing... congratulations again... nice soft...
Title: Re: questions
Post by: rejetto on March 28, 2009, 02:28:58 PM
please post: menu > debug > show customized options
and a screenshot of the page with the wrong date format.

is your HFS running normally or as a service?
Title: Re: questions
Post by: Baggio on April 19, 2009, 10:47:29 PM
Do please restrict downloads to only certain IP addresses
Title: Re: questions
Post by: rejetto on April 20, 2009, 11:34:16 AM
you can do it by using HFS 2.3 and an event script (ALT+F6)

[+download]
{.if not
|{.match address|127.0.0.1|%ip%.}
|{:{.disconnection reason|you shall not pass!.}:}
.}
Title: Re: questions
Post by: Baggio on April 21, 2009, 12:55:21 PM
you can do it by using HFS 2.3 and an event script (ALT+F6)

[+download]
{.if not
|{.match address|127.0.0.1|%ip%.}
|{:{.disconnection reason|you shall not pass!.}:}
.}


So right?
Quote
[+download]
{.if not
|{.match address|127.0.0.1|%ip%.}
|{.match address|62.16.0.0/19|%ip%.}
|{.match address|62.64.64.0/18|%ip%.}
|{.match address|62.64.88.0/21|%ip%.}
|{.match address|62.64.112.0/21|%ip%.}
|{:{.disconnection reason|you shall not pass!.}:}
.}
Title: Re: questions
Post by: Mars on April 21, 2009, 06:38:44 PM
In programming as with the macro, the same rules apply, so thus:
 if not BOOLEAN  then  ACTION1  else  ACTION2

{.if not| BOOLEAN | ACTION1 | ACTION2 .}

In fact so that your macro works it is necessary to write it as what follows

Quote
[+download]
{.if not|{.trim|
              {.match address|127.0.0.1|%ip%.}
              {.match address|62.16.0.0/19|%ip%.}
              {.match address|62.64.64.0/18|%ip%.}
              {.match address|62.64.88.0/21|%ip%.}
              {.match address|62.64.112.0/21|%ip%.}
            .}
|{:{.disconnection reason|you shall not pass!.}:}
.}

Title: Re: questions
Post by: rejetto on April 21, 2009, 07:24:52 PM
62.16.0.0/19

HFS doesn't support this syntax.
can you tell me what addresses are supposed to match 62.16.0.0/19 ?
Title: Re: questions
Post by: Baggio on April 21, 2009, 08:26:04 PM
62.16.0.0/19

HFS doesn't support this syntax.
can you tell me what addresses are supposed to match 62.16.0.0/19 ?
This syntax is called a band, I understand. In principle, 62.16.0.0/19, so you can replace: 62.16 .*.*
I think this will work?

I want to allow access only to a specific list of IP addresses!
The list will be taken from this site: http://www.colocall.net/uaix/ (http://www.colocall.net/uaix/)

If it was Apache, then I would be allowed access as follows:
Quote
deny from all
allow from 62.16.0.0/19
allow from 62.64.64.0/18
allow from 62.64.88.0/21
allow from 62.64.96.0/21
allow from 62.64.112.0/21
allow from 62.64.120.0/21
allow from 62.72.160.0/19
allow from 62.80.160.0/19
allow from 62.122.0.0/21
allow from 62.122.56.0/21
allow from 62.122.64.0/21
allow from 62.122.104.0/21
allow from 62.122.152.0/21
and so on all 2598 lines  ;D

That is, I want to allow access only to Ukrainian IP addresses  ;D  ::)
And how do, I do not know  :P
Title: Re: questions
Post by: Mars on April 21, 2009, 08:41:13 PM
It would be easier for you to use the banlist
look at teh wiki to more informations
http://www.rejetto.com/wiki/index.php/HFS:_Main_menu#Limits

MENU > Limits > Bans

Add row for multi-lines

Ip Adress MaskComment
\127.0.0.1Localhost allowed
\62.16.*.*allowed
\62.64.64.*allowed
\62.64.88.*allowed
\62.64.96.*allowed
\62.64.96.*allowed
\62.64.96.*allowed
\62.64.120.*allowed
\62.72.160.*allowed
\62.80.160.0-62.80.160.255allowed
\62.122.0.0-62.122.255.255allowed
\62.122.56.0-62.122.56.255allowed
\62.122.64.0-62.122.64.255allowed
\62.122.104.0-62.122.104.255allowed
\62.122.152.0-62.122.152.255allowed
0.0.0.0-255.255.255.255Baned


http://www.rejetto.com/wiki/index.php/HFS:_IP_masks

127.0.0.1-127.0.0.10

127.0.0.*       =    127.0.0.0-127.0.0.255
Title: Re: questions
Post by: rejetto on April 22, 2009, 08:26:46 AM
in hfs you can specify 62.16.0.0/19 as 62.16.0.0-62.16.31.255

it's not the same as 62.16.*.* that will accept 62.16.32.10
Title: Re: questions
Post by: MarkV on April 22, 2009, 02:16:00 PM
Maybe HFS could learn to understand CIDR notification?
Title: Re: questions
Post by: rejetto on April 22, 2009, 03:18:51 PM
it will
Title: Re: questions
Post by: Baggio on April 22, 2009, 05:32:10 PM
Dear developer, but it is a very long time by hand. I would in a file using the function Akelpad replace all of 2958 set the IP:) Notepad (AkelPad) will be faster:)

OMG  ;D
Title: Re: questions
Post by: rejetto on April 22, 2009, 06:58:31 PM
guys, you are doing the wrong way.
there's no need to make 1000 rules.
you can make 1 rule, and all masks divided by semicolons.

62.16.0.0/19;62.64.64.0/18;62.64.88.0/21;62.64.96.0/21

anyway the A/B thing will work only from next build.
Title: Re: questions
Post by: Baggio on April 22, 2009, 07:25:25 PM
It will be very good! Waiting  ;D