I have a two IP addresses and default gateways on a single ethernet interface:
- ip: 192.168.1.2/24, gw: 192.168.1.1, metric: 10
- ip: 192.168.2.2/24, gw: 192.168.2.1, metric: 20
FileZilla Server listens to both of these addresses, is configured to passive mode and gets an external IP address from http://ip.filezilla-project.org/ip.php.
I need to implement the following scheme with multiple gateways:
Code: Select all
/ [gateway 1, wan ip: 184.108.40.206, lan ip: 192.168.1.1] \
[ftp client] [ftp server 192.168.1.2, 192.168.2.2]
\ [gateway 2, wan ip: 220.127.116.11, lan ip: 192.168.2.1] /
Please make it so that server tried to get external IP address by sending request from that IP address to which the client connects. At the moment FileZilla Server always connect to ip.filezilla-project.org from 192.168.1.2.
P.S. Please fix subject and message body if necessary. Sorry for my english.