FileZilla passive mode on Windows Server 2003

Published on February 7th, 2008 by DannyT. Filed under Hosting

This took me a while to figure out so posting for any future server setups I have to do.

To enable passive mode in FileZilla FTP server on win2003 you need to do the following:

1 – Open a small range of ports in your windows firewall
Firstly make sure port 21 is open.
You can do this under Control Panel -> Windows Firewall -> Exceptions tab -> Add Port
Enter 21 as the port number and FTP as the description ensuring TCP is selected and OK.

Then you need to do the same with a range of ports typically of a much higher number, you can do this using the same approach but that will take a long time to add them, alternatively, create a new textfile called passiveopen.bat and paste in the following:
[code]
Echo OFF

ECHO OPENING FIREWALL PORTS
FOR /L %%I IN (6500,1,6550) DO NETSH FIREWALL ADD PORTOPENING TCP %%I FTPPort%%I

REM iisreset

ECHO FINISHED
Pause
[/code]
save then open command prompt (start, run, “cmd” enter)
and type the path and filename of that textfile (E.g. “c:\passiveopen.bat”) which will open the ports 6500 to 6550 for you.

2 – Open the same ports on your router/other firewalls
Depending on your setup you might need to open the same ports on your router and any other hardware and software firewalls you have running.

3 – Tell FileZilla to use those ports for passive mode
In FileZilla server click Edit -> Settings
Select Passive Mode Settings from the menu on the left and enter the ports in the custom ports range box.

Et voila! passive mode should now be firing on all cylinders. Simple and obvious but thought I’d share in case anyone else doesn’t want to dig through the docs and isn’t too familiar with how passive mode works.

3 Responses to “FileZilla passive mode on Windows Server 2003”

  1. Kareem Ayoub

    March 30th, 2008 at 12:45 am

    Thank you for the GREAT info ! it really helped me a lot.

    Reply
  2. the1after909

    September 3rd, 2009 at 2:47 am

    Worked for me too! Thanks man.

    Reply
  3. Trophy

    July 5th, 2010 at 11:03 pm

    thanks but it did not work out for me.
    My windows server is configured not to use the windows firewall but instead ip security guidelines. As this setup cannot be changed (to windows firewall), I stuck.

    I tried to setup manually some ports and configured them in filezilla server.

    From any address to local address from any port to a specific port locally, which was setup in filezilla.

    Active FTP is no problem.

    I never had problems like this with iptables. :(

    Thanks anyway.

    Reply

Leave a Reply

About DannyT

The blog: danny-t.co.uk - General geek talk focusing on Rich Internet Applications, Microsoft and Adobe technologies and the web in general. The business: Moov2.com - RIA development agency Dan Thomas has been an Internet geek since circa 1994. He has been running Moov2 since 2003 and prior to that worked as a Flash developer for one of europes largest E-learning providers.

Copyright © 2010 Danny-T.co.uk

CSS Template By RamblingSoul | WordPress Theme by Theme Lab and Best Hosting.