rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - cmatte

Pages: 1 2 3
HFS ~ HTTP File Server / Re: Q / REQ : Proxied client IP detection
« on: February 04, 2009, 02:51:28 PM »
Mmh I didn't think about it...there's also a complete dump log, cool!
Well, just tried, here it is an example:
Code: [Select]
04/02/2009 15.06.24 Server stop
04/02/2009 15.06.25 Server start
04/02/2009 15.06.31 Connected
04/02/2009 15.06.31 Got 591 bytes
04/02/2009 15.06.31 Requested GET /
04/02/2009 15.06.31 Request dump
> GET / HTTP/1.1
> Connection: Keep-Alive
> Keep-Alive: 300
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Accept-Encoding: gzip,deflate
> Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
> Cookie: Volume=100
> Host: ********
> Max-Forwards: 10
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv: Gecko/2008120122 Firefox/3.0.5
> X-Original-URL: /
> X-Forwarded-For: 79.9.192.***:49538
> X-ARR-SSL: 0|128|CN=********|CN=********
> X-ARR-LOG-ID: 7bcb7281-a6a0-43d0-a1d2-15fa94a3613c
04/02/2009 15.06.31 Sent 1460 bytes
04/02/2009 15.06.31 Served 1.83 KB
04/02/2009 15.06.34 Requested GET /favicon.ico
04/02/2009 15.06.34 Request dump
> GET /favicon.ico HTTP/1.1
> Connection: Keep-Alive
> Keep-Alive: 300
> Accept: image/png,image/*;q=0.8,*/*;q=0.5
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Accept-Encoding: gzip,deflate
> Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
> Cookie: Volume=100
> Host: ********
> Max-Forwards: 10
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv: Gecko/2008120122 Firefox/3.0.5
> X-Original-URL: /favicon.ico
> X-Forwarded-For: 79.9.192.***:49538
> X-ARR-SSL: 0|128|CN=********|CN=********
> X-ARR-LOG-ID: 08f95bf5-cc95-4603-939e-7afe57cfbe4e
04/02/2009 15.06.34 Sent 21875 bytes
04/02/2009 15.06.34 Served 576 B
04/02/2009 15.06.37 Got 1257 bytes
04/02/2009 15.06.37 Requested GET /favicon.ico
04/02/2009 15.06.37 Request dump
> GET /favicon.ico HTTP/1.1
> Connection: Keep-Alive
> Keep-Alive: 300
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Accept-Encoding: gzip,deflate
> Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
> Cookie: Volume=100
> Host: ********
> Max-Forwards: 10
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv: Gecko/2008120122 Firefox/3.0.5
> X-Original-URL: /favicon.ico
> X-Forwarded-For: 79.9.192.***:49542
> X-ARR-SSL: 0|128|CN=********|CN=********
> X-ARR-LOG-ID: 72db2f02-1fb7-41ef-b7c4-d98217292419
04/02/2009 15.06.37 Sent 1152 bytes
04/02/2009 15.06.37 Served 576 B
p.s. I hide personal informations (*s).
The interesting thing is also the X-ARR-LOG-ID part!
I've read on their website (they have an entire section in the IIS7 support forum for ARR only) they're working hard to make a "undefined" utility (could be an Apache extension or a module of IIS7 or a standalone application?) to make ARR interact with (for example) Apache server and, in particular, they want the Apache logs to contain real IPs(are there other things one could want to do!? don't think so...but you never know!)...I guess they're going to cross-check the LOG-ID for this!
Also, they say there's the functionality to achieve the same also with the current version...but seems the way is a bit abrupt (guess we'd need to use the console, like I needed to specify the personalized port of HFS)!

Anyway...WOW! The IP is there already, available to HFS ;D Now, how to change the IP HFS logs, 'securely'? I mean, as I read somewhere else in the forum, you spoke about the possibility a client would send its own "X-Forwarded-For" part that could make the system log the wrong IP!
BUT...since with ARR the "name" of the specify is editable...and, correct me if I'm wrong, the client doesn't even see the specifies added by ARR and sent to HFS, why not just use a brand new name and let ARR send it, I don't know, ARR-HFS-Forwarded-For for example ;D
Let me know what you think, and thanks for the help  ;)

