Today I received a mail from rejetto:
"hi boss.
about this
http://www.rejetto.com/forum/index.php?topic=6651.0now we have global variables, we can improve it.
this for the log line
{.cut|{.^#stunnel.last.}||{.load|stunnel.log.}.}{.set|#stunnel.last|{.filesize|stunnel.log.}.}and this to start from the last point.
[+start]
{.set|#stunnel.last|{.filesize|stunnel.log.}.}i will soon introduce a way to partially load a file, so to avoid reloading it as whole every time.
maybe in #239. when it's available you can use this version
{.load|stunnel.log|from={.^#stunnel.last.}.}{.set|#stunnel.last|{.filesize|stunnel.log.}.}"****************************************************************************************************
This solution work perfectly, I shall therefore update the topic.
For those using an older beta, use the "old" code. [link][UPDATE] STunnel log displayed in HFS (Tested with v2.3 build #242):
1)- Paste the following sections in a file
hfs.events that you will put in the folder of
hfs.exe:
Script edited 01-18-2010
[connected]
{.set|#log|{.load|stunnel.log|from={.^#stunnel.last.}.}.}
{.set|#stunnel.last|{.filesize|stunnel.log.}.}
{.if|{.^#log.}|{:
{.add to log|.
Stunnel log :
{.^#log.}|Clblue.}
:}.}
[+start]
{.set|#stunnel.last|{.filesize|stunnel.log.}.}2)- In file
stunnel.conf of the folder of
stunnel.exe, specify the
path of HFS where the file
stunnel.log will be created.
(Debug = 6 gives a correct result)
; Some debugging stuff useful for troubleshooting
debug = 6
output = C:\path\of\hfs folder\stunnel.log3)- Enjoy
HFS and
Stunnel !
----------------------------------------------------------------------------
Independently, you can add to the section
[https] of
stunnel.conf, the
internal IP of your
PC:
[https]
accept = 0.0.0.0:443
connect = 127.0.0.1:44300
local = 192.168.1.6 *TIMEOUTclose = 0* IP exampleThen you add in HFS:
Menu > Limits > Bans\127.0.0.1;192.168.1.6Then in Adress2name:
Name IP Mask
Local 127.0.0.1
Stunnel 192.168.1.6This will differentiate in the log of
HFS, the local connections (http), and the distant connections from
Stunnel (https).