免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4633 | 回复: 13
打印 上一主题 下一主题

[FTP] 在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-21 20:25 |只看该作者 |倒序浏览
ADSL带路由,已经做了端口映射。用动态域名访问。
但在pasv模式从外网访问时,返给客户端的是内部IP。
这样怎么可能访问到。在pure-ftpd 或 proftpd 中
哪里可以设置让它返回公网IP。

<--- 227 Entering Passive Mode (192,168,1,2,43,17

论坛徽章:
0
2 [报告]
发表于 2005-03-21 20:26 |只看该作者

在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决??

请了解的朋友解答!谢谢!

论坛徽章:
0
3 [报告]
发表于 2005-03-22 12:36 |只看该作者

在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决??

请有解决办法的同志给予支持!

论坛徽章:
0
4 [报告]
发表于 2005-03-22 14:10 |只看该作者

在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决??

我也是遇到这个问题,我用的是serverU

论坛徽章:
0
5 [报告]
发表于 2005-03-26 12:15 |只看该作者

在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决??

你的Server-U应该有这个功能。

论坛徽章:
0
6 [报告]
发表于 2005-03-29 22:02 |只看该作者

在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决??

顶!有了解的朋友吗?

论坛徽章:
0
7 [报告]
发表于 2005-04-14 16:32 |只看该作者

在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决??

论坛徽章:
0
8 [报告]
发表于 2005-04-14 17:57 |只看该作者

在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决??

pure-ftpd:

ref: http://www.pureftpd.org/README

'-P <ip address or host name>;': Force the specified IP address in reply to
a PASV/EPSV/SPSV command. If the server is behind a masquerading (NAT) box
that doesn't properly handle stateful FTP masquerading, put the ip address
of that box here. If you have a dynamic IP address, you can put the public
host name of your gateway, that will be resolved every time a new client will
connect.

论坛徽章:
0
9 [报告]
发表于 2005-04-14 18:01 |只看该作者

在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决??

ProFTPD:

ref: http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-NAT.txt

2. Configuring ProFTPD behind a NAT

First configure your ProFTPD install so that it works right from inside
the NAT. There are example configuration files included with the source.

Then add the directive "MasqueradeAddress" in your etc/proftpd.conf file to
define the public name or IP address of the NAT:

MasqueradeAddress        ftp.mydomain.com
        -or-
MasqueradeAddress        123.45.67.89

Now your ProFTPD will hide it's local address and instead use the
public address of your NAT.

However, one BIG problem exists.
The passive FTP connections will use ports from 1024 and up, which means
that you must forward all ports 1024-65535 from the NAT to the FTP server!
And you have to allow lots of (possibly) dangerous ports in your
firewalling rules!
Have no fear, simply use the PassivePorts directive in your
etc/proftpd.conf to control what ports ProFTPD uses:

PassivePorts 60000 65535        # These ports should be safe...

Now start the FTP daemon and you should see something like

  123.45.67.89 - Masquerading as '123.45.67.89' (123.45.67.89)

论坛徽章:
0
10 [报告]
发表于 2005-04-17 10:13 |只看该作者

在pasv模式从外网访问时,返给客户端的是内部IP,怎么解决??

原帖由 "wolfg" 发表:
pure-ftpd:

ref: http://www.pureftpd.org/README

'-P <ip address or host name>;': Force the specified IP address in reply to
a PASV/EPSV/SPSV command. If the server is behind a masquerading ..........


请问vsftp怎么设?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP