Set Serv-u ftp to support passive mode connection, 530 error, and other solutions

Source: Internet
Author: User

Setting up Serv-u ftp to support passive mode connection early in the morning was told by a friend that FTP cannot be connected at all times. I can connect myself without passive mode. This problem has plagued me for a long time. Article Solved it. Here is a backup. My problem is that no corresponding port is set. Set support for passive (PASV) mode connection: local server -- "settings --" Advanced -- "PASV port range --" Write range, I heard it should be written after 4000, you can write--- "FTP settings are complete, enter local connection properties --" TCP/IP properties -- "Advanced --" options -- "TCP/IP screening --" properties -- "If TCP/IP is enabled filter (all adapters) is selected (if not, close it directly) -- only allow adding TCP ports:, 5001, common PASV setting error: [right] data socket error: connection rejected [right] list error cause: the PASV port number set on Serv-U is not enabled on the NIC TCP/IP. For more information, see Overview 2 on the top: the FTP protocol can work in two ways: Port and PASV. The Chinese meaning is active and passive. The active connection process is that the client sends a connection request to the FTP port of the server (21 by default). The server accepts the connection and establishes a command link. When data needs to be transmitted, the server sends a connection request from Port 20 to the idle port of the client and establishes a data link to transmit data. PASV (passive) connection process: the client sends a connection request to the FTP port of the server (21 by default). The server accepts the connection and establishes a command link. When data needs to be transmitted, the client sends a connection request to the idle port of the server and establishes a data link to transmit data. Because the server actively connects to the client when data is transmitted by port, if the client is behind the firewall or NAT gateway, the file cannot be transmitted by port with the FTP server on the Internet. In this case, PASV is required. Almost all FTP client software supports these two methods. A special example is IE, which uses port by default. If you want to enable PASV in IE, open IE and choose tools> Internet Options> advanced from the menu, hook up before "use Passive FTP" (supported only by ie6.0 or above ). Software environment: Serv-U 5. windows or above | the English version of Windows is used as an example. Note: 1. go to the Serv-u page and set the port range in settings -- advenced. The following is an estimate of the Setting standard (unofficial standard ): the average number of FTP service online users exceeds 100. The recommended port range is 30-40. For example, enter 10000-10035. The average number of FTP service online users is 30-60. The recommended port range is around 20, for example, if you enter 10000-10020, the average number of online FTP services is 5-20. The recommended port range is 5-10. For example, enter 10000-10010. select allow passive mode data transfers in domains -- (the domain created, for example, ftp.yongfa365.com on this site) -- settings -- advenced, use IP does not need to be filled in 3. restart the Serv-U service. You can run netstat-an | more in command line mode to check whether the TCP port 1000-100xx is enabled. if the above PASV port is restricted in TCP/IP filtering, IP Security Policy, and network firewall, you should first unmask the network. Introduction 2: the FTP server of many friends does not support the PASV mode. You need to cancel the PASV mode when logging on. The methods for canceling FTP download tools are as follows: 1. click "Tools"-> "options"-> "Proxy Server"-> "Direct Connection"-> edit-> disable "PASV mode ". "Remove the previous check mark, all the way back. 2. click "file"-> "Site Management"-> "Site Management"-> "Site Manager" window-> "New Site"-> Fill in "Domain Name" -> "edit"-> "general"-> remove the check mark before "use PASV mode". 3. click "Site"-> "Site Manager"-> "New Site"-> Fill in "Domain Name"->" option "-> remove the check box before" use passive mode "->" application ". 4. choose "option"-> "parameter settings"-> "proxy"-> "Direct Connection"-> edit-> disable "PASV mode ""Remove the previous check mark, all the way back. I believe everyone knows what FTP is, but I still don't know what PASV and port are, or you know but don't know what they are. Let's introduce the two models below: port is actually another name of the standard model, it is also known as active mode. The Chinese meaning is "active mode. PASV is short for passive. Chinese is" passive mode. What is the difference between the two: the difference is that the port method needs to be connected to TCP port 21, the server sends data through its own TCP 20, and a new connection is required to transmit the file. The PORT command contains some useless information from the client, so with the emergence of PASV, The PASV mode has the advantages of the port mode and removes some port disadvantages. When the server receives the PASV command, it will be automatically selected randomly from Port 1024 to 5000, and data will be transmitted using the same port, no new connection PASV Mode settings are required: all FTP server software supports port mode. Most FTP server software supports port mode and PASV mode. By default, Serv-U supports both modes. If PASV mode is to be disabled, open Serv-U and choose domains-> user.dns0755.net-> Settings-> advanced-> remove the hooks before "allow passive mode data transfers, PASV mode cannot be canceled. PASV mode and firewall problems: public network and Intranet truehost users. If a firewall is installed, open some ports on the firewall to use the PASV mode of FTP, otherwise, you cannot log on in PASV mode. In the local server-> Settings-> advanced-> PASV port range of Serv-U, enter the local port range used in PASV mode, for example, 60000-60020. If win 9x/me is used, limit the port range to five. If Win NT/2000/XP/2003 is used, limit the port range to 20. Then, open the port in this range in the firewall. You do not need to set this option when using the Intranet Standard Edition. Note: the firewall that comes with Win XP automatically opens the PASV port for FTP. If you use Win XP firewall, you do not need to set it. Considerations for Public Network + port ing: access the Internet through the ADSL shared device/router or Other gateways, if you use a public dynamic domain name Through gateway port ing and create an FTP server, it is no problem to use port access. To use PASV access, you need to make the following settings: 1. Select "Enable Dynamic DNS" in domains-> user.dns0755.net. Then, an option "Dynamic DNS" appears on the right. Click "Dynamic DNS ", in "ip name", enter the domain name "user.dns0755.net ", "ip address" is left blank. Press "F5" to obtain the IP address. Click "Apply" to save the settings. 2. Refer to the instructions in "PASV mode and firewall problems" above, set the PASV port range, for example, 60000-60020. 3. On the gateway (ADSL shared device/router) configure Pasing for PASV port. For example, map port 60000-60020 of the gateway to port 60000-60020 of the local machine.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.