RAWR-Designs / RAWR-Player doesn't work after 1-2 songs played[SOLVED]
« on: February 03, 2009, 09:28:38 PM »
as I wrote somewhere else, I'm trying Windows-7 (x64, public beta build 7000, really COOL and DAMN FAST BTW (was using Vista b4) :o) and for the occasion I got IIS7 working in a few clicks and I installed onto it a sort-of proxy which allows to redirect any https request to the local HFS server and answers accordingly, oh, this with LOTS of clicks due to a silly bug in install :P.
Well, this is just to introduce me, anyway, everything seems to work just fine as expected, except one thing: the RAWR-Player (into RAWR-Template 0.1.1).It plays songs one time or two, and it locks on the third one (or so). The way it locks is strange: it effectively downloads the whole song (so HFS says) many times(I think it's for some sort of retry) but it doesn't play it and stays stuck to 0:00.
This happens with Firefox 3.0.5 only.On IE 8.0.7000 everything works as it should.
I also [just] tried connecting to the non-SSL direct HFS page and it does exactly the same.


HFS ~ HTTP File Server / Re: Q / REQ : Proxied client IP detection
« on: February 03, 2009, 07:00:11 PM »
any update on this?
I'm absolutely SURE I've read a post of you saying that "normal" proxied connections would give the correct ip into the HFS logs...and by normal, you meant NOT Stunnel as it's not a real http-proxy but encodes the whole TCP/IP this just to say I don't find it again ;D

The fact is that I believed into it and looked for something more like a http-proxy to use HFS protected by SSL.
Since I'm using Windows-7, I thought about IIS7 already integrated and went on with it. I created with it my own certificate, self-signed of course, and also very big like 8192 (there was the double too but I avoided ;D) and looked for a way to redirect traffic from the IIS7 working https protocol to HFS. I found it: it's a "RC" extension called Application Request Routing that together with URL Rewrite module now is set to correctly redirect traffic from https:443 to http HFS local port 8181.

Well, all this ""interesting"" story :D just to say I expected to see REAL IPs into HFS logs but...surprise...they're not there!!!! And I'm very disappointed mainly because I've had 2-3 hours of headache to correctly install IIS7 and mainly ARR with all its requirements (basically url rewrite which didn't install correctly into w-7 because of a bug...solved with a registry know those silly beta-software's bugs are made also by M$ hehehe).

I'd like to continue using this config as it is intersting and has much power ready to be used but mainly I simply wanted to use SSL and see IPs correctly...some hints? What kind of software did you mean with the post mentioned?


p.s. I've just noticed in the ARR there are two interesting options:
Preserve Client IP in the following header:
Forwarding proxy header value:
Everything into >< is editable...

RAWR-Designs / RAWR-Player-0.2.1 && RAWR-Template-0.1.1[SOLVED]
« on: February 03, 2009, 11:40:04 AM »
is there a way to update the RAWR-Player into the 0.1.1 template?
I tried changing the player file into rawr_default/player and it loads but it keeps downloading the needed file without loading it :-\

HFS ~ HTTP File Server / Re: Run as a service + see GUI on logon [How-to]
« on: October 14, 2008, 12:02:57 AM »
the scheduler seemed too complex for me :-\
I really couldn't find what to insert when it asked for IDs, I could take the ID corresponding with the service-stop but I noticed an Event ID of a service-stop is a generic one of that type, the same for all service-stops, so it was not that helpful!
Instead I decided to start the development of a ALWAYS-ON batch which checks for the hfs presence and starts the service if needed.
I'm not that good at writing in batch, so please give me some advices...
The problem I'm having is -only- about the logs: it simply doesn't log a successful service start and I really don't understand why...could be just that here it's TOOOO late to be still fresh ;D
Here it is my code, if you can give it a watch...I think it could be useful for many people and also ready to further developments (user login detection to decide if open the service or the normal exe and read of the log file position from hfs.ini for example):
Code: [Select]
@echo off
echo Copyright by ErMeglio!!! Feel free to use for private purposes only xD. Visit
for /f "tokens=1,2,3 delims=/" %%i in ('echo %date%') do (
set day=%%i
set month=%%j
set year=%%k
REM ---user-defined variables---
set servicename=HFS-Service
set logA="D:\HFS logs\%year%\%month%\%day%-"
set logB="Always-OnLog.log"
set logS="ServiceStartLog.log"
set wait=15
REM ---end of user-defined variables---

echo [INFO]Check if HFS is running
tasklist | find "hfs.exe" | find /v /i "find"
if not .%errorlevel%.==.0. goto NOHFS

echo [INFO]HFS is running: wait %wait% seconds and check again
ping -n %wait% -w 1000 > nul
goto START

echo [NOHFS]HFS isn't running: trying to start %servicename%
echo %date% %time% - There is a problem: HFS isn't running.Trying to start the service and check again in %wait% seconds. >> %logA%%logB% 2>>&1
net start %servicename% > nul > %logA%%logS% 2>>&1
if not .%errorlevel%.==.0. goto ERROR

echo [OK]The service %servicename% started correctly.Will continue checking.
echo %date %time% - The service %servicename% started correctly.Will continue checking in %wait% seconds. >> %logA%%logB% 2>>&1
del %logA%%logS%
goto START

echo [ERROR]It seems %servicename% didn't start normally.Please see logs.The check process will continue checking and trying to fix this in %wait% seconds.
echo %date% %time% - It seems %servicename% coulnd't start normally for some reasons, net-start log follows: >> %logA%%logB% 2>>&1
type %logA%%logS% >> %logA%%logB% 2>>&1
del %logA%%logS%
echo %date% %time% - The check process will continue checking and trying to fix this in %wait% seconds. >> %logA%%logB% 2>>&1
goto SLEEP
Well, every log seems to be written correctly, except the one under the :OK, can someone find the bug in it?

Anyway when it's all done my idea is to do a scheduled start of this as soon as a user disconnects from its session. This should be enough. Instead when a user logs on I'm using the previous batch and it works. Theoretically this batch could be run also after logon because it checks for the hfs.exe presence, which includes the normal GUI! If I discover how to check when a user is logged on I'll integrate the ability to open up the GUI if it's the case.

Thanks for listening at a crazy one like me  8)

HFS ~ HTTP File Server / Re: Run as a service + see GUI on logon [How-to]
« on: October 12, 2008, 06:13:16 PM »
Mmh just did the changes with no luck: it still doesn't start the service when I log off...I guess it's because that Hidden Start app is closed BEFORE the batch can finish its duties.
The scheduler could be a solution, not that clean but I guess it would work, I'll check out if it can constantly check for the presence of HFS.exe or the HFS-Service and start the latter if none is found.
Well, perhaps I didn't explain that good: if I accept yes, I can see the HFS GUI, but:
1)When I say environment, I mean ALL: I have to say goodbye to my desktop and apps I'm using just to see only HFS in a old-style scary desktop.When I'm in that environment I have to click "terminate now" on that win95 style window to return to my desktop again.Then I'd see the annoying message again because HFS is not reduced to icon/closed anyway and always tries to ""show a message"".Also, this way I can't constantly check what's on when I'm logged in: connections, downloads, uploads.All this isn't convenient at all :-\
2)If I don't need HFS I can close that window and forget about it, but only for "some" minutes, then it appears again.Instead if I have to check the GUI arbitrarily I can't, because I've to wait those minutes.The alternative is to toggle the desktop interaction as I said and that window doesn't show up ever again, I'll have no gui at all then.
Hope I've been clearer, if not I'll explain in Italian ok ;D

