打开PROFTP的FXP(File Exchange Protocol——文件交换协议)
2004-10-10 09:49
513 查看
今天看到有人对我这里的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版本,需要简单的配置一下,下面是帮助原文:
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 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"
/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".
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 laterInformation 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".
相关文章推荐
- TCP-IP详解卷1-27:FTP:文件传送协议(File Transfer Protocol)
- TCP-IP详解卷1-15:TFTP(Trivial File Transfer Protocol):简单文件传送协议
- 解决 error C1083: 无法打开包括文件:“jni.h”: No such file or directory
- fatal error C1083: 无法打开包括文件:“fstream.h”: No such file or directory
- ultraEdit打开新文件时,会提示:“文件可能不是doc格式,你要转换File为DOC
- VS2008中编译C工程出现无法打开包括文件:“iostream.h”: No such file or directory
- 无法打开包括文件: “gpu/mxGPUArray.h”: No such file or directory
- fatal error C1083: 无法打开包括文件:“winable.h”: No such file or directory
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- “ fatal error C1083: 无法打开包括文件:“extensions/ExtensionMacros.h”: No such file or directory”。
- 打开shapefile格式文件代码
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- vs2010 没法打开包括文件:“streams.h”: No such file or directory
- PowerDesigner打开设计文件后提示failed to read the fileXXX的解决方法
- 创建交换文件(swapfile)-linux
- perl use FileHandle;打开多个文件
- opengl头文件:错误: 无法打开包括文件:“gl/glut.h”: No such file or directory
- AppDelegate中include无法打开文件(cannot open source file "SecondScene.h")
- sql server 关于表中只增标识问题 C# 实现自动化打开和关闭可执行文件(或 关闭停止与系统交互的可执行文件) ajaxfileupload插件上传图片功能,用MVC和aspx做后台各写了一个案例 将小写阿拉伯数字转换成大写的汉字, C# WinForm 中英文实现, 国际化实现的简单方法 ASP.NET Core 2 学习笔记(六)ASP.NET Core 2 学习笔记(三)
- uri中为什么本地文件file后面跟三个斜杠, http等协议跟两个斜杠?