M
M
micropodgon2016-09-07 18:18:19
FTP
micropodgon, 2016-09-07 18:18:19

How to configure FTPS on IIS for dynamic ports?

I set up FTP on IIS in PASSIVE connection mode.
Faced the following problem: IIS allocates ports for passive FTP connections from the range that do not match the settings in "FTP firewall support".
I set the port range 50100 - 50200
In the logs, I see that IIS "invites" the FTP client to connect to a different port.
Logs:
Status: Connection established, waiting for prompt...
Response: 220 Microsoft FTP Service
Command: AUTH TLS
Response: 234 AUTH command ok. Expecting TLS Negotiation.
Status: Initializing TLS...
Status: Verifying certificate...
Command: USER micropodgon
Status: TLS/SSL connection established.
Answer: 331 Password required
Command: PASS ****************
Reply: 230 User logged in.
Command: SYST
Response: 215 Windows_NT
Command: FEAT
Response: 211-Extended features supported:
Response: LANG EN*
Response: UTF8
Response: AUTH TLS;TLS-C;SSL;TLS-P;
Answer: PBSZ
Answer: PROT C;P;
Response: CCC
Response: HOST
Response: SIZE
Response: MDTM
Response: REST STREAM
Response: 211 END
Command: OPTS UTF8 ON
Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Command: PBSZ 0
Reply: 200 PBSZ command successful.
Command: PROT P
Response: 200 PROT command successful.
Status: Connection established
Status: Getting list of directories...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (XX,XX,XX,XX,192,136).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Answer: 226 Transfer complete.
Status: Directory list retrieved
Response: 227 Entering Passive Mode (XX,XX,XX,XX,192,136) is (192 * 256) + 136 = 49288 port.
Question: how to make IIS issue the specified ports for connection?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2016-09-07
@opium

it's easier to open the iis ports in brandmaure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question