The Difference Between Pasv FTP and Normal FTP

xiaoxiao2021-03-06  43

With regards to the Difference Between Pasv FTP and Normal FTP:

Both Pasv FTP and Normal FTP Work in The Same Manner for THE InIst

"Control Channel" Connection, Which Occurs As Follows:

The External User Allocates TWO Port Numbers for the FTP Session. The First

Port Number Is Reflected in The Connection That's Used To TCP Port 21, ON

The FTP Server. This is Referred To As The "Control or Command Channel".

THE USAGE OF THE Second Number Allocated by The External User, AS Well

as how the connection is established is where the difference occurs ...

If The External User Sends The FTP Server A Port (Normal FTP) Command,

Which also contains the second allocated port number inside the data of the

Packet. Then the FTP Server Initiates The next connection to the external

User. THIS OCCURS from TCP Port 20 (on the ftp server) To wherever the

Allocated Second Port Number IS. this is refered to as the "data channel"

CONNECTION.

If You'VE Noticed, It's The FTP Server Which Initiated THE Connection

Outbound, To the External User. in The World of Security and FireWalls,

This Can Be a Very Bad Thing. Hence, The Reason Why Pasv ftp Was created.

This is Also A Reason Why Some FTP Servers Do Not Accept The Port Command.

IF The User Sends The FTP Server A Pasv (PASV FTP) Command, The FTP

Server Responds Back to the External User with a port number That It HAS

Allocated. Special Note: The Port Number To BE Used, AS Well As The FTP

Server's ip address is embedded inside the data of the packet Sent to THE

External user.

When the user receives this packet, The External User Initiates The "DATA

.

See The Difference? In a Pasv Connection, The "Data Channel" IS

INITIATED / CREATED BY The External User. in A Normal Connection, IT'S

Established by The FTP Server.

Note: All Web Browsers Use Pasv ftp as its means of ftp. Although i Have

Head a Rumor That Internet Explorer 5.0 Will Support Both. I have yet to

CONFIRM this ...

Now, Let's Look At The "Special Note" ...

To Reiterate, In A Pasv FTP Session, The FTP Server Tells The External User

What The FTP Servers' IP Address IS, AS Well As What Port Number To Initiate

An inbound connection.

If You're Using Nat (Network Address Translation), The FTP Server IS

Probably going to be an ip address forin the establish "private range"

(Alth That Really Isn't the Issue). Now, Say for Instance THE FTP

Server IS 192.168.100.10 and an external user is trying to initiate a PASV

FTP session to this ftp server. Because the ip address 192.168.100.10 as

Well as the port number is Embedded Inside the Packet and Because A LOT OF

Nat Implementations Cannot "Rewrite" this information. The External User

Receives this information and will try to initiate the "data channel"

CONNECTION TO AN IP Address (192.168.100.10) That Will Never Leave Their

Local lan. Hence Pasv ftp fails inbound through nat.

I Hope I've Explained this Well ENOUGH ...

转载请注明原文地址:https://www.9cbs.com/read-85735.html

New Post(0)