[ 設定 ] 讓 vsftpd 支援 FXP

因為有需要,必須把 shell 底下抓取某個 ftp server 裡面的檔案,可是居然都是中文目錄,再遍尋不著適合的 ftp client 的情況下(有沒有人有建議呀!?要可以進去中文目錄的)。突發奇想如果可以用 fxp 的方式轉進去也可以呀!?

最近用的 ftp server 是 vsftp,本來以為一定很簡單就可以支援 fxp 的,沒想到居然不行。


照例 google 了一下,各家講法都有,但是都不成功,後來找到了 vsftpd 的官方設定說明 - Manpage of VSFTPD.CONF

仔細看了一下,加上結合網路上各家的經驗,應該是增加下面三個設定進去就可以了:

pasv_enable=YES
pasv_promiscuous=YES
port_promiscuous=YES

但是好像會有一點安全性上的問題。

相關設定說明摘要如下:

pasv_enable

Set to NO if you want to disallow the PASV method of obtaining a data connection.
Default: YES

pasv_promiscuous

Set to YES if you want to disable the PASV security check that ensures the data connection originates from the same IP address as the control connection. Only enable if you know what you are doing! The only legitimate use for this is in some form of secure tunnelling scheme, or perhaps to facilitate FXP support.
Default: NO

port_enable

Set to NO if you want to disallow the PORT method of obtaining a data connection.
Default: YES

port_promiscuous

Set to YES if you want to disable the PORT security check that ensures that outgoing data connections can only connect to the client. Only enable if you know what you are doing!
Default: NO

相關文章:

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。