Hi.
I have two routers in my network before reaching to my private network. The first one has a public IP address at its wan1, and acts as a gateway for its internal interface. The second router (a Fortigate 50B) has a static IP at its wan1 interface and a static route to from 0.0.0.0 to its gateway (172.64.1.11). At this second router internal interface, I finally have my FTP server (configured for passive mode) with a 192.168.0.105 IP address. Bellow is a scheme that I' ve drawn to ilustrate this architecture:
----------------------------------------- ---------------------------------------- ------------------------------------------------
INTERNET -> | 189.165.215.80 RT1 172.64.1.11 | -> | 172.64.7.12 FG-50B 192.168.0.1 | -> | 192.168.0.105 FTP SERVER - WINDOWS 2008 R2 |
----------------------------------------- ---------------------------------------- ------------------------------------------------
Naturally I' ve routed all the necessary ports in both routers so the connection requests from the internet can reach my FTP server. Anyway, the problem that I' m having is that whenever I try to connect my FTP server from the internet, Filezilla keeps trying to connect to the passive mode with the ip 172.64.7.12, that is the wan 1 ip address of the closest router to my FTP server, the Fortigate 50 B. I' ve also tryied on configuring the " External IP Address of Firewall" ip address at my FTP server, but the address is always changed to 172.64.7.12. Bellow follows my connection log.
Estado: A resolver o endereço de ftp.mycompany.com
Estado: Conectando 189.165.215.80:21...
Estado: Conexão estabelecida, esperando mensagem de boas-vindas...
Resposta: 220-Microsoft FTP Service
Comando: USER USER
Resposta: 331 Password required for USER.
Comando: PASS ********
Resposta: 230-Welcome!
Resposta: 230 User logged in.
Comando: SYST
Resposta: 215 Windows_NT
Comando: FEAT
Resposta: 211-Extended features supported:
Resposta: LANG EN*
Resposta: UTF8
Resposta: AUTH TLS;TLS-C;SSL;TLS-P;
Resposta: PBSZ
Resposta: PROT C;P;
Resposta: CCC
Resposta: HOST
Resposta: SIZE
Resposta: MDTM
Resposta: REST STREAM
Resposta: 211 END
Comando: OPTS UTF8 ON
Resposta: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Estado: Conectado
Estado: Obtendo lista de pastas...
Comando: PWD
Resposta: 257 " /" is current directory.
Comando: TYPE I
Resposta: 200 Type set to I.
Comando: PASV
Resposta: 227 Entering Passive Mode (172,64,7,12,128,106).
Comando: LIST
Resposta: 150 Opening BINARY mode data connection.
TIMEOUT
What should I do in order to have my FTP server working?
Regards,
Vinicius Pessôa.
http://www.deepsoft.com.br
DeepSoft is a company specialized in scientific software development and consulting. Our main goal is to provide solutions which relate to problems of scientific complexity, combining science and industry.