rejetto forum

Recent Posts

1
Many anti-virus vendors regard "non-professional" web servers (or what would act like a server) a virus.

You can see the "virus" code names, many say HFS is a malicious thing because it is HFS.  ::)

Do not be anxious. HFS is free (as in freedom) and open source software. Anyone can check it's source code and do real safe analytics.

So, never trust those proprietary vendors. The only thing they can do is to cheat people that uses free (libre) software.
2
This cant be True  this is for people running 2.3m or older   version 2.4 does not have any issues yet


https://www.virustotal.com/gui/file/e678899d7ea9702184167b56655f91a69f8a0bdc9df65612762252c053c2cd7c/detection


AhnLab-V3

PUP/Win32.HFS.R265561
Cyren

W32/Tool.BLAC-3403
ESET-NOD32

A Variant Of Win32/Server-Web.HFS.A Potentially Unsafe
Gridinsoft

PUP.Win32.Presenoker.vb
Ikarus

PUA.Server-Web.Hfs
Jiangmin

Server-Web.Agent.e
Rising

PUA.Presenoker!8.F608 (CLOUD)
Sophos

Http File Server (PUA)
Yandex

Trojan.Igent.bUPfHj.19
Zillya

Trojan.Generic.Win32.347568
3
...the file can be only accessed by a specific IP...
At HFS console, press alt+f6 to edit events file, and add this:
Code: [Select]
[download]
{.if|{.match|myparticularfile.doc|%url%.}|{:{.if|{.!=|%ip%|127.0.0.1.}|{:{.disconnect.}:}.}:}.}
replace  myparticularfile.doc  with target file name (to block for most)
replace  127.0.0.1  with target IP address (to allow for one)

P.S. Other options instead of  myparticularfile.doc may be /folder* or *.doc and you can even add to the list, such as myparticularfile.doc;myotherfile.txt;*.pdf with semicolon in-between. 

P.P.S. If this method seems clunky, then you could use the more normal and flexible users/groups/passwords, located in hfs menu > other options > user accounts.  And, then you can right-click on a particular folder/file to set it private to your users/groups. 
4
Programmers corner / Re: Template/events for QOS or traffic shaping.
« Last post by danny on April 29, 2021, 03:01:40 PM »
...a variable is defined by its name which can include letters or numbers and preceded by # to become a global variable
just include %ip% in the name
{.set|#flag_%ip%| ....   .}
Thanks Mars! 
5
if only one particular ip should be able to access the folder, add something similar in the diff template of the folder properties

either by using a forced disconnection
Code: [Select]
[+]
{.if|{.=|%ip%|127.0.0.1.}|{:{.disconnect.}:}.}

or even better by using a redirect which gives the user the impression of an invalid link

Code: [Select]
[+]
{.if|{.=|%ip%|127.0.0.1.}|{:{.redirect|../ .}:}.}


replace 127.0.0.1 by the allowed ip


a more concrete example is to only give access to a specific user without going through permissions

Code: [Select]
[+]
{.if|{.!=|%user%|Tsuna.}|{:{.redirect|../ .}:}.}


note the difference in use between  {.!=|    and  {.=|  , difference or equal usage
6
Not working. REEEEEEE

I want that the file can be only accessed by a specific IP I want.

like a folder's file can be accessed through 1.1.1.1 nor can access the file.
7
Programmers corner / Re: Template/events for QOS or traffic shaping.
« Last post by Mars on April 28, 2021, 05:43:39 PM »
Are there some per ip-specific measurements?

no

How to make global variable apply to only 1 ip? 

a variable is defined by its name which can include letters or numbers and preceded by # to become a global variable
just include %ip% in the name

{.set|#flag_%ip%| ....   .}

global variables only exist while hfs is running

8
It works:
Code: [Select]
[+]
{.if|{.!=|%ip%|127.0.0.1.}|{:{.disconnect.}:}.}
9
Programmers corner / Re: Template/events for QOS or traffic shaping.
« Last post by danny on April 28, 2021, 02:23:15 PM »
@Mars
For QOS purpose, I had few questions...

Are there some per ip-specific measurements?
How to make global variable apply to only 1 ip? 

something like these:?
connections_this_ip
active_downloads_this_ip
set or get #^flag_this_ip

Some templates have extra features (such as thumbnails) that are not good in high-load conditions.  It is good to make a bypass macro to temporarily streamline the template (without extras) to lighten the load.  If global measure is used for traffic shaping, then 1 miscreant affects everyone (this is anti-QOS); so, for QOS function, it may be better if feature-bypass macro targeted the specific overdoing IP address. 
I don't know; but, if the per-ip measures are available, then I could test it. 
10
Right click on your folder, select "Properties...", then go to "Diff template" tab, put in these:
Code: [Select]
[^]
{.if|{.!=|%ip%|192.168.2.149.}|
{:{.disconnect.}:}
.}
(replace the ip to yours)

Push OK then it works ;)