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 - danny

Pages: 1 ... 13 14 15 16
211
I really need something more along the lines of banning any address that doesn't request a hosted file as I have been having several bad apples trying exploitation methods as well, and I don't want anything in a list somewhere. There only should be game clients requesting specific files, so is there a simple line I can add to events that will accomplish this?
A template (or diff-template) could do a default disconnect on error, to imitate a firewall:
[error-page]
{.disconnect.}

However, it would be better to use a filtered approach (help users but disconnect miscreants), such as in https://rejetto.com/forum/index.php?topic=12055.msg1065326#msg1065326  See the error-handler pages, to give you some ideas on how to arrange your filters. 

212
You can try the WatchCat https://rejetto.com/forum/index.php?topic=12055.msg1065322#msg1065322
It is the keep-alive feature that many routers and servers have. 

213
HTML & templates / Watchdog, Keep-Alive, No-Freeze script
« on: February 20, 2020, 04:06:08 PM »
...wget...if you can share...
Sure, here is a no-frills version.
Code: [Select]
@echo off
:ONE
timeout /t 10 > nul
VER > nul
wget 127.0.0.1:80/favicon.ico --output-document=nul --quiet
IF %ERRORLEVEL% NEQ 0 GOTO TWO
GOTO ONE
:TWO
TASKKILL /IM hfs.exe /F
timeout /t 3
start "" "hfs.exe"
GOTO ONE
Assumptions:
batch file and wget in same folder as hfs.exe
HFS filename is hfs.exe (you can edit both)
port 80 (you can edit)


Windows 7, 8, 8+1, 10 can run it.  Both script and WGET are in the attachments.
...share the final working code you end [up] using...
Also attached is a deluxe/embellished version
WatchCat!
This has more patience for busy servers (so no unnecessary restarts), settable tries/timeouts, settings safeguard, and better display. . . including a little ascii-art staring cat at the top of the on-screen log.

214
HTML & templates / Re: Watchdog accessory?
« on: February 20, 2020, 12:02:55 PM »
...By setting it up to a future date, like '99999.99999' (which is 13/10/2173 23:59:59 in Delphi date format), 'ip-services' won't be updated until that date.
THANKS!!!  I set both of the time entries to the year 2173
I guess that was the missing? opt-out function.
About the Watchdog thing, sorry, I currently don't understand what are you trying to archive with it...
Ping hfs locally +  Restart hfs if no response. 

Just the usual standard keep-alive function. 

215
HTML & templates / Re: Watchdog accessory?
« on: February 20, 2020, 09:34:07 AM »
Although it's always recommended doing a backup of hfs.ini file, the whole problem/issue you had (about the freeze), was a very exceptional one. And it would never happen again if you follow what I've posted HERE. Have you read that? ...
Please keep your PM open... ::) :D
Thanks.  I fixed the PM, (probably).

I read your post, although I was scratching my head because I tried setting ip-services= to my preference; and that would keep for many hours, appeared fixed, but then it reverted itself later.  Also, what is the function of ip-services-time= ?? 

P.S.
I think that the watchdog/keepalive idea would help the gigabit people and other download-fast + browse concurrency related freezes.  Windows can't ping a port, but wget could be used to fetch the favicon or some other little bit and may be able to return a dos errorlevel (which would operate the tskill+restart subroutine). 

216
HTML & templates / Watchdog accessory?
« on: February 20, 2020, 07:01:56 AM »
The windows hosts file modification -or- the dnsmasq alternative all work to stabilize the settings.  So, a watchdog wasn't needed for that particular case.


Even so, a standard keepalive/ping watchdog could be a nice feature to consider. Perhaps there is a simple batch file method?

Here's a batch used to run a sync-backup for a WiFi nas. It shows the errorlevel loop reset to 0 by the successful ver command and the sync which may or may not be successful over WiFi (but it will loop until success).
@echo off
:ONE
timeout /t 30 /NOBREAK
VER > nul
robocopy \\source\folder D:\destination /e /copy:DT /xo /purge /w:0 /r:0
IF %ERRORLEVEL% NEQ 0 GOTO ONE

I put that sample, because the errorlevel isn't well documented for batch.

Now for watchdog
I'm fairly sure the ping command exits with an errorlevel of some sort, and then there's the tskill command to exit a program gently or taskkill to exit an unresponsive program.
added function
It seems possible to make a safety copy of hfs.ini at the batch start.
And, then after tskill and 2 seconds timeout (sleep without loading cpu), reverse the copy before starting hfs. So, if settings caused the server to freeze, functional settings and server would be restored to working order automatically.

I haven't figured out the particulars yet
But, this type of watchdog could allow for the automatic updates and settings. It would revert changes that didn't work or keep any that did work.
That approach seems more reasonable than a few other things that I have tried. 

217
HTML & templates / Re: The Throwback (retro) template.
« on: February 18, 2020, 05:14:50 AM »
This is good to keep the forum community healthy and to keep the post sanity :) (This thread has currently almost 42k views, and those who come back to download your Throwback template will now have your template available again). I appreciate your comment, and that you have restored the good-willing...
Thanks again for your help.

Here is original Throwback11MP and Throwback11basic, which are older, but may have reference value.

However, the newer version is located: http://rejetto.com/forum/index.php?topic=12055.msg1065284#msg1065284

218
HTML & templates / Re: The Throwback (retro) template.
« on: February 18, 2020, 04:35:57 AM »
the temp files you are talking about are because i don't  immediately overwrite the file, but create a temp file and then rename it.  It's a common technique to avoid totally losing a file. The process probably fails at the moment it tries to rename to hfs.ini because was marked as read-only. If nonetheless you want to stay like this but gets these leftovers, i can only suggest to add an "event script" each minute to delete all *.tmp
I was trying to make a watchdog (including settings stabilizer) which did not do a write loop.  But, I'm not actually a good programmer, so I didn't figure this out yet. 

219
HTML & templates / Re: The Throwback (retro) template.
« on: February 14, 2020, 07:45:12 AM »
...he deleted most of his comments...
Well, unfortunately, too many words from me just won't do anyone any good.  However, there is a cleaned-up open source Throwback template located at post#1 here.  It is quite like Throwback11MP along with some of the Throwback13-Gigabit project.  Think of that as a "best of" collection in one file.  It has finished the same way that it started, with simplifying as the main goal. 

Edit:
That tidy version is attached to this post.
Edit2:
Same with updated error-handler is also attached to this post.

220
HTML & templates / Re: Responsive small screen template
« on: February 13, 2020, 10:55:40 PM »
...Edit: Review: MP_theme is a clone from dannys Throwback
See the attached file.  It has the looks and it has your older music player which is far-out better for music. I like it ever so much. 

221
HTML & templates / Re: The Throwback (retro) template.
« on: February 13, 2020, 08:56:10 PM »
It seems that the open-source router projects could do it with DNSmasq settings:
address=/hfstest.rejetto.com/0.0.0.0
address=/www.rejetto.com/0.0.0.0
address=/hfsservice.rejetto.com/0.0.0.0

P.S.
Write protecting the hfs.ini file was not effective because there were additional tmp file(s) automatically added, which happens to bypass the server operator's choices.  He or she may become disturbed at that point.  And, I did. 
So, I hope that the host blocking can restore the server-operator's control of changes and settings.

Edit:
Days later, no cpu spikes, no settings changed themselves. 
Hosts-block by either windows hosts file or router, all worked, so far. 

222
HTML & templates / Re: The Throwback (retro) template.
« on: February 11, 2020, 11:51:48 PM »
guys, peace and love. Danny is free to do what he wants. Also I took no offense in his statements, I just made "technical" comments about them.
That is really great.  I'd like to know if the following modifications to the windows hosts file will block phone-home modifications to settings...

0.0.0.0 hfsservice.rejetto.com hfstest.rejetto.com

Will that entry to the windows hosts file prevent external modifications to hfs.ini settings? 

Our ancient dns is spoof-able, it rarely happens, that happened to me; so, I would like to request an opt-out. 

223
Beta / version 2.4 rc2 template
« on: February 11, 2020, 10:45:14 PM »
My apologies!
During my recent cleaning conniption, I shouldn't have removed this file (attached).

It is Rejetto's HFS 2.4 template with: checkbox patch, practical archive scope, move requires related permissions, automated error-handler, faster uni icons instead of system icons, an efficient blue-effects background plus contrast effects, and DJ's really nice music player.

If I hadn't seen HFS until today, I'd want those features and 2 more: 
Ability to download fast and browse/upload, concurrently?
Security-first focus involving available opt-outs and native https?

Those 2 seem beyond the scope of a template; so, their status is not changed by this template file.
I think that it may be desired for reference.

224
HTML & templates / The Throwback (retro) template.
« on: February 10, 2020, 12:34:11 PM »
...I hope he can review his attitude...
I did revise it.  Thanks. 
However, there is no permission to publish any of my works.  Please remove them.

This is because I don't want to suggest using them.  Personally, I have upgraded to encrypted FTP + encrypted DNS, which is a peaceful combination. 

EDIT:  Clarifying that.  Some usage is okay, but cleartext over the internet was not okay. 
And mainly, I wanted Throwback12 and all Photo (photo by default) versions removed because of overdo's and the photos everytime idea, which works on-LAN, but isn't successful over the internet and could cause overload in some cases.  Basically, it lost to the superior Throwback11mp.  An update based on Throwback11mp + updated modules, can be found at http://rejetto.com/forum/index.php?topic=12055.msg1065284#msg1065284

225
Hi Danny! :) Relax, there is no need to panic (I've sent you a PM with more details). It's not that "HFS takes control of your settings". If you delete "ip-services=" line from "hfs.ini" (like Rejetto said to do), HFS automatically recreates that line again, reading it from: http://hfsservice.rejetto.com/ipservices.php (but this only happens if you delete that "ip-services=" line from "hfs.ini"). Those 'freezing' you experienced, were because a URL contained on "ip-services=" (from your local "hfs.ini"), started to make a redirection from HTTP to HTTPS (and because HFS can't handle HTTPS, it just freeze). Just as simple as that. Rejetto or Mars could explain this better than me. Cheers, Leo.-
Thanks for your help.  I thought that the matter wasn't malicious.  Unfortunately, settings altered by remote, isn't going to work for me.

Pages: 1 ... 13 14 15 16