Firewall rules lost

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
jeremypoynton
450 Internal Error
Posts: 41
Joined: 2023-07-04 08:52
First name: Jeremy
Last name: Poynton

Firewall rules lost

#1 Post by jeremypoynton » 2023-08-23 06:27

No idea what happened - seems like my Firewall lost the rules for many programs; each of which asked for firewall access again. This also seems to have clobbered the server, to which those outside my LAN seem to be able to connect to, but no directory structure appears.

Will a reinstall sort this out? Are the firewall rules included in a config export (I have one from when it was all working 2 or 3 days ago) so will an import fix this?

Else - help! I am not familiar with what is needed in the Firewall to enable the server to operate

See log in attachment
Capture.JPG
Capture.JPG (166.9 KiB) Viewed 2549 times

jeremypoynton
450 Internal Error
Posts: 41
Joined: 2023-07-04 08:52
First name: Jeremy
Last name: Poynton

Re: Firewall rules lost

#2 Post by jeremypoynton » 2023-08-23 06:44

Here's the Port Forwarding setup on our router
Capture.JPG
Capture.JPG (62.44 KiB) Viewed 2546 times

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

Re: Firewall rules lost

#3 Post by botg » 2023-08-23 06:51

FileZilla Server does not touch firewall rules. How could it anyhow? A firewall that lets its rules be changed by arbitrary programs would defeat the purpose of a firewall.

In addition to the control connection port, you also need to forward/open the assigned data connection port range. Please see our Network Configuration guide for further information.

jeremypoynton
450 Internal Error
Posts: 41
Joined: 2023-07-04 08:52
First name: Jeremy
Last name: Poynton

Re: Firewall rules lost

#4 Post by jeremypoynton » 2023-08-23 08:30

"A firewall that lets its rules be changed by arbitrary programs would defeat the purpose of a firewall."

No - but other programs that do require firewall access ask for it. For example, qBittorrent, which I installed way back and asked for permission to go through the firewall, did so again when this problem started, and also a couple of other programs. So perhaps not unreasonable to expect the Server to at least do the same.

Thanks, I'll look at the network config and see if I can work it out. The setup was done by someone far more knowledgeable about such matters than I. Still baffled that it stopped working.

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

Re: Firewall rules lost

#5 Post by boco » 2023-08-23 14:28

No - but other programs that do require firewall access ask for it. For example, qBittorrent, which I installed way back and asked for permission to go through the firewall, did so again when this problem started, and also a couple of other programs. So perhaps not unreasonable to expect the Server to at least do the same.
Firewalls only detect and ask for applications that are actively accessing ports. The program you mentioned is a client that is doing that. However FileZilla does not actively access the ports, it only listens on them. Listening on a port doesn't count as access and the firewall doesn't detect it. Some firewalls would ask once the the first incoming connection on the listening port is detected, others generally don't ask for incoming connections. Thus, you have to proactively open all FTP ports (the listening port and the complete Passive port range, TCP only) in the firewall, and also forward all of them.

The picture shows the router, if the router did forget things then maybe a firmware update is at fault. For software firewalls, well, Windows does do some strange things, all the time.
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

jeremypoynton
450 Internal Error
Posts: 41
Joined: 2023-07-04 08:52
First name: Jeremy
Last name: Poynton

Re: Firewall rules lost

#6 Post by jeremypoynton » 2023-08-23 16:29

Well, I put entries in for port 21 (in and out) and the listening ports (in and out) into the Windows firewall, and all seems to be well. Still no idea WHAT happened or why :? but others are now able to access the server and download ok.

Router is as it was originally configured to enable the FTP server. So I guess it was the firewall that went AWOL!

jeremypoynton
450 Internal Error
Posts: 41
Joined: 2023-07-04 08:52
First name: Jeremy
Last name: Poynton

Re: Firewall rules lost

#7 Post by jeremypoynton » 2023-08-24 08:17

ok. So all well, confirmation from folks who use my server that it is working again. Something clobbered my firewall rules for sure, for as noted, qBittorrent, VLC Player and couple of other programs that request firewall passthrough when first run, all asked again for access to the outside world. Anyway, a bonus now is that I do know how to set up the firewall rules to enable the server.

Thanks to one and all

Jeremy

patricev
500 Command not understood
Posts: 5
Joined: 2023-05-30 13:58
First name: Patrice
Last name: Vincent

Re: Firewall rules lost

#8 Post by patricev » 2023-08-28 18:58

I get a similar problem and adding ports 8060-8069 (which I did not see published in documentation anywhere ) did not change anything.

Currently going though the ISP IP address (using my Dynamic DNS URL), it blocks and times out at transfering the content of '/'.

