Set serv-u FTP support Passive mode connection, 530 error solution Collection _FTP Server

Source: Internet
Author: User
Tags get ip socket error ftp client ftp protocol
Set Serv-u FTP to support passive mode connections
Early in the morning by a friend said FTP never even go up, I remove the passive mode can connect.
This problem has been bothering me for a long time, which is the following article to solve it. Special here to leave a backup.
My problem is that the corresponding port settings are not being made.


To set support for passive (PASV) mode connections:
Local server--"set--" advanced-"PASV Port range-" write the scope, heard that must write after 4000, you can write the 5000-5005--FTP setup completed

Go to local connection properties--"TCP/IP Properties--Advanced--" options--"TCP/IP Filtering--" Properties--"If you start TCP/IP filtering (all adapters) is selected (not the case direct shutdown)--" Add only the TCP port: 5000, 5001,5002,5003

To set PASV common errors:
[Right] Data Socket error: Connection denied
[Right] List error
Reason: The PASV port number set on the serv-u is not open on NIC TCP/IP on the top


Provide relevant introduction on the Internet two:
The FTP protocol works in two ways: Port and PASV, and Chinese meaning is active and passive.
The port (Active) connection process is that the client sends a connection request to the server's FTP port (the default is 21), and the server accepts the connection and establishes a command link. When the data is needed, the server sends a connection request from Port 20 to the client's free port, creating a data link to transmit the data.
The PASV (passive) way of the connection process is that the client sends a connection request to the server's FTP port (the default is 21), the server accepts the connection, and establishes a command link. When data is needed, the client sends a connection request to the server's free port, creating a data link to transmit the data.
Because the port means that the server actively connects to the client when transmitting data, if the client is behind a firewall or NAT gateway, the port will not be able to transfer files with the FTP server on the Internet. This situation requires the use of a PASV approach. Almost all FTP client software supports both of these approaches. A special typical example is the Ie,ie default is the Port method. If you want to enable PASV mode in IE, please open ie, choose from the menu: Tools-> Internet Options-> Advanced, in front of "Use Passive FTP" (need IE6.0 above to support).

Software Environment: Serv-u 5.x or above windows2000| WINDOWS2003 platform This paper takes the English version as an example, the Chinese version of the user's own translation
Precautions:
First, enter the Serv-u management interface, settings--advenced in the PASV port range set the range of ports, I estimate the set of standards as follows (unofficial standard):
The average number of online FTP services is over 100. Recommended port range is 30-40, such as fill 10000-10035
The average number of online FTP services 30-60 people recommend that the port range of about 20, such as filling 10000-10020
The average number of online FTP services 5-20 people suggest a port range of 5-10, such as fill 10000-10010

Two. In domains--(established domain, such as the site domain is set to ftp.yongfa365.com)--settings--advenced allow passive mode data Transfers,use IP This is the previous box selected, Use IP does not need to be filled in

Three. Restart the Serv-u service to run Netstat-an|more in command line mode to see if TCP's 1000-100XX port is normally open
Four. If the TCP/IP filter, the security policy, the network firewall limits the above PASV port, should first remove the mask

Provide relevant introduction on the Internet two:


There are many friends of the FTP server is not supported PASV mode, login to cancel PASV mode before the line 。 The cancellation methods for several FTP download tools are published as follows:
1. Method of turning off the PASV mode of FlashGet
"Tools"-> "Options"-> "proxy Server"-> "direct connection"-> edit-> the "PASV mode" before the hook to remove, all the way to determine back 。
2. Method of turning off the PASV mode of CUTFTP
The "file"-> "Site Administration"-> in the Site Manager window-> the "domain name"-> "edit"-> "General"-> the "Use PASV mode" check box before removing 。
3. Method of turning off the PASV mode of FlashFXP
"Site"-> "site Manager"-> site Manager window-> "new site"-> fill in the "Domain Name"-> "option"-> "use Passive mode" before the Tick off-> "application" can be 。
4. Method of turning off the PASV mode of netants
"option"-> "parameter Setting"-> "proxy"-> "direct connection"-> edit-> the "PASV mode" before the tick to remove, all the way to determine back 。
I believe we all know what FTP is, but I have a lot of people do not know what is PASV and port, or you know but do not know what they are 。
Here are a couple of modes:
Port is actually another name for the standard mode, also known as active mode 。 "Active mode 。" is the Chinese meaning
PASV is the shorthand for passive 。 Chinese is "passive mode 。
What is the difference between the two:
The difference is that the port in this way requires the server to send data through its own TCP 20来 after the TCP 21 port is connected 。 And you need to create a new connection to transfer the files 。 and the Port's command contains some of the client's useless information, so there is the appearance of PASV 。
The PASV model, of course, has the advantages of the port model and the disadvantages of removing some port 。 The PASV operation is that when the server receives the PASV command, it automatically selects from ports 1024 through 5000, and uses the same port to transmit the data without establishing a new connection

PASV Mode setting:
All FTP server software supports port mode 。 Most FTP server software port and PASV way are supported 。 Serv-u The default configuration is supported in both ways 。 If you want to turn off the PASV mode, open serv-u, enter Domains-> user.dns0755.net-> Settings-> Advanced "-> Allow mode data passive Sfers "Front hook to remove 。
Use the intranet standard version of the user, can not cancel PASV mode 。

PASV mode and Firewall issues:
Public network and intranet Truehost users, if installed a firewall, need to open some port on the firewall to FTP PASV mode use, otherwise use PASV mode can not log in 。 In Serv-u's local Server-> Settings-> Advanced-> port range, fill in the range of native ports used for the PASV mode, such as PASV If you use win 9x/me, please limit the port range to 5, if you use win nt/2000/xp/2003, please limit the port range to 20 or less 。 After that, you can open the range of ports in the firewall 。
Users who use the intranet standard version do not need to set this option 。
How to set up a firewall
Note: Win XP from the firewall will automatically open the PASV port for FTP, if the use of the Win XP firewall does not need to set 。
Public Network + port mapping considerations:
ADSL share/router or other gateway to the Internet, using Gateway port mapping and use of public network dynamic domain name users, the establishment of FTP server, with port access is no problem, to use PASV way to access, you need to do the following settings:
1、 Select "Enable dynamic DNS" in domains-> user.dns0755.net 。 After that, the right will have an extra option "Dynamic DNS" 。 Click "Dynamic DNS", enter the domain name "user.dns0755.net" in "IP Name", "IP address" leave blank not set 。 Press "F5" to get IP address 。 Click "Apply" to save the settings 。
2、 refer to the instructions in "PASV and firewall issues" above to set the PASV port range, for example 60000-60020。
3、 Set mappings for PASV ports on gateways (ADSL shares/routers) 。 For example, map the gateway 60000-60020 ports to the local 60000-60020 port 。

Successfully linked after setting port

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.