运维

img skyonehbyc

打开PROFTP的FXP(File Exchange Protocol——文件交换协议)

发表于2004/10/10 9:49:00  1823人阅读

分类: 学习日志

今天看到有人对我这里的FTP提意见,要求打开FXP,在这之前,我还不知道这个简写词,不过看了别人的介绍就明白了,很早以前捣腾主页时,用到过这个功能。下面是转贴的介绍:


fxp的介绍

如果你上网,那么你一定知道FTP;如果你有个人主页,那你一定少不了与FTP(File Transfer Protocol,文件传输协议)打交道。但是如果你的主页有多个镜像的话,那么你一定要知道FXP才好。因为将一个FTP站点上的文件直接传输到另一个FTP站点便是我们将要了解的FXP传输方式。

  其实FXP的全称为File Exchange Protocol——文件交换协议,而且我们也可以认为FXP本身其实就是FTP的一个子集,因为在网络中FTP服务器到服务器的文件传输,实际上就是利用了FTP服务器的Proxy命令,不过它的前提条件是FTP服务器要支持PASV。



说道这里,相信大家一定想要急于知道可以实现FXP功能的软件了。FTP软件中的大哥大CuteFTP便可以支持FXP——同时运行两次CuteFTP,在两个服务器端控制窗口中对你想要传递的文件进行简单的拖拽处理,就是FXP传递了。不过这样的FXP功能不但在系统资源的利用上是一个极大的浪费,而且在操作上面也是非常的麻烦的。所以要实现简单快捷的FXP,还是要找诸如FlashFXP、FTPro、2ServerServer、Super FTP之类的专业FXP软件。

现在就向大家介绍两款功能强大的FXP软件:

  长空一击:FlashFXP——共享软件

  庞然大物:FTPro——共享软件

  FXP鼻主:Super FTP
简单介绍了这两款FXP/FTP软件,相信大家对FXP和FXP文件传输都有了一点认识。也许有人还要问,为什么要用FXP?其实答案很简单:因为服务器之间的数据传输是直接通过专线来进行的,所以速度要快许多,有时竟可以达到几十KB/S,这对于我们用猫上传文件时的几KB/S来说简直是一个质的飞跃。而且在文件传输过程中,我们的机器只是用来对两个服务器“指手画脚”,留给我们还有足够的带宽可以使用,所以不妨一次多开上几个Session,把活一次干完,岂不是更好
---------------------------------转贴完-----------------------------------------------


同时,马上我就测试了一下。我的FTPSERVER是PROFTPD1。2。9版本,原来这个功能是默认支持的,另一台proftpd1.2.7好象得配置后,也默认支持。
又看了一下cuteftp pro工具里的帮助,提到1.2.0rc3版本,需要简单的配置一下,下面是帮助原文:

FXP Server Setup

You have to set up the following three servers to allow site-to-site transfers.

 

To configure MS IIS to allow FXP

Requirements: MS IIS 5.0 with Windows 2000 SP1 or later
Information provided by Microsoft

Using regedit.exe add the following registry key (DWORD value)

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSFTPSVC/Parameters/
EnablePortAttack=1

Warning: This DOES open your system to a port attack. Microsoft discourages this.

 

To configure ProFTPD 1.2.0rc3 to allow FXP

To support FXP when connecting as a user place "AllowForeignAddress on" in the Global or VirtualHost context.
To support FXP when connecting as anon you must place "AllowForeignAddress on" in the Anonymous context.

The config will happily support "AllowForeignAddress on" in multiple places within the config. You may need to add the following "PassivePorts 49152 65534"

 

To configure wu-ftpd to allow FXP

Requirements: wu-ftpd 2.6.0

/etc/ftpaccess

First, you need to add an additional class for users that are allowed to do FXP (unless you just want to use the predefined class "all"). If you add a new class, this line MUST be before the catch-all class "all", or the client will match class "all" first.

The line is of the form:
class {ArbitraryClassName} {AccessTypes} {HostAddrs} [HostAddrs]

Then you add lines to allow PASV and PORT commands to hosts whose IPs don't match the client (to allow FXP)

These lines are of the form:
port-allow {ArbitraryClassName} {HostAddrs}
pasv-allow {ArbitraryClassName} {HostAddrs}

 

Example

class newclass real,guest,anonymous *.mydomain.net
*.more.client.addresses.com
class all real,guest,anonymous *

port-allow newclass 0.0.0.0/0
pasv-allow newclass 0.0.0.0/0

This basically adds a new class (creatively called "newclass") - note that it appears BEFORE the line containing the class "all" - this new class contains all hosts in the subdomains mydomain.net and more.client.addresses.com (domains obviously made up by yours truly), in order to limit who we will allow to do FXP. The port-allow and pasv-allow lines basically allow FXP connections to anywhere if your client is in the class "newclass".


 

阅读全文
0 0

相关文章推荐

img
取 消
img