發表文章

目前顯示的是 2022的文章

How to Configure Passive Port Range for the FTP Service in IIS

圖片
The PASV dynamic port range for FTP service in IIS Web Server base on Windows dynamic port setting. You can query default port range setting follow this command : netsh int ipv4 show dynamicport tcp or netsh int ipv4 show dynamicport udp If your windows is early then windows server 2008 or windows vista , the range will be 1025 - 65535 You can change this dynamic port range follow this command : nsetsh int ipv4 set dynamicport tcp start=50000 num=10000 if  you need keep this setting then add persistent command : nsetsh int ipv4 set dynamicport tcp start=50000 num=10000 persistent or keep until next boot(default) : nsetsh int ipv4 set dynamicport tcp start=50000 num=10000 active and query again: Now , your FTP PASV port range will be limit in 50000-59999. Note : Change this range maybe limit other windows service dynamic port  at same time. Reference : The default dynamic port range for TCP/IP has changed since Windows Vista and in Windows Server 2008. Service Name and Transport Protoco