About LeDuFe utility, do I need to set its GUI at startup to see the tray icon? If yes, can I open it directly in tray?
[SOLVED]: Just made a shortcut to it, put in Startup folder, and in properties I've set to start minimized, this did the trick!
--end edit--

I'll be back when I've checked the scheduler, thanks for now ;)

HFS ~ HTTP File Server / Run as a service + see GUI on logon [How-to]
« on: October 12, 2008, 12:03:29 PM »
I'm looking for a way to both launch HFS as a service cleanly and then see the HFS GUI on user logon.
I'm at the point in which I can run HFS as a service with the cool LeDuFe application.
HFS service is in fact reachable but I can't check the GUI (as expected) and I also have an annoying warning from Windows Vista (x86) saying an app isn't able to show a message in the current environment and proposes me to switch to an isolated environment in which I can see only the HFS main window. I can tell it to show the message later but it's annoying!
This is the Window I am speaking of:

I managed not to let it appear un-ticking the option "Let the application interact with the desktop" under Services.
Ok, let's say this is acceptable, how to show the HFS GUI on logon?
I thought about a batch file stopping the service and opening the HFS.exe executable, I've written this simple one:
Code: [Select]
@echo off
net stop HFS-Service
net start HFS-Service
with the last line I -hope- it just starts the service again when I close the session and/or HFS GUI.
This batch is run under another 3rd party application, Hidden Start, to hide the bad black console.

