IP Filter - allow only specific IPs

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
fterjq
500 Command not understood
Posts: 2
Joined: 2020-08-22 22:30

IP Filter - allow only specific IPs

#1 Post by fterjq » 2020-08-22 22:51

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.

User avatar
boco
Contributor
Posts: 26913
Joined: 2006-05-01 03:28
Location: Germany

Re: IP Filter - allow only specific IPs

#2 Post by boco » 2020-08-23 09:36

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.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

fterjq
500 Command not understood
Posts: 2
Joined: 2020-08-22 22:30

Re: IP Filter - allow only specific IPs

#3 Post by fterjq » 2020-08-26 04:44

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?

User avatar
botg
Site Admin
Posts: 35509
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: IP Filter - allow only specific IPs

#4 Post by botg » 2020-08-26 07:16

Yes, the asterisk stands for everything.

Post Reply