Archive for the ‘Firewall’ Category

Configuring Windows Firewall and passive mode ftp port range.

Saturday, April 28th, 2007

FTP client needs to run behind a firewall and use passive mode FTP to connect to a server.

Execute this command
--------------------
cscript C:\Inetpub\AdminScripts\adsutil.vbs set /MSFTPSVC/PassivePortRange “5500-5550″

Open the port range
-------------------
FOR /L %I IN (5500,1,5550) DO NETSH FIREWALL ADD PORTOPENING TCP %I FTPPort%I
iisreset