So, currently it correctly stops the service and opens the HFS gui BUT it doesn't seem to start the service again when I close the session. Instead it correctly starts the service if I close the HFS GUI.
Is there some sort of "Run as logoff" way to separate the two things or other similar advices to let it work?

Beta / Re: Testing build #201
« on: September 03, 2008, 10:38:43 AM »
old problems were really annoying :)

HFS ~ HTTP File Server / Re: HFS & Wine all updated: need advices
« on: July 28, 2008, 03:10:25 PM »
Ops :-[ [Gaff!]
Appena letto il messaggio ho aperto HFS e ho letto "nuova versione"...ho fatto 2+2 ma mi sa che non sempre fa 4 :P

La speranza rimane  ;D

HFS ~ HTTP File Server / Re: HFS+Ubuntu7.04+wine=Happy user :-)
« on: July 28, 2008, 12:39:46 PM »
Had lost this interesting thread! Hem...and opened another, trying to figure out problems.
To launch HFS on system start, if you're using Ubuntu (but I think any gnome based system) you can go to system-preferences-sessions, click add, and set your hfs path (e.g. "/media/DATA 320/HFS/hfs.exe", yes, with quotes, especially if you've spaces in the name). That's all  ;)

P.S. Could someone give advices here about hfs, wine and ubuntu ? Some problems seem to be born after this thread (for example the inability to make hfs window appear normally)...

HFS ~ HTTP File Server / Re: HFS & Wine all updated: need advices
« on: July 28, 2008, 12:19:51 PM »
Hai ragione, mi sono accorto della bandierina giusto quando ho scritto il messaggio!
Comunque..lo so..hai completamente ragione riguardo a dove dovrei lamentare problemi simili.
Spero capirai che tempistiche e modalità sono diverse, non posso che ringraziarti per la completa disponibilità.
Ho provato adesso la nuova build, purtroppo non cambia niente e forse è proprio il messaggio finale che 'sveglia' wine, peccato, grazie molte lo stesso!

Tra l'altro, per la cronaca, da quando sto tenendo hfs e stunnel attivi ritrovo sistematicamente il pc bloccato, e posso solo riavviare.
Sia chiaro, non voglio additare niente e nessuno, lo scrivo giusto per dare e/o ricevere informazioni, comunque indagherò per trovare il responsabile di questa nefandezza ;D
Beh, che dire, sono passato ad Ubuntu per sicurezza, velocità, possibilità di personalizzare e stabilità. Ma se le cose per cui uso comunemente il pc devono funzionare peggio beh...potrei ripensarci, in fondo Vista non si pianta così *quasi* MAI :-\
(sembra un buon inizio per un flame, in realtà mi andava solo di esprimere un pensiero in transito, bbbooooniii ;D ;D)

