ネットワーク外でFTP接続を確立できません

ネットワーク外でFTP接続を確立できません

1 台の Windows 7 コンピューターで実行している FTP サーバーに接続できません。NAT ルーターには 5000 ~ 5100 と 21 個のポートが開いており、外部 IP アドレスがあり、LAN 内の FTP は稼働しており、ftptest.net や他の FTP テスターで外部 IP アドレスを使用してテスト済みで、すべて正常に動作しています。しかし、ブラウザーからアクセスしようとすると、接続が拒否されたというメッセージが表示されます。また、FTP ディレクトリを一覧表示する Python および C# スクリプトもいくつか試しましたが、LAN 内は問題ありませんが、外部 IP では同じエラーが発生します。

FTPTest.net の出力:

Status: Resolving address of 192.140.xx.xxx
Status: Connecting to 192.140.xx.xxx
Warning: The entered address does not resolve to an IPv6 address.
Status: Connected, waiting for welcome message...
Reply: 220-FileZilla Server 0.9.60 beta
Reply: 220-written by Tim Kosse ([email protected])
Reply: 220 Please visit https://filezilla-project.org/
Command: CLNT https://ftptest.net on behalf of 192.140.xx.xxx
Reply: 200 Don't care
Command: AUTH TLS
Reply: 234 Using authentication type TLS
Status: Performing TLS handshake...
Status: TLS handshake successful, verifying certificate...
Status: Received 1 certificates from server.
Status: cert[0]: subject='CN=192.140.xx.xxx,C=55,ST=Bahia,L=Itabuna,O=Contato Pericia Automotiva,OU=Contato Itabuna,[email protected]' issuer='CN=192.140.xx.xxx,C=55,ST=Bahia,L=Itabuna,O=Contato Pericia Automotiva,OU=Contato Itabuna,[email protected]'
Command: USER anonymous
Reply: 331 Password required for anonymous
Command: PASS ************************
Reply: 230 Logged on
Command: SYST
Reply: 215 UNIX emulated by FileZilla
Command: FEAT
Reply: 211-Features:
Reply: MDTM
Reply: REST STREAM
Reply: SIZE
Reply: MLST type*;size*;modify*;
Reply: MLSD
Reply: AUTH SSL
Reply: AUTH TLS
Reply: PROT
Reply: PBSZ
Reply: UTF8
Reply: CLNT
Reply: MFMT
Reply: EPSV
Reply: EPRT
Reply: 211 End
Command: PBSZ 0
Reply: 200 PBSZ=0
Command: PROT P
Reply: 200 Protection level set to P
Command: PWD
Reply: 257 "/" is current directory.
Status: Current path is /
Command: TYPE I
Reply: 200 Type set to I
Command: PASV
Reply: 227 Entering Passive Mode (192,140,xx,xxx,19,140)
Command: MLSD
Status: Data connection established, performing TLS handshake...
Status: TLS handshake successful, verifying certificate...
Status: Received 1 certificates from server.
Status: cert[0]: subject='CN=192.140.xx.xxx,C=55,ST=Bahia,L=Itabuna,O=Contato Pericia Automotiva,OU=Contato Itabuna,[email protected]' issuer='CN=192.140.xx.xxx,C=55,ST=Bahia,L=Itabuna,O=Contato Pericia Automotiva,OU=Contato Itabuna,[email protected]'
Status: TLS session of transfer connection has been resumed.
Reply: 150 Opening data channel for directory listing of "/"
Reply: 226 Successfully transferred "/"
Listing: type=dir;modify=20161214150710; 2016
Listing: type=file;modify=20170808123602;size=2459; 2016 - Atalho.lnk
Listing: type=dir;modify=20170825193146; 2017
Listing: type=file;modify=20141126124218;size=244012; Apresentação1.png
Listing: type=file;modify=20160615135130;size=376600; BOLSONI RASCUNHO.jpg
Listing: type=file;modify=20170306121017;size=349184; Caixa depesas Contato.xls
Listing: type=dir;modify=20170830151015; CONTATO
Listing: type=file;modify=20141126124820;size=21129; CONTATO.jpeg
Listing: type=dir;modify=20170731185326; Documentos
Listing: type=file;modify=20140204041918;size=3049489; DSC00016.JPG
Status: Skipped display of 10 listing lines
Status: Success

前にも言ったように、ルーターのポート 5000 ~ 5100 および 21 は開いています。

FileZilla サーバー オプション:

  • パッシブモード設定:
    • カスタムポート範囲: 5000 - 5100
    • パッシブモード転送用の外部サーバー IP アドレス:
      • 192.140.xx.xxx
  • FTP over TLS 設定:
    • FTP over TLSサポートを有効にしました
    • 暗黙的な FTP over TLS 接続をデフォルト ポート 990 でリッスンします。

FileZilla インターフェースにエラーや警告はありません。

Windows 上のファイアウォール:

ローカル ポート 5000 ~ 5100 でプロトコル TCP による接続を許可する受信ルールを作成しましたが、念のため 21 と 990 も追加しましたが、それでも同じエラーが発生します。リモート ポートはすべてのポートです。

他に何ができるでしょうか?

答え1

そこで、同じテストをもう一度実行したところ、今日はうまくいきました。理由はわかりませんが、知らないうちに外部 IP アドレスを使用してネットワーク内でテストしていたのかもしれません。しかし、問題は解決しました。

関連情報