I have a ftp server 10.0.0.2 on my DMZ. I have access from my networks but I can't with external IP.
Statut : Connexion à xx:21…
Statut : Connexion établie, attente du message d’accueil…
Statut : Initialisation de TLS…
Statut : Connexion TLS établie.
Statut : Connecté
Statut : Récupération du contenu du dossier…
Commande : PWD
Réponse : 257 "/" is current directory.
Commande : TYPE I
Réponse : 200 Type set to I.
Commande : PASV
Réponse : 227 Entering Passive Mode (xx,xx,xx,xx,218,45)
Commande : MLSD
Erreur : Connection interrompue après 20 secondes d’inactivité
Erreur : Impossible de récupérer le contenu du dossier
My firewall :
config redirect
option dest 'DMZ'
option target 'DNAT'
option name 'FTP - PASV'
list proto 'tcp'
option src 'WAN'
option src_dport '55536-55899'
option dest_ip '10.0.0.2'
config redirect
option dest 'DMZ'
option target 'DNAT'
option src 'WAN'
option dest_ip '10.0.0.2'
option name 'FTP'
option src_dport '21'
option dest_port '21'
list proto 'tcp
|Statut :|Connexion à xxx:21…|
|---|---|
|Statut :|Échec de la tentative de connexion avec « ECONNREFUSED - Connexion refusée par le serveur ».|
|Erreur :|Impossible d’établir une connexion au serveur|
#
Rule comment: FTP
0 B
Traffic matched by rule: 0 Packets, 0 Bytes
Address family is IPv4TCP destination port is 21ct.helper is ftp Rewrite destination to 10.0.0.2, port 21
and :
#
Rule comment: FTP (reflection)
Source IP is 10.0.0.0/24Destination IP is 82.66.85.XXTCP destination port is 21ct.helper is ftp Rewrite destination to 10.0.0.2, port 21
If there are no matches on the rule, it means that the packets never reach the firewall.
You can verify with a tcpdump which captures the packets on the cable before they reach the firewall.
Then you'd need to check with the equipment before OpenWrt (some other router or your ISP).