Не удается установить FTP-соединение вне сети

Я не могу установить соединение с моим FTP-сервером, работающим на одном компьютере с Windows 7. Мой маршрутизатор NAT имеет открытые порты 5000-5100 и 21, у меня есть внешний IP-адрес, FTP в локальной сети, уже протестирован ftptest.net и другие FTP-тестеры с моим внешним IP-адресом, и все работает нормально. Но когда я пытаюсь получить доступ к нему из браузера, он говорит, что соединение отклонено. Также пробовал некоторые Python и C# скрипт для списка FTP Dir, в локальной сети это нормально, но с внешним 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 (tim.kosse@filezilla-project.org)
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=gabrielrsantoss@icloud.com' issuer='CN=192.140.xx.xxx,C=55,ST=Bahia,L=Itabuna,O=Contato Pericia Automotiva,OU=Contato Itabuna,EMAIL=gabrielrsantoss@icloud.com'
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=gabrielrsantoss@icloud.com' issuer='CN=192.140.xx.xxx,C=55,ST=Bahia,L=Itabuna,O=Contato Pericia Automotiva,OU=Contato Itabuna,EMAIL=gabrielrsantoss@icloud.com'
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.ХХ.ХХХ
  • параметры FTP over TLS:
    • включен FTP через TLS поддержка
    • прослушивание неявных FTP - подключений через TLS-ПОРТ По умолчанию: 990

нет ошибок или предупреждений в интерфейсе FileZilla.

брандмауэр в Windows:

создано входящее правило, чтобы разрешить соединение с протоколом TCP на локальных портах 5000-5100, даже добавлены 21 и 990 только, чтобы убедиться, и до сих пор с той же ошибкой, удаленные порты все порты.

что еще я могу сделать?

8
задан Scott
23.12.2022 1:03 Количество просмотров материала 3075
Распечатать страницу

1 ответ

Итак, я просто сделал те же тесты снова и сегодня работает, я не знаю, почему, может быть, я тестировал внутри моей сети с внешним IP-адресом, не зная, просто может быть.... Но теперь моя проблема решена.

1
отвечен alitalvez 2022-12-24 08:51

Постоянная ссылка на данную страницу: [ Скопировать ссылку | Сгенерировать QR-код ]

Ваш ответ

Опубликуйте как Гость или авторизуйтесь

Имя

Похожие вопросы про тегам:

firewall
ftp
networking
windows-7
windows-firewall
Вверх