Memorise

Open a range of ports on Windows Firewall

Open a range of ports on Windows Firewall

Needed to open a big range of ports on Windows Firewall on one of my web boxes. Via the GUI you can only do one port at a time. But run this at the command prompt to add a range:

FOR /L %I IN (3001,1,4001) DO netsh firewall add portopening TCP %I "Passive FTP"%I

This opens ports 3001 to 4001, and names them ‘Passive FTP’.

You get error on FileZilla server ‘425 Can’t open data connection’

If you are running fileZilla server, I think default for Passive mode setting is custom range 3000 – 4000, and windows Firewall block the connection. Open the connection and all works perfect.


Categorised as: Microsoft, Networking


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.