PureFTPを使用してホストに接続する

PureFTPを使用してホストに接続する

私は自宅のコンピュータでpureftpを実行しています。 filezillaを使用してネットワーク外で接続しようとしています。すべてがうまくいっているようですが、filezillaは接続できません。これは filezilla が表示する唯一のログです。接続の成功を妨げるものは何ですか?

2016-05-04 09:10:23 17108 1 Status: Resolving address of XXX.XXX.XXXX.org
2016-05-04 09:10:23 17108 1 Status: Connecting to XX.XX.XXX.XXX:81...
2016-05-04 09:10:23 17108 1 Status: Connection established, waiting for welcome message...
2016-05-04 09:10:43 17108 1 Error: Connection timed out after 20 seconds of inactivity
2016-05-04 09:10:43 17108 1 Error: Could not connect to server

私はWAN IPに転送されるホスト名に接続しており、ポート81は私のLAN IPに接続しています。

編集する
サーバーシステムで端末を開き、端末が提供するftp XXX.XXX.XXXX.org出力を入力すると、

Request timed out

だからローカルコンピュータに接続することはできないようです。 FTPを設定するときに1つのステップを見逃しましたか?

編集2 コマンドを実行すると、ftp 127.0.0.1出力は次のようになります。

owner@OwnerBackup:~$ ftp 127.0.0.1<br>
Connected to 127.0.0.1.<br>
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------<br>
220-You are user number 1 of 50 allowed.<br>
220-Local time is now 10:37. Server port: 21.<br>
220-This is a private system - No anonymous login<br>
220-IPv6 connections are also welcome on this server.<br>
220 You will be disconnected after 15 minutes of inactivity.<br>
Name (127.0.0.1:owner): <br>

編集3
IP テーブルは次のとおりです。

owner@OwnerBackup:~$ sudo iptables -L<br>
[sudo] password for owner: <br>
Chain INPUT (policy ACCEPT)<br>
target     prot opt source               destination   <br>      
<br>
Chain FORWARD (policy ACCEPT)<br>
target     prot opt source               destination   <br>      
<br>
Chain OUTPUT (policy ACCEPT)<br>
target     prot opt source               destination   <br>

ポート転送の場合、どのポートを転送する必要がありますか?つまり、FTPサーバーは2つの異なるLAN IPで実行されています...
ポート20 - 21は、.300で終わるLAN IPポートに転送されます。
990 ~ 999 は .350 で終わる LAN IP ポートに転送されます。
2000 - 2100に渡されます。 LAN IPは.360(デフォルト)で終わります。

編集#4
私の答えの1つにリストされているアドバイスに従って、サーバーがリッスンするデフォルトのリスニングポートを変更しませんでした。これを変更して接続を試みたときに表示されるエラーログです。正常に接続するにはどうすればよいですか?

2016-05-04 14:46:49 15764 1 Status: Resolving address of XXX.XXX.XXXX.org
2016-05-04 14:46:49 15764 1 Status: Connecting to 9XX.XX.XXX.XXX:2050...
2016-05-04 14:46:49 15764 1 Status: Connection established, waiting for welcome message...
2016-05-04 14:46:49 15764 1 Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
2016-05-04 14:46:49 15764 1 Response: 220-You are user number 2 of 50 allowed.
2016-05-04 14:46:49 15764 1 Response: 220-Local time is now 14:46. Server port: 2050.
2016-05-04 14:46:49 15764 1 Response: 220-This is a private system - No anonymous login
2016-05-04 14:46:49 15764 1 Response: 220-IPv6 connections are also welcome on this server.
2016-05-04 14:46:49 15764 1 Response: 220 You will be disconnected after 15 minutes of inactivity.
2016-05-04 14:46:49 15764 1 Command: AUTH TLS
2016-05-04 14:46:49 15764 1 Response: 500 This security scheme is not implemented
2016-05-04 14:46:49 15764 1 Command: AUTH SSL
2016-05-04 14:46:49 15764 1 Response: 500 This security scheme is not implemented
2016-05-04 14:46:49 15764 1 Status: Insecure server, it does not support FTP over TLS.
2016-05-04 14:46:49 15764 1 Command: USER baduser
2016-05-04 14:46:49 15764 1 Response: 331 User baduser OK. Password required
2016-05-04 14:46:49 15764 1 Command: PASS *******
2016-05-04 14:46:51 15764 1 Response: 230 OK. Current directory is /
2016-05-04 14:46:51 15764 1 Command: OPTS UTF8 ON
2016-05-04 14:46:51 15764 1 Response: 200 OK, UTF-8 enabled
2016-05-04 14:46:51 15764 1 Status: Logged in
2016-05-04 14:46:51 15764 1 Status: Retrieving directory listing...
2016-05-04 14:46:51 15764 1 Command: PWD
2016-05-04 14:46:51 15764 1 Response: 257 "/" is your current location
2016-05-04 14:46:51 15764 1 Command: TYPE I
2016-05-04 14:46:51 15764 1 Response: 200 TYPE is now 8-bit binary
2016-05-04 14:46:51 15764 1 Command: PASV
2016-05-04 14:46:51 15764 1 Response: 227 Entering Passive Mode (XXX,XXX,X,XX,XX,XXX)
2016-05-04 14:46:51 15764 1 Status: Server sent passive reply with unroutable address. Using server address instead.
2016-05-04 14:46:51 15764 1 Command: MLSD
2016-05-04 14:47:03 15764 1 Error: Directory listing aborted by usercd

ベストアンサー1

もう一度確認する必要があります:
1)ローカルに接続できます。
2)端末でftp 127.0.0.1を使用できます。
3) 対応するポート範囲に対してルータでポート転送を設定します。
4) FTP サーバのデフォルトリスニングポートを 1 に変更します。ミラールーターに設定されている範囲のポートの1つです。



私の経験によると、FTPに問題が発生した場合、上記の理由の1つ、通常は4番目の理由から来ています!

おすすめ記事