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
HFS ~ HTTP File Server / Re: Help with Hardware Selection - New NAS
« on: April 06, 2020, 04:13:48 PM »
I have been running HFS on my pc to remotely access my NAS. I Need to replace the NAS and was wondering are their any 2 drive affordable NAS's that can run HFS natively?
When that happened to me, I got a couple of external hard drive enclosures, for the PC, which was on anyway. 

212
Programmers corner / Re: HFS is awesome!
« on: March 19, 2020, 07:06:13 PM »
Testing several different options, with the server on satellite internet, and more than a million files. 

Kudos and thanks to Project Gutenberg Australia.  HFS+Throwback14 works well even if the distance is far.

213
HFS ~ HTTP File Server / Re: HFS including SSl tools
« on: March 19, 2020, 04:03:42 PM »
... I see some posts at the moment about "external services", which disappear or are edited again and again ... until the answers given by those who take the time to answer them become incomprehensible. The "ephemeral" posts are a bit annoying from my point of view.
...I know what you mean. I thought I was the only one who realized about those actions ('some user' was editing, and editing, after editing all day, just to edit only a couple of words, then removing then, and making some edits again, and it was a crazy thing to keep up with that)...
I apologize for that! 
And, I was not aware there was a broadcast per each.  OMG!!!!   Thanks for mentioning that problem.
I am usually ill-spoken (not on purpose).  So I get worried and edit until it seems like I might have said the right thing.  Even if it takes all day.
 
The flipside of this problem is that it makes code run fast, because all-day or all-month edit is just enough to do that. Note the sturdy WatchCat script, delivered same day.
But the pedantic practice apparently went badly with forum-post documentation. 

Again I apologize for the inadvertent broadcasts.
The goal was actually less words, not more; and, I surely did fail at that. 

214
...I tried to connect my friend laptop to The LAN and I run HFS on his Laptop I also tried to connect to HFS from my mobile phone it worked fine so the problem is with my Laptop!...
Currently, most anti-virus (including the built in) works to make sure that software applications don't do server functions.   Especially, if you have a security-suite added to your laptop, then you need to find its whitelist/allow function. 

Use an ethernet cable, because good WiFi power management can go unresponsive to incoming requests (depending on brand and settings of the laptop's wifi).

In HFS, make sure that the ip address at the top of the HFS screen is the same as PC's LAN address.  Although localhost 127.0.0.1 may (or may not) work, the router's external address can't (because forward to itself isn't useful). Use the PC's LAN address (either fixed/stationary or "static dhcp" at the router). 

One of my PC's doesn't work via localhost, so it is necessary to use the PC's LAN address in that case. 
Find the right address: 
Windows start menu > cmd (type cmd with keyboard) > ipconfig (type ipconfig then use enter key)
And, put that address in HFS.

P.S. 
Just in case previous efforts have confused it, try HFS Menu > Save options > Clear options and quit.  That should clean out previous efforts. 

After best effort, if HFS won't stay fastened to the PC's LAN address, write back and let us know--there are some workarounds which shouldn't be the first things to try.  Alternatively, set it on the correct address, save settings to file, and then start the WatchCat script.  If it was working when the script was started, then it should stay working while the script is running.  Also, if the server gets stuck, the WatchCat will bring it back up in a minute (adjustable). 
I have a lot of work delayed because of this problem
If you needed a practice web server at a college, university, business, hotel, coffee-shop, then client-isolation prevents it. 
The classic fix is the "travel router" made to get your wireless printer working with your wireless laptop, at the hotel.  Travel router and dd-wrt can use hotel wifi as the WAN input and then make your own new wifi LAN.  Some travel routers can even VPN tunnel to secure the connection.
Another way is to add an additional USB WiFi to a Windows 10 laptop, and just use the "Mobile Hotspot" feature, to share the inbuilt wifi with the usb wifi (so you can connect your other devices to your own new wifi LAN) identically to a travel router. 
However, client isolation probably doesn't explain why your laptop didn't connect but your friend's laptop did. . . unless your laptop is on college wifi versus your friend's laptop on home wifi (or travel router).   So, a different location/WiFi, which doesn't have client-isolation, could make the difference

215
HFS ~ HTTP File Server / Re: HFS including SSl tools
« on: March 13, 2020, 03:29:30 PM »
...idea of ​​"stealth mode", I'm a little doubtful...
Changing both delphi-date entries (in the ini) to 99999.99999 seems to make the server silent.  Of course it would be better to use encrypted security so that silence is not especially required. 

Although updates are good, sudden unannounced changes are never acceptable for servers.  And, it would be better to notify before change (a console pop up, "click ok" notice prior to implementing a change by remote). 

Since we don't have a notify-before-change function, then I was very glad to hear of a way to shut off potentially disruptive unplanned changes.   It is vital to make sure that the server-operator is present and aware of changes, before the change is implemented.

I'd like to vote "yes" for a stealth mode feature because it seems more straightforward to have it in the menu. 

216
HFS ~ HTTP File Server / Hide Root
« on: March 03, 2020, 11:22:12 PM »
There have been a large number of requests to hide the root. 
We can do that.  However, it would be better to go to post#1 and use https instead. 

I thought it good to document how to hide the root and that it isn't total security.  So, hfs menu, other options, user accounts, user group, put default login at a folder (not root).  Hfs menu, html template, change file, hideroot.tpl. 

The concept is buried treasure, so don't broadcast the location.  If it were used in combination with https (see post#1), then that is the only case where hide-root could contribute to more effective security.  Otherwise, hide-root is mainly bandwidth savings.

