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

Pages: 1
1
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: November 16, 2023, 02:58:40 AM »
yes, plugins, but if you don't intend to distribut your scripts/changes, you can just use "custom html" and "server code".
It depends on what you want to do....

I would like to configure the program so that one specific agent can download

2
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: November 13, 2023, 09:46:35 AM »
consider helping with testing. You can enable Admin > Options > Update to beta
https://github.com/rejetto/hfs/releases/tag/v0.50.0-alpha2

This release will be very powerful.

How can I add a script in this version?
using plugins...

3
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: November 10, 2023, 11:39:48 AM »
we are waiting for this release

guys, initial I had planned to work on this after official release of HFS 3, but i opted to have something special to celebrate next release 0.50, nearing the 2 years anniversary (december 8 ).
hopefully... work in progress



4
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 28, 2023, 04:59:08 PM »
Still, attacks will slow down the performance of the system....

I would like to ask if you know a program or a method that blocks external ip addresses?

5
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 27, 2023, 05:28:46 AM »
Thank you Leo.
I'll keep monitoring....

6
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 22, 2023, 12:45:08 PM »
and I wanted to find out if I am blocking the ip address ranges correctly, for example 192.168.1.10-192.168.1.50?

7
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 22, 2023, 12:43:21 PM »
yes, I use it on a vps, I'm afraid this option does not help because every time the ip address is updated.
But I'll try.
Thanks Leo

8
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 16, 2023, 05:41:21 AM »
Have you tried PeerBlock on Windows Server 2019? (I've read reports that it works fine on Windows 10, so it should work). There is no better solution than PeerBlock for Windows.
Yes, as far I know, requests will still reach HFS (it don't prevent people from trying, and it could affect performance, the same as filtering by 'UserAgent', but you have to try it and see what happens). My previous comment could lead to confusion, so to make it clear: HFS v3 doesn't have 'IP filtering feature' (like Rejetto said), and HFS v2 doesn't have an option to block IP addresses by country, but it has 'IP Banning' and you can configure some 'IP ranges' to block (of course, expert users can also use a macro script to filter by IP range, but it's not needed, since it works the same as using the HFS's GUI).

You can configure this, by going to HFS's Menu > Limits > Bans... (it will open a window where you have to enter the IP ranges). Remember to check 'Disconnect with no reply'. Before doing this, please take a look HERE to know how to configure an IP range to be excluded (remember to put a backslash \ before the IP range). Please report back if that affects performance (compared to filtering by 'UserAgent').


Thanks Leo
I configured both options, monitored them for several days, and the attacks became much smaller, but unfortunately peerblock greatly affects performance

9
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 06, 2023, 05:04:10 AM »
As Rejetto said, this is not implemented internally on HFS (for those who are expert on coding, something basic could be done using HFS's Macros, but it could make HFS slow, since we need to filter a lot of IP ranges for blocking an entirely country).

In your particular case, you have to use an external software. The most effective and easy to use solution, is using PeerBlock. Once you have installed PeerBlock, you have to use one list listed here (selecting the country you want to block). But keep in mind that PeerBlock works blocking connection system-wide (and you can't select only one software to block). So, it will block ALL connections you configure, for ALL the programs running on your Windows system (not only HFS). If you need to connect to some of the IPs you have blocked, you would need to temporary disable PeerBlock, or use another solution. As far I know, this is the only most easy solution.

» IMPORTANT: if you are targeted with DDoS attacks by someone expert, you could end blocking up almost the whole world (it could be like a witch-hunt), since the attacker could try to access your server from ANY other country using a VPN (or a proxy). Most of the time blocking an entirely country works, but sometimes it doesn't (and you will end blocking legitimate -good- users), so this is only an extreme measure. It's best NOT blocking an entirely country, but starting blocking ONLY the IP ranges of your attacker.

I hope it helps (please report back if that helped). :)
Cheers,
Leo.-

Thanks Leo

PeerBlock is only supported up to Windows 7
I have windows server 2019
I have another question: can I block an IP range in HFS?
and yes, if I block ranges, will requests still reach hfs?

10
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 04, 2023, 03:24:04 AM »
i took note, but i won't make it soon.
if you know programming you can make it yourself

No, i Can't

11
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 03, 2023, 06:16:12 PM »
I Use HFS 3

12
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 03, 2023, 06:15:32 PM »
there's no such feature in HFS 2, but i don't exclude that one could script it.
for HFS 3, i don't plan to add it, but one day we may have a plugin for it.

It’s just that every day they send me a DDoS attack, I set it to block agents, but all the same the requests will cause the server to freeze
because they do it from abroad,
so I wanted to know how to block by country

13
HFS ~ HTTP File Server / blocking ip-addresses by country
« on: October 03, 2023, 03:17:08 AM »
Can I block an entire country so that this country does not have access to hfs ?
or allow one country and ban the rest

14
HFS ~ HTTP File Server / Re: HFS Only one User Agent can Download
« on: September 20, 2023, 08:34:11 AM »
Thanks Leo

15
HFS ~ HTTP File Server / HFS Only one User Agent can Download
« on: September 19, 2023, 06:14:18 AM »
Hello. can somehow configure the program so that only one specific agent can load ?

Pages: 1