Page 1 of 1

IP Filter - allow only specific IPs

Posted: 2020-08-22 22:51
by fterjq
Hi,

I'd like to allow access to server only from specific IP addresses, say 1.1.1.1, and 2.2.2.2 and block from all other IP addresses.
So in IP Filter window I enter:
in upper field "not allowed": 0.0.0.0/0
in lower field "allowing":
1.1.1.1
2.2.2.2

I get "Invalid IP address/range/mask" error.

Apparently 0.0.0.0/0 record is not accepted while being accurate CIDR record.
0.0.0.0-255.255.255.255 is not accepted either.
In the combination of 0.0.0.0/1 and 128.0.0.0/1 the first one is not accepted.

What shall I enter in the upper "not allowed" field to effectively block all address space?

Thank you.

Re: IP Filter - allow only specific IPs

Posted: 2020-08-23 09:36
by boco
Yeah, the FileZilla Server code is rather dated. The field in question has probably not been updated to accept CIDR ranges. Please note that the Server is currently rewritten from scratch and the new version will certainly be CIDR compliant.

Current solution: As the field description probably tells you, enter a single asterisk * into that field to block all IPs. FileZilla Server fully supports IPv6, take that fact into account, too.

Re: IP Filter - allow only specific IPs

Posted: 2020-08-26 04:44
by fterjq
boco wrote:
2020-08-23 09:36
The field in question has probably not been updated to accept CIDR ranges.
Interestingly, text near field reads "You can both enter individual IP addresses or address ranges in CIDR notation".
boco wrote:
2020-08-23 09:36
Current solution: As the field description probably tells you, enter a single asterisk * into that field to block all IPs. FileZilla Server fully supports IPv6, take that fact into account, too.
That worked, thank you! Does * also block IPv6 connections?

Re: IP Filter - allow only specific IPs

Posted: 2020-08-26 07:16
by botg
Yes, the asterisk stands for everything.