13-08-2007, 13:06
|
|
|
|
חבר מתאריך: 08.02.05
הודעות: 272
|
|
באיזה מצב השרת ftp שלך עובד, active או passive?
מוויקיפדיה:
ציטוט:
In active mode, the FTP client opens a random port (> 1023), sends the FTP server the random port number on which it is listening over the control stream and waits for a connection from the FTP server. When the FTP server initiates the data connection to the FTP client it binds the source port to port 20 on the FTP server.
In order to use active mode, the client sends a PORT command, with the IP and port as argument. The format for the IP and port is "h1,h2,h3,h4,p1,p2". Each field is a decimal representation of 8 bits of the host IP, followed by the chosen data port. For example, a client with an IP of 192.168.0.1, listening on port 1025 for the data connection will send the command “PORT 192,168,0,1,4,1”. The port fields should be interpreted as 4×256 + 1 = 1025.
In passive mode, the FTP server opens a random port (> 1023), sends the FTP client the server's IP address to connect to and the port on which it is listening (a 16 bit value broken into a high and low byte) over the control stream and waits for a connection from the FTP client. In this case the FTP client binds the source port of the connection to a random port greater than 1023.
To use passive mode, the client sends the PASV command to which the server would reply with something similar to "227 Entering Passive Mode (127,0,0,1,78,52)". The syntax of the IP address and port are the same as for the argument to the PORT command.
|
בקיצור מה שזה אומר זה שב-active, השרת יצטרך להתחבר לקליינט - שזה לא מה שאתה רוצה - וב-passive הקליינט יבצע את ההתחברות והשרת רק יענה לו.
אני לא יודע באיזה שרת ftp בחרת אבל יש כאלה שנותנים אופציה לבחור pasv_high_port ו-pasv_low_port שמאפשר למפות בקלות את הפורטים לשרת שלך מהאינטרנט.
_____________________________________
חתימתכם הוסרה כיוון שלא עמדה בחוקי האתר. לפרטים נוספים לחצו כאן. תוכלו לקבל עזרה להתאמת החתימה לחוקים בפורום חתימות וצלמיות.
נערך לאחרונה ע"י infernal211283 בתאריך 13-08-2007 בשעה 13:29.
|