分享
 
 
 

The difference between PASV FTP and Normal FTP

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

With regards to the difference between PASV FTP and Normal FTP:

Both PASV FTP and Normal FTP work in the same manner for the initial

"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 port 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 whatever the

allocated second port number is. This is referred 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, then 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

Channel" connection from its second allocated port number, to the IP Address

and port number provided from the FTP server.

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

heard 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 to.

If you're using NAT (Network Address Translation), the FTP server is

probably going to be an IP Address within the established "Private Range"

(although 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...

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有