Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a web server on which IIS 7 host an SSL-enabled site.

The client in am trying to connect with is behind the corporate Forefront TMG. The app is Total Commander - a file manager shell, that has the ability to connect to SSL FTP by putting a checkmark over SSL/TLS in the FTP connection settings.

When FTP Access Filter in FF is enabled, my connection attempt fails on Negociating TLS step of FTP connection. The same happens even if I enable Allow Active FTP in the filter's settings.

But when I disable the FTP Access Filter on FF completely, I am able to connect fine.

How to configure FF TMG to allow FTPS?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

TMG doesn't support FTPS (that's FTP + SSL, rather than SFTP, or SSH File Transfer, which generally works fine)

FTPS is Really Hard to do with an FTP filter, because the FTP NAT filter watches for information the client behind NAT sends to the FTP server, and encryption causes that not to be visible. And that annoys NAT inspectors.

If Total Commander supports using HTTP proxies, you can work around this fairly easily by configuring it to use an HTTPS connection instead (via ye olde CONNECT-to-get-a-plain-TCP-channel hack).

For that to work, you'll also need to configure TunnelPortRanges to allow the destination port as if it were SSL. http://technet.microsoft.com/en-us/library/cc302450.aspx

Alternative alternative!

If (long list here)

  • you're using PASV only (so multiple outbound connections)
  • your initial connection is on port 21
  • you aren't unhappy with the client using an "all protocols" rule

then you could set up

  • a protocol definition for TCP outbound, destination port 21, not bound to the FTP filter ("NONFTP FTPS")
  • a rule allowing NONFTP FTPS from the client IP to the server IP
    • (I'm assuming it needs to be locked down to only one client and server; otherwise "anywhere" is fine if it's fine with you)
  • a rule immediately following that, DENYING FTP (the real FTP) with the same source/dest
  • a rule following that one that allows all outbound traffic between source and dest IP (or at least, all TCP connections on expected ports)

And this set of rules should be ordered before any other rules allowing the client full access to all protocols and ports.

It's important the DENY FTP rule is

a) immediately after the Special FTP rule that uses the protocol with the application filter unbound, and

b) before any other rules that might allow the client to use Good Old FTP to the target IP (otherwise TMG prefers the protocol definition with the application filter, which is what we don't want here - we want TMG to treat it like straight TCP)

I think this would cover all the FTPS scenarios. Same principle as this.

share|improve this answer

protected by splattne Mar 22 '12 at 7:28

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.