Tutorials

Using Windows Firewall with secure FTP over SSL (FTPS) traffic

Using Windows Firewall with secure FTP over SSL (FTPS) traffic

Note: This does not work with every router/modem. Please, read the manual of your router/modem for this.

Now that we have successfully configured our FTP server for secure FTP over SSL (FTPS) we need to configure our Windows Firewall because the default settings do not allow traffic. Normally you would open port 21 for FTP traffic but because we configured our server for Secure FTP there are more steps involved.

The stateful FTP packet inspection in Windows Firewall will most likely prevent SSL from working because Windows Firewall filter for stateful FTP inspection will not be able to parse the encrypted traffic that would establish the data connection.

  1. Open a command prompt: click Start, then All Programs, then Accessories, right click Command Prompt and choose ‘Run as administrator’.
    Using Windows Firewall with secure FTP over SSL (FTPS) traffic
  2. To configure the firewall to allow the FTP service to listen on all ports that it opens, type the following syntax then hit enter:
     
    netsh advfirewall firewall add rule name="FTP for IIS7" service=ftpsvc action=allow protocol=TCP dir=in
    Using Windows Firewall with secure FTP over SSL (FTPS) traffic
  3. To disable stateful FTP filtering so that Windows Firewall will not block FTP traffic, type the following syntax then hit enter:
     
    netsh advfirewall set global StatefulFtp disable 
    Using Windows Firewall with secure FTP over SSL (FTPS) traffic
  4. Open the ‘Windows Firewall with Advanced Security
    Using Windows Firewall with secure FTP over SSL (FTPS) traffic
  5. Accept the UAC warning and click ‘Continue’.
    Using Windows Firewall with secure FTP over SSL (FTPS) traffic
  6. There is our new rule listed. The change in StatefullFTP inspection is not listed here. If you want to see that you will need to do that from the command prompt with:
     
    netsh advfirewall show global Statefulftp 
    Using Windows Firewall with secure FTP over SSL (FTPS) traffic

Join our community.

Excellent content,
great people!

Like what you see? Join us for free*

Subscribe and receive ‘how to’ and ‘best practice’ articles on server and cloud maintenance, design and troubleshooting.

  • Monthly newsletter with a summary of all new tutorials
  • Get an email as soon as a new tutorial has been published

About www.server-essentials.com 

www.server-essentials.com is founded by Mariette Knap, a Dutch Microsoft MVP. www.server-essentials.com is a community for IT Consultants and Business Owners who, themselves, take care of the IT infrastructure and Employees who do that little extra in the company to keep things running. Our forum is for discussing all things ‘IT’ and more.  Our documentation is top notch and written by and for the community.

Change your cookie settings


 
Contact Us
(030) 2250455

International: +31302250455

 

Concentrix BV

C. de Rijcklaan 1

3723 PM Bilthoven

The Netherlands

KvK 30202318

VAT Id 814036739B01

This page is intended to be viewed online and may not be printed. You are not allowed to save or print any documentation on www.server-essentials.com. If you save documentation locally or distribute it you are violating the Terms of Service of this website you agreed on when registering an account. You have access to the documentation as long as you have a valid subscription. If you try to download our documentation we will drop Javascript which makes it possible for us to track you.