Announcement

Collapse
No announcement yet.

FTP error

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

  • FTP error

    greetings!

    just set-up my ftp serv on the windows 2003 server.
    ftp works fine those accessing from the lan
    but fails if i access it from the internet (outside of my lan)

    the error details
    200 type set to a
    227 entering passive mode
    426 connection closed

    dsl modem --> dlink router --> switch
    i have an entry on the router pointing to the ftp server's private ip

    thanks

  • #2
    Re: FTP error

    But have you opened the port on the firewall (assuming the unmodelled router has a firewall)?
    1 1 was a racehorse.
    2 2 was 1 2.
    1 1 1 1 race 1 day,
    2 2 1 1 2

    Comment


    • #3
      Re: FTP error

      yup. ftp port 21 is enabled

      Comment


      • #4
        Re: FTP error

        And what about port 20???

        http://slacksite.com/other/ftp.html

        Comment


        • #5
          Re: FTP error

          no port 20 enabled... why do i need to open port 20?

          Comment


          • #6
            Re: FTP error

            Did you read the link i posted??

            FTP use 2 ports, 20 and 21.

            Port 20 is the data port.
            Port 21 is the command port.

            All you commands are done via port 21. This will initiate the actual transfer.
            All your transfers are done via port 20. This is where you download the data.

            Comment


            • #7
              Re: FTP error

              Wullieb1 is right. You need to open both port 20 and port 21 and redirect them to your local machine using the port-forwarding function in your router. Also, depending on what FTP server software you are using, you probably need to set up PASV mode. For example, I use bulletproof ftp server, which requires port range 50000-50050 to be opened to enable passive mode.
              Try this link for testing and useful info:
              http://www.g6ftpserver.com/en/ftptest

              Comment


              • #8
                Re: FTP error

                i will to check on my ports. btw, i just using windows 2003 server as an ftp server

                Comment


                • #9
                  Re: FTP error

                  Originally posted by kinalas
                  i will to check on my ports. btw, i just using windows 2003 server as an ftp server

                  It doesn't matter what you are using as an FTP server the same principles apply.

                  Comment


                  • #10
                    Re: FTP error

                    same.. it gives... 425 error message... how can i change pasv mode

                    Comment


                    • #11
                      Re: FTP error

                      Depends on your client

                      Try looking at the Help for your client and set to PORT see if that works

                      Comment


                      • #12
                        Re: FTP error

                        Can you connect internally to the server??

                        i.e. Can you telnet to port 21 on the server and get a connection??

                        ****EDIT****

                        Sorry just read the first post and you can.

                        You really need to have a look at the Port Forwarding options on your router.

                        You need to have both port 20 and 21 forwarded to the 2003 server.

                        Which FTP client are you using???

                        Comment


                        • #13
                          Re: FTP error

                          Originally posted by kinalas
                          same.. it gives... 425 error message... how can i change pasv mode
                          pasv & active mode Some reading for you.
                          1 1 was a racehorse.
                          2 2 was 1 2.
                          1 1 1 1 race 1 day,
                          2 2 1 1 2

                          Comment


                          • #14
                            Re: FTP error

                            Port 20 only needs to be opened outgoing if you're using active mode. (often firewalls are configured to allow all trusted traffic to pass through) In active mode the client needs to have all ports => 1024 opened incoming. (not very secure for the client)

                            If you're using passive mode you need to either open all the incoming ports => 1024
                            or
                            configure your ftp server to only use a specific range of ports and open them incoming on the router. (not very secure for the server)

                            Pick you poison.

                            PS - Wullie, I don't think that in any situation do you need to forward port 20 to the server. It's the server that initiates the connection from port 20.
                            Last edited by JeremyW; 12th October 2006, 19:08.
                            Regards,
                            Jeremy

                            Network Consultant/Engineer
                            Baltimore - Washington area and beyond
                            www.gma-cpa.com

                            Comment


                            • #15
                              Re: FTP error

                              Originally posted by JeremyW
                              PS - Wullie, I don't think that in any situation do you need to forward port 20 to the server. It's the server that initiates the connection from port 20.
                              You could be right m8.

                              It's been a long time since i setup FTP on a server

                              Comment

                              Working...
                              X