OpenBSD ftp-proxy 位于 NAT 后面

OpenBSD ftp-proxy 位于 NAT 后面

是否可以更改 OpenBSD 的 PASV IP ftp-proxy 发送给客户端的 PASV IP ,而无需更改重定向控制的监听地址(-b <address>)?

我有以下设置:

FTP client --> 1:1 NAT router --> OpenBSD router --> FTP server

1:1 NAT 路由器有一个 NAT 规则将所有东西转发到OpenBSD 路由器,OpenBSD 路由器运行ftp-proxy -R <FTP server IP>。当 FTP 客户端发送 PASV 命令时,代理服务器将使用进入被动模式(227)在接口上使用自己的源 IP 发送消息1:1 NAT 路由器(显然)。由于1:1 NAT 路由器不识别协议,它会转发此消息,客户端会使用 PASV IP 接收该消息OpenBSD 路由器,但它没有前往该地的路线。

有没有办法,我可以告诉 ftp-proxy 发送进入被动模式消息的源 IP 不同吗?

答案1

FTP 代理服务器

-a address
    The proxy will use this as the source address for the control
    connection to a server.

相关内容