Setup FileZilla server Passive Ports on Windows Server 2012
I prefer to use FileZilla ftp Server above the traditional IIS FTP module. FileZilla comes with a lite and lean GUI, great logging tools, connection (speed) limits and more. If you don't know FileZilla Server or the FileZilla Client I strongly encourage you to try them off at https://filezilla- project.org/
Setting up the FileZilla Server was straightforward, but after the configuration of the user/groups and directory you can have som E trouble setting up the Windows Server Firewall. Traditional FTP uses port, you should open this on your Firewall (see below) if even after opening up this port some E Rrors can rise to the occasion when using passive FTP.
I had the following problem:
Response: 227 Entering Passive modecommand: listerror: Connection timed Outerror: Failed to retrieve Directory listing
When Port was configurated in the Firewall, and you had setup the users/groups in the FileZilla Server setup you still Can encounter the problem above. By default the FTP client would connect through passive mode
, and opens a random port between 1-65535. Now the is a wide range and I do not recommend opening all these ports. Instead you can limit the range of these ports to let ' s say:50100-51100.
So lets does this, configure FileZilla Server Passive Port Range:
- Open up the FileZilla GUI on your server.
- Click on the top menu
Edit
Settings
.
- From the tree menu click on
Passive mode settings
.
- Now make sure the checkbox was checked and enter in the first box A and in the
Use custom port range
50100
51100
second.
- Click OK
Now there are finished setting up the custom ports we can move forward to the Windows Server, Firewall.
Configurating the Firewall
Lets open up the Firewall panel, press the Windows key on your keyboard and start typing firewall
. The result should be Windows Firewall with advanced...
. Click it or hit enter.
(Pro tip;-) hit Windows Key + R
firewall.cpl
enter
, hit)
- From the tree, select Inbound Rules.
- In the right panel, click
New Rule
.
- A windows pops up, select and
Port
click Next.
- Make sure TCP are selected, and enter in the
50100-51100
specific local ports field.
- Hit and make
Next
sure the Allow connection
option is selected. Then hits Next again.
- Select The zones where this rule is need to is applied (in my case I has selected all the zones).
- Click Next and give this rule a recognizable name:
Passive FTP Ports - FileZilla
.
- Click on Finish, and your done.
In yet added port to the Firewall you can use the same steps, but instead of using port 50100-51100 J UST use port .
When connecting to your FTP Server The result now should be:
Response: 227 Entering Passive modecommand: listresponse: Connection acceptedresponse : 226 Transfer okstatus: Received File listing
Feel free to comment or contact me!
Original address: Http://johandorper.com/log/filezilla-server-passive-ports
FileZilla Server Installation Issues