用FileZilla在局域网建立FTP服务器的Windows防火墙的设置
在 Windows 7 安装玩FileZilla FTP Server之后,如果Windows防火墙是启用状态的话,是不能通过局域网中的其他机器直接访问FTP Server的。其实方法很简单,只要把FileZilla安装目录下的 FileZillaServer.exe 加入防火墙的Exception就可以了(注意不是那个Wiki里提到的“FileZilla server.exe”带空格的文件)。方法如下:
打开Windows防火墙控制面板下。
如果使用Vista,单击“更改设置”
选择“例外”选项卡。
点击“添加程序… …”
不要选择从列表中的“FileZilla的服务器接口”,而不是点击“浏览…”
找到您安装FileZilla中服务器的目录(通常为“c:\Program Files\FileZilla Server\”)
双击或选择的“FileZillaServer.exe”,然后按开启(再一次,而不是“FileZilla Server Interface.exe”)
从列表中选择的“FileZillaServer.exe”,然后点击“确定”
验证的“FileZillaServer.exe”添加到例外列表中,并且它在框旁边一个复选标记
按“OK”关闭窗口
我使用的是XAMPP里附带安装的FileZilla,也许跟官方版本有所不同,不过这个小问题浪费了我不少时间,其实把20,21端口一起加入防火墙Exception也是可以的,但显然不如所这里介绍的方法直观,而且相对开放端口有危险性,不建议大家使用。
以下是转自FileZilla Wiki的原文:
Setting up FileZilla Server with Windows Firewall
If you are having problems with setting up FileZilla Server to run behind Windows Firewall (specifically, it fails on “List” and the client receives a “Failed to receive directory listing” error), you must add the FileZilla Server application to Windows Firewall’s Exceptions list. To do this, follow these steps:
Open Windows Firewall under Control Panel.
If using Vista, click “Change Settings”
Select the “Exceptions” tab.
Click “Add program…”
Do NOT select “FileZilla Server Interface” from the list, instead click on “Browse…”
Locate the directory you installed FileZilla Server to (normally “C:Program FilesFileZilla Server”)
Double click or select “FileZilla server.exe” and press open (Once again, NOT “FileZilla Server Interface.exe”)
Select “FileZilla server.exe” from the list and click “Ok”
Verify that “FileZilla server.exe” is added to the exceptions list and that it has a check mark in the box next to it
Press “Ok” to close the window
Passive mode should now work. If you are still having problems connecting (from another computer or outside the network), check your router settings or try to add the port number in the Windows Firewall settings located in the Exceptions tab.See the Microsoft kb article 931130 about running FileZilla with the “Routing and Remote Access” or the “Application Layer Gateway” service