Cad*_*oux 5 firewall nat ftp amazon-ec2 amazon-web-services
我在 AWS 上运行服务器,并连接到合作伙伴的 FTP 站点(不太了解他们在运行什么)。我的服务器有一个弹性 IP。在下面的结果中 xx.xx.xx.xx 是内部 IP(与我从 IPConfig 得到的相同)。yy.yy.yy.yy 是外部 IP(与 RDPed 相同)。
Connected to ftp.site.com.
220---------- Welcome to Pure-FTPd [privsep] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 22:47. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
User (ftp.site.com:(none)): someuser
331 User someuser OK. Password required
Password:
230 OK. Current restricted directory is /
ftp> literal pasv
227 Entering Passive Mode (69,28,68,87,255,170)
ftp> ls
500 I won't open a connection to xx.xx.xx.xx (only to yy.yy.yy.yy)
Run Code Online (Sandbox Code Playgroud)
我尝试了 PASV 模式,但它不起作用。
除了 RDP 之外,我的安全组没有任何打开的内容。
Windows 防火墙也在服务器上运行,看起来像亚马逊的默认配置。
一旦我让这个连接正常工作,我可能会将数据从 SSIS 包传输到他们的服务器 FWIW。
我知道 FTP 通过像这样的 NAT 是古怪的,连接被打开了。我需要做什么?
Windows内置的命令行FTP客户端根本不支持被动模式。您在 Internet 上找到的那些黑客攻击literal pasv或quote pasv实际上对 FTP 客户端而言没有任何作用;他们告诉服务器进入被动模式,但客户端仍然不知道。您需要获取第三方 FTP 客户端。
| 归档时间: |
|
| 查看次数: |
15434 次 |
| 最近记录: |