|
SilentPliz
|
 |
« on: February 11, 2009, 06:45:53 PM » |
Quote
|
I managed to displayed the Stunnel log in hfs with:
A file hfs.events:
[connected] {.add to log|{.load|stunnel.log.}|ClBlue.}
But stunnel.log, can't be destroyed when Stunnel runs, the file grows bigger ...
The macro Delete is impossible ... I am looking if someone has an idea.
This kind of thing also does not work:
Just an example:
{.set|hfslog|{.load|hfslog.txt.}.} {.set|stunnellog|{.load|stunnel.log.}.} {.save|hfslog.txt|{.cut|{.length|{.^hfslog.}.}|{sub|{.length|{.^stunnellog.}.}|{.length|hfslog.}.}|{.^stunnellog.}.}.}
|
|
|
« Last Edit: February 13, 2009, 04:24:13 AM by SilentPliz »
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 10915
|
 |
« Reply #1 on: February 11, 2009, 06:48:32 PM » |
Quote
|
your purpose is to show only new lines of the file?
|
|
|
|
|
Logged
|
|
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 10915
|
 |
« Reply #3 on: February 11, 2009, 07:14:23 PM » |
Quote
|
what about this? (untested)
{.set|s|{.load|stunnel.log.}.} {.set|past|{.load|stunnel.last.}.} {.save|stunnel.last|{.length|{.^s.}.}.} {.cut|-{.^past.}||{.^s.}.}
|
|
|
|
« Last Edit: February 11, 2009, 07:16:17 PM by rejetto »
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 10915
|
 |
« Reply #4 on: February 11, 2009, 07:15:59 PM » |
Quote
|
i will introduce a new way for {.length|{.^s.}.} because it is common but absurdly slow for very long text. from next build you'll be able to use {.var length|s.}
|
|
|
|
|
Logged
|
|
|
|
|
SilentPliz
|
 |
« Reply #5 on: February 11, 2009, 07:36:59 PM » |
Quote
|
what about this? (untested) Helas No, not better. I enclose the result after 1 connection. i will introduce a new way for {.length|{.^s.}.} because it is common but absurdly slow for very long text. from next build you'll be able to use {.var length|s.} Good ! 
|
|
|
|
« Last Edit: February 10, 2010, 11:48:12 PM by SilentPliz »
|
Logged
|
|
|
|
|
rejetto forum
|
 |
« Reply #5 on: February 11, 2009, 07:36:59 PM » |
Quote
|
Do you like this software?
Consider even $2
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 10915
|
 |
« Reply #6 on: February 11, 2009, 08:59:15 PM » |
Quote
|
ok, try this
{.cut|{.load|stunnel.last.}||{.load|stunnel.log.}.} {.save|stunnel.last|{.filesize|stunnel.log.}.}
|
|
|
|
|
Logged
|
|
|
|
|
|
|
SilentPliz
|
 |
« Reply #8 on: February 11, 2009, 11:46:55 PM » |
Quote
|
PS: For those who would get the same thing. (v2.3 since build #239): 1)- Paste the following section 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.}.}[/color] 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, the local connections (http), and the distant connections from Stunnel (https).
|
|
|
|
« Last Edit: January 18, 2010, 03:26:28 PM by SilentPliz »
|
Logged
|
|
|
|
|
Dragon_Hunter
|
 |
« Reply #9 on: February 12, 2009, 03:07:41 PM » |
Quote
|
Hi
Can you help and explane about the stunnel log how to get it to work in the hfs.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Dragon_Hunter
|
 |
« Reply #11 on: February 12, 2009, 03:47:15 PM » |
Quote
|
Oki thx i take a look at it... Do you have stunnel log on your computer?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Dragon_Hunter
|
 |
« Reply #13 on: February 12, 2009, 04:06:46 PM » |
Quote
|
where should openssl be in the computer?
|
|
|
|
|
Logged
|
|
|
|
|
SilentPliz
|
 |
« Reply #14 on: February 12, 2009, 04:15:39 PM » |
Quote
|
At the place where you have installed.  It only serves to generate an SSL certificate.
|
|
|
|
|
Logged
|
|
|
|
|