[fast-updates for English people following]
Seems Wine has problems maximizing the hfs window, Rejetto effectively tried to help to solve but it seems there's nothing he can do, it's a wine problem.
I think I'll go and look for their help to solve the bugs we found. It surely will help if we're more than one to point them. I'm going to have a look at their site and update here, to point you all to let out voice be heard ;)

It seems to me one the bug is this one!
But I just wanted to add a new detailed one.
Please register and vote for them and/or leave a comment. That could help us all ;)

HFS ~ HTTP File Server / Re: HFS & Wine all updated: need advices
« on: July 27, 2008, 02:58:00 PM »
Thanks for your reply,
well, that could help of course, but could be not enough.
I try to explain better(heem..perhaps we could have a conversation in italian, I'm not so explicative in english, will try anyway :) ) : when I simply remember to click restore HFS appears, but its icon isn't there in the bottom bar with the list of open windows.
Instead, if I do run completely the Self Test, right clicking on the HFS tray icon, at the end I get HFS AND the icon of the window in the bottom bar.
In the first way HFS can be seen but it's like it isn't recognized by the system, that's proven by the fact hfs window is merged with the desktop background if I start using effects to see all the desktops.
Also, if I minimize HFS, I can't see it again, it's not there in alt-tab, nor on any other desktop area. I can only, again, run the Self Test which makes it appear again everywhere and correctly.
I don't know if there's something different in the way hfs window pops up when clicking restore/double clicking the icon and when a self test finishes, but if there is, it would be great if you make it appear always as it does after the self test.

The minimize to tray doesn't work but you're right, perhaps Wine always use its own ideas to minimize/resize/close icons with the 3 buttons.Anyway that's not a real matter, as we've as many desktop areas as we want to put hfs on  ;)

Oh, my Wine just updated to 1.1.2 and wow, the port problem which made port used by hfs remain busy for some minutes has just gone, I can switch it off and on without having to wait 8)

[Very OT: "Hide email address from public" is checked on my profile, but my email address seems to be right there for everyone ???]

HFS ~ HTTP File Server / Re: HFS & Wine all updated: need advices
« on: July 25, 2008, 11:33:51 AM »
Many thanks for the detailed reply!
Seems like I have some good news for you ;D
  • First port problem: it's right hfs doesn't want to work on port 80 etc, but it doesn't have to be a Wine restriction since I'm using HFS AND Stunnel for SSL (windows version one, I have problems making the native linux one work :-[). So HFS is running stable on 8080 listening only on and Stunnel correctly listens on 443 for the outside web regular hppts/SSL protocol.The only problem I noticed is sometimes when you switch off/close hfs, you have to wait 1-2 minutes to have 8080 "usable" again.So, no need to mess with the router page ;)
  • HFS not opening sub-menus: seems like mine is opening correctly sub-menus!
  • My HFS is set to start minimized and the icon always appears in the taskbar.The real problem appear if I try to open it left-clicking on the icon: nothing happens! Instead, if I *remember* to right click and choose restore it works perfectly (can't do this if you previously clicked on the icon with the left button: restore disappears [p.s. Rejetto could we change this ::) ?]). Anyway if you did click on it with the left you are still able to open the window choosing from the right menu a Self Test and making it run: as soon as it finishes HFS windows appears magically :o [again, Rejetto, could this be a problem of "how" you invoke the window appearance? Could you invoke it the same way on left click and restore as the way at the end of Self Test? p.s. I could just be saying nonsense :)]
  • What I noticed is that once opened the window, there's no way to minimize it again: it can be set to "Minimize to tray on close..." but it really closes every time(I set it to ask a confirmation on exit since I'm forgetting this every time :-\).I used to bring it to the second desktop and leave it there (with the cool compiz you can see it in a while ;) (hem update, *only if you opened HFS with the Self Test, which makes the window really seen by linux as a window, with the icon in the bottom tasbar! Otherwise, strange merge happens with your desktop and the HFS image*))
  • I've not experienced last problem, but it seemed to work every time I tried or made someone connect to it.What happened is the window sometimes remains locked and doesn't show connections made to it, but the server itself "serves"  :)
  • Oh, forgot to mention, I've just tried inserting a USB Key and it was correctly mounted by Ubuntu. Then I opened HFS and simply added a new real folder with the usb drive, after having taken note of its mount point: it works! I can download things from it without any problem ;)

