Archive for the ‘Windows 2003’ Category.

Passive FTP in Windows 2003

A quick command to enable passive FTP

Simply put, it is opening a hole in the firewall to allow passive connections to go through. You might want to google more to learn more about it. This is just a quick command to do it.

I have specific port 5500 to 5520 for this. You might need to restart the server to ensure everything is working.

cd "C:\Inetpub\AdminScripts"
adsutil.vbs set /MSFTPSVC/PassivePortRange "5500-5520"
FOR /L %I IN (5500,1,5520) DO netsh firewall add portopening TCP %I "Passive FTP"%I 
net stop msftpsvc
net start msftpsvc

Hope it helps.

Windows Firewall can not run because another program or service is running that might use the Network Address Translation component (IPNat.sys)

Encounter a problem that cause my windows box to be offline remotely 🙁

I had to spend quite a fair bit of my time to look into this.

If you attempt to start the Windows Firewall, you will notice that you will get this error message:

Windows Firewall can not run because another program or service is running that might use the Network Address Translation component (IPNat.sys)

This is because “Routing and Remote Access” is enabled.

You can disable by doing this:
Start -> Run -> cmd -> mmc
Add “Routing and Remote Access” under the Snap-In.

Disable the protocol for the “Routing and Remote Access” now. You will need to restart your server for it to take effect.

You should be able to start your Windows Firewall now and gain access to the server remotely 🙂

Hope this helps…