But when connecting through my private network with the server's IP address, all works well and dandy.

It is not blocking at my Norton firewall since it runs locally on the server and works well locally.

I included all the following in my router port forwarding and still does not work (I inluded both UDP and TCP for each):

20-22
80
8080
989-990
3713

PS:

Listeners are at port 21 with Explicit TLS specified.

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

Re: Firewall rules lost

#9 Post by boco » 2023-08-28 21:13

I get a similar problem and adding ports 8060-8069 (which I did not see published in documentation anywhere ) did not change anything.
Why should they be documented? Those ports are nothing special. Passive ports have to be defined in the FTP server, and they can be chosen freely, apart from the first 1024 ports which are reserved. Passive port range is documented btw.
Currently going though the ISP IP address (using my Dynamic DNS URL), it blocks and times out at transfering the content of '/'. But when connecting through my private network with the server's IP address, all works well and dandy.
Use https://ftptest.net for testing, as neither the public IP nor the dynamic DNS name will work correctly from inside your network. From inside the NAT border, the private IP must be used.
It is not blocking at my Norton firewall since it runs locally on the server and works well locally.
Depends. Locally from anther local machine? Good. Locally from the same machine? Not necessarily, as firewalls might not block localhost traffic.
I included all the following in my router port forwarding and still does not work (I inluded both UDP and TCP for each):

20-22
80
8080
989-990
3713

PS:

Listeners are at port 21 with Explicit TLS specified.
Sigh, what a mess.

You will need to forward and open only:

- 21 as it is the listening port,
- 990 (only if you want to use Implicit FTP over TLS), not needed for Explicit FTP over TLS,
- and your chosen Passive port range (that you defined in the FTP server).

FTP uses TCP only, never UDP.
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

patricev
500 Command not understood
Posts: 5
Joined: 2023-05-30 13:58
First name: Patrice
Last name: Vincent

Re: Firewall rules lost

#10 Post by patricev » 2023-08-29 13:35

boco wrote:
2023-08-28 21:13
I get a similar problem and adding ports 8060-8069 (which I did not see published in documentation anywhere ) did not change anything.
Why should they be documented? Those ports are nothing special. Passive ports have to be defined in the FTP server, and they can be chosen freely, apart from the first 1024 ports which are reserved. Passive port range is documented btw.
Currently going though the ISP IP address (using my Dynamic DNS URL), it blocks and times out at transfering the content of '/'. But when connecting through my private network with the server's IP address, all works well and dandy.
Use https://ftptest.net for testing, as neither the public IP nor the dynamic DNS name will work correctly from inside your network. From inside the NAT border, the private IP must be used.
It is not blocking at my Norton firewall since it runs locally on the server and works well locally.
Depends. Locally from anther local machine? Good. Locally from the same machine? Not necessarily, as firewalls might not block localhost traffic.
I included all the following in my router port forwarding and still does not work (I inluded both UDP and TCP for each):

20-22
80
8080
989-990
3713

PS:

Listeners are at port 21 with Explicit TLS specified.
Sigh, what a mess.

You will need to forward and open only:

- 21 as it is the listening port,
- 990 (only if you want to use Implicit FTP over TLS), not needed for Explicit FTP over TLS,
- and your chosen Passive port range (that you defined in the FTP server).

FTP uses TCP only, never UDP.

Thanks for the reply!

I will be looking at the passive ports range configuration and open the ports for them.

patricev
500 Command not understood
Posts: 5
Joined: 2023-05-30 13:58
First name: Patrice
Last name: Vincent

Re: Firewall rules lost

#11 Post by patricev » 2023-08-29 14:05

That was it!

I guess I had opened before all the default passive ports but got lost. I configured a smaller range and opened the port forwarding of that range and works now.

Many thanks @boko.

jeremypoynton
450 Internal Error
Posts: 41
Joined: 2023-07-04 08:52
First name: Jeremy
Last name: Poynton

Re: Firewall rules lost

#12 Post by jeremypoynton » 2023-08-29 15:13

8060 to 9 were simply the ports the guy who installed FileZilla for me chose...

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

Re: Firewall rules lost

#13 Post by boco » 2023-08-29 16:32

Well, 10 ports is way too few ports, you will run out of them fast. You need at least as many ports all online users together can saturate in 4 minutes at peak times. That's because a port can only be reused after 4 minutes minimum.
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

jeremypoynton
450 Internal Error
Posts: 41
Joined: 2023-07-04 08:52
First name: Jeremy
Last name: Poynton

Re: Firewall rules lost

#14 Post by jeremypoynton » 2023-08-29 16:41

Hasn't been a problem so far, as the server is not in use all the time, but will bear that in mind!

Thanks

Post Reply