I'm using Ubuntu 8.04.1, Gnome 2.22.3, Wine development version on Wine's repositories 1.1.1.
I think latest one is the solution for you, simply do, taken from Wine's website:
First, open a terminal window (Applications->Accessories->Terminal). On Debian, you will need to open a root terminal. Then add the repository's key to your system's list of trusted APT keys by copy and pasting the following:

Code: [Select]
wget -q -O- | sudo apt-key add -
Next, add the repository to your system's list of APT sources:

For Ubuntu Hardy (8.04):
Code: [Select]
sudo wget -O /etc/apt/sources.list.d/winehq.list
For Debian Etch (4.0):
Code: [Select]
sudo wget -O /etc/apt/sources.list.d/winehq.list.
Then update APT's package information by running
Code: [Select]
sudo apt-get update
Then, install newest packets from Synaptic or with a
Code: [Select]
sudo apt-get upgrade Hope this helps ;)

Will copy-paste from mail sent to rawr, don't blame me for this  :)
I'd like to provide a very fast way to search into directories, recursively, and from the current level, just from the first search box the template provides. Also, I'd like the advanced search to start with recursive and "from current level" checked.

---[next one]---

Ok, got the advanced search default option to current level :)
Code: [Select]
+lv_folders+"<input type=radio name=choice value=\"both\" checked=0/> "+lv_both+"<input type=checkbox name=recursive checked=0/> "+lv_recursive+"<br><input type=radio name=root value=\"root\"/> "+lv_root+"<input type=radio name=root value=\"current\" checked=0/> "+lv_current+"</form>";
Ok, here I am, since TSG wasn't to give personal support(I'm not criticizing or anything, it's all right!) , I thought to ask you all right here in the forums, ideas?

Wow, I'm impressed it was SO simple! For those interested that's how I managed to do it:
In RAWR-Template-0.1.1.tpl look for:
Code: [Select]
<div class="modContent" id="Folder_Tasks">


<form action="/" name="simpleSearch" method="get">
Code: [Select]
<form action="/" to
Code: [Select]
<form action=""And woila, it's done :o
So far, soo good 8)

HFS ~ HTTP File Server / HFS & Wine all updated: need advices
« on: July 22, 2008, 03:48:09 PM »
Hi to all,
I'm willing to completely and gradually pass to Linux, in particular Ubuntu 8.04 64bit, with which I'm experiencing much greater performances compared to Vista 32bit and...gotta say, I love setting everything on my own ;D
HFS was and would continue to be one of the main purposes of this machine: I usually access my own files in encrypted form (I use stunnel, on win, got to investigate if it exists for Ubuntu) from external places like school, friends, mobile phone...
Ok, said this, I've read some threads and seems like many of you already tried to make HFS work in linux and in particular with Wine, with good success rates.
I'm instead experiencing the problem in the object: HFS keeps saying the port is used, even if I change it to a random one!
Also, it's really difficult to open the UI clicking the icon on the traybar, is this normal? Some advices?

Seems like 'invoking' a Self Test makes HFS window magically appear, finally  ::)
Also, setting it to automatically search/decide port, makes it working on 8080 for example...could this be a Wine restriction or something?

Pages: 1 2 3