217
HTML & templates / Re: The Throwback (retro) template.
« on: March 02, 2020, 07:27:54 AM »
Cool! I'm still testing them, but they look good (Throwback14 loads blazing fast). My favorite is Throwback14MP.tpl. Overall speaking, you did a great job (it looks like a finished/completed project), congratulations! :D
Thanks ever so much!  I wouldn't have done so well had it not been for the stout/clear and helpful briefing that you gave me (also kudos to Rejetto for a do-in-scope briefing).  And, yes, it is intended as the series finale, at least for now.  Sharing all that I could, was good advice.
...removed my XHR login...
I did.  For the phones, I put a note to use a browser that is compatible.  It is a new development, since mobile browsers with basic-auth capacity have only recently become available, via firefox.
...My favorite is Throwback14MP.tpl...
MP was always the favorite.  This is why Throwback14dphoto behavior and default workload is very similar to MP.  Because of the new state-of-the-art color css unicode icons, today I tested large folder support again.  I got 234,691 files on a single page during the test (of a disk with exactly that many files). It went a minute faster.  And I did it from a cheap TracFone on metered mobile data.  So, the newest did have large folders support. Test was done with the photo version; and, this time, minus the bill.  Perhaps, the #14 photo version is now eligible as a favorite.
...14 loads blazing fast...
Throwback was always dual purpose.  #1, serviceably fast.  #2, a practical message  to the developers:  never less than this.
...finished...
Indeed, the classic/interactive interface is stuffed full.  Although it surely will arise again, the next step should have its own name and its own thread. 


218
Good! thanks for sharing...
Also shared, many more files at Post#1, both historic and the latest available.
See also the WatchCat script, so you can go on vacation yet the server stays up. 


219
Available at Post#1 is the complete set of Throwback 14. 

The prior cleanup fit resulted in a tidy open-source version of throwback.  Throwback14 was previously stuck in development; however, when I tried the already-made #14 modules aboard the tidy open source version... all of the sudden, everything worked straightaway. 

So, rising from the ashes is Throwback14, the Phoenix. http://rejetto.com/forum/index.php?topic=12055.msg1062733#msg1062733

220
HTML & templates / Re: Responsive small screen template
« on: February 28, 2020, 07:19:27 PM »
Here's a css color icon example, which looks similar on both Firefox and Chrome.

\FE0E turns off the Firefox emoticon feature, so that you can theme the icon.
The ;color: is for Chrome, so that it doesn't monochrome all of the icons.

If those are used together, that icon appears the same on firefox/chrome/edge/opera, etc...
Or, if the Firefox emoticon is useful, Chrome still needs the color.
Code: [Select]
li a[href$="/"]::before {content:"\1f4c1\FE0E  ";color:#FB0}
a[href*="."]::before {content:"\1f4c4  ";color:#BCC}
a[href$=".jpg"]::before, a[href$=".jpeg"]::before, a[href$=".webp"]::before, a[href$=".png"]::before, a[href$=".gif"]::before{content:"\1f4f7  ";color:black}
a[href$=".mp3"]::before, a[href$=".aac"]::before, a[href$=".m4a"]::before, a[href$=".ogg"]::before {content:"\1f50a\FE0E  ";color:green}
a[href$=".mp4"]::before, a[href$=".avi"]::before, a[href$=".webm"]::before, a[href$=".mkv"]::before {content:"\1f4fa  ";color:teal}
a[href$=".tar"]::before, a[href$=".rar"]::before, a[href$=".7z"]::before, a[href$=".zip"]::before {content:"\1f381  ";color:brown}
a[href$=".exe"]::before, a[href$=".vbs"]::before, a[href$=".bat"]::before, a[href$=".ps1"]::before, a[href$=".js"]::before, a[href$=".apk"]::before {content:"\1f537  ";color:#5AE}
nav a[href*="."]::before {content:""}
img+div a[href$=".jpg"]::before, a[href$=".jpeg"]::before, a[href$=".webp"]::before, a[href$=".png"]::before, a[href$=".gif"]::before{content:""}
It is an efficient solution, utilizing icons already present in the client.

221
HFS ~ HTTP File Server / Re: HFS including SSl tools
« on: February 27, 2020, 04:57:20 PM »
On security topic, it is possible to avoid DNS point to multi-point cleartext broadcasts. 
There is DNS over TLS, DNS over HTTPS, and there is also a classic method... 

Example (add to Windows hosts file):
185.20.49.7 rejetto.com www.rejetto.com hfsservice.rejetto.com hfstest.rejetto.com
162.88.175.4 checkip.dyndns.org
Method: Copy c:\windows\system32\drivers\etc\hosts to desktop, edit, then reverse-copy (or a hosts utility program).
To get addresses, cmd, nslookup website.com  and then search the ip to confirm owner.  Then you can force windows to get the authentic address, every time, without reliance on a cleartext lookup from a random vendor.
Windows host file can't wildcard but it can do up to 9 url's per each ip address on the same line.

Example home-size open-source router's DNSmasq:
address=/rejetto.com/185.20.49.7
address=/checkip.dyndns.org/162.88.175.4
Method:  Enter at dnsmasq custom config box in tomato or dd-wrt router.  Other Linux is similar.
DNSmasq can wildcard, so the less your are specific, the more it will go to the ip address specified.

Gap:
If your hfs.ini list of ip-services= is automatically updated to different url's, it may do DNS lookups/broadcasts point to multi-point in the clear, until you find out and manually update your local lookups.  That is how the classic method is inferior to newer methods, such as DNS over TLS, DNS over HTTPS. 

Potential patch:
If future ip-service= updates were IP addresses (not url's), that could obsolete this post. 

222
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. 

223
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. 

224
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.

225
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. 

Pages: 1 ... 13 14 15 16