1. 程式人生 > >Filezilla報錯:You appear to be behind a NAT router. Please configure the passive mode settings and ...

Filezilla報錯:You appear to be behind a NAT router. Please configure the passive mode settings and ...

1、今天第一次用filezilla安裝檔案伺服器,出現了這樣一個警告:

You appear to be behind a NAT router. Please configure the passive mode settings and forward a range of ports in your router.

在網上搜了一下解決方案,下面貼出來。

解決方法:
        “Edit”-“Setting”或直接點選設定按鈕(齒輪);
        選擇“Passive mode settings”選項卡,勾選“Use the following IP:”並填寫伺服器的IP地址,之後點選“OK”儲存;

        接下來的提示資訊中不再提示上述問題。

 


2、另外上面的設定中如果沒有設定“Use custom port range”,那麼在客戶端連線服務端讀取目錄時就會報以下的錯誤,這個問題主要是由於使用Passive Mode模式造成的。

響應: 425 Can't open data connection for transfer of "/"

解決方法:

        在上面的設定視窗中要勾選該項,設定埠範圍,並在後面的防火牆設定中,將埠範圍加入到入站埠中。

 

3、接著出現了第三個問題

警告:Warning: FTP over TLS is not enabled, users cannot securely log in.
 

解決方法:

        啟用TLS傳輸,具體操作如下:
        “Edit”-“Setting”或直接點選設定按鈕(齒輪);
        選擇“FTP over TLS settings”選項卡,點選“Generate new certificate...”;
        

生成驗證時“Key size”根據自己的喜好選擇即可,其他資訊可以根據自己的情況隨意填寫,然後選擇儲存地址(最好放到安裝路徑下) “;

        名稱預設為“certificate.crt”就好,最終選擇生成;提示“Certificate generated successfully”則說明生成沒有問題,點選“確定”關閉彈窗;點選“OK”儲存設定;之後的資訊提示不再出現警告。

 

參考:https://segmentfault.com/a/1190000009033181