I'm using ProFTPD on a Debian server behind another Debian firewall. I can connect to the ftp server from the outside. However, the virtual host that gets chosen is always 192.168.0.4 regardless of WAN or LAN connections. This causes an issue when entering PASV
mode when the ftp server responds with the internal IP address to WAN connections.
I know there is a MasqueradeAddress
directive for WAN connectoins but my WAN connections are connecting to my internal virtual host.
Since there is only 1 IP address on the FTP server, do I need to use the mod_ifsession
module as described here: http://www.proftpd.org/docs/howto/NAT.html?