Announcement

Collapse
No announcement yet.

Problem setting up FTP on Windows Server 2008R2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem setting up FTP on Windows Server 2008R2

    This is a new Cloud server from Rackspace that is going to run DNN. All I've done is create the server, apply all the updates, install .net 4 and add the FTP role (along with most of the features for that role).

    I've followed all the wizards and guides I can find but can't make an FTP connection, even with the firewall turned off. I must be missing some magic somewhere.

    At one point with the firewall turned off I at least got a '530 user cannot log in error'

    what should I be looking for?

    TIA

    T.
    FT.

  • #2
    Try telnet to port 22. Determine if it's firewall/network or permissions/configuration issue.

    Comment


    • #3
      Try connecting using PASV(passive) setting in the client ?

      Comment


      • #4
        Made some progress.
        Baby steps, started with anonymous ftp. Poked a hole in the firewall using command line.
        using Filezilla in passive mode.
        This connects, but LIST fails:

        Status: Connecting to xxx.xxx.xxx.xxx:21...
        Status: Connection established, waiting for welcome message...
        Response: 220 Microsoft FTP Service
        Command: USER anonymous
        Response: 331 Anonymous access allowed, send identity (e-mail name) as password.
        Command: PASS **************
        Response: 230-Directory has 73,186,422,784 bytes of disk space available.
        Response: 230 User logged in.
        Command: OPTS UTF8 ON
        Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
        Status: Connected
        Status: Retrieving directory listing...
        Command: PWD
        Response: 257 "/" is current directory.
        Command: TYPE I
        Response: 200 Type set to I.
        Command: PASV
        Response: 227 Entering Passive Mode (xxx,xxx,xxx,xxx,192,33).
        Command: LIST
        Response: 150 Opening BINARY mode data connection.
        Error: Directory listing aborted by user
        Response: 550 Data channel timed out.

        Nearly there!

        Thanks,

        T.
        FT.

        Comment


        • #5


          Make sure you have "Allow SSL" set and not the default "Require SSL". And you need more than just the normal port 21 rule for passive FTP to work. If you have not, run this firewall rule:

          netsh advfirewall set global StatefulFtp enable

          Good luck trying to get FTP over TLS/SSL working. When it works it works well, but getting it to work can be a serious pain.
          “Inside every sane person there’s a madman struggling to get out”
          –The Light Fantastic, Terry Pratchett

          Comment


          • #6
            Hi

            Thanks, have used that cmdline. I just tested and it is exactly the same with firewall fully off too, so I guess that is not it.

            Does this help:

            If I click on the site in IISM, Basic Settings, I have
            name: Mt FTPSite
            Application pool: DefaultAppPool (which is .net4.0, integrated pipeline)
            physical path: c:\inetpub\ftproot
            passthrough authentication

            If I click Test Settings... I get

            (tick) Authentication Pass-through authentication (DefaultAppPool:ApplicationPoolIdentity)
            (yellow warning triangle) Cannot verify access to path (C:\Inetpub\ftproot).

            Details:
            The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that <domain>\<computer_name>$ has Read access to the physical path. Then test these settings again.

            (I have given IIS AppPool/DefaultAppPool read permissions to the above folder. Heck, I even gave Everyone read permissions).

            Thanks

            T.
            FT.

            Comment


            • #7
              I wonder if any default policy setting is messing you up
              [size=1]D3/\/7YCR4CK3R
              Ryzen: Asrock B450M Pro4, Ryzen 5 2600, 16GB G-Skill Ripjaws V Series DDR4 PC4-25600 RAM, 1TB Seagate SATA HD, 256GB myDigital PCIEx4 M.2 SSD, Samsung LI24T350FHNXZA 24" HDMI LED monitor, Klipsch Promedia 4.2 400, Win11
              Home: M1 Mac Mini 8GB 256GB
              Surgery: HP Stream 200-010 Mini Desktop,Intel Celeron 2957U Processor, 6 GB RAM, ADATA 128 GB SSD, Win 10 home ver 22H2
              Frontdesk: Beelink T4 8GB

              Comment


              • #8
                I've found the Test Settings thing doesn't always work right. Even on a working FTP site the the path access will usually not come back working.

                The easiest way to test whether it's firewall, client or setup related is to use FTP.exe on the local server.

                Open the Command Prompt

                ftp <ip address>

                Enter username and password.

                If you get an error using FTP.exe on the local server then you have a setup issue. If it works locally and not remotely then you have a firewall issue.

                On a side note, be very careful with anonymous FTP access on a public server. Warez and hackers love exploiting anonymous access to push crackware and run up your bandwidth bill.

                The most secure way of FTP'ing with IIS is to use an IIS Manager user with user isolation.


                “Inside every sane person there’s a madman struggling to get out”
                –The Light Fantastic, Terry Pratchett

                Comment

                Working...
                X