FTP : ProFTPD Over SSL/TLS2026/01/22 |
|
ProFTPD を SSL/TLS で利用できるように設定します。
|
|
| [1] |
事前に SSL/TLS 証明書を取得 または
自己署名の証明書を作成しておきます。 |
| [2] | ProFTPD の設定です。 |
|
root@www:~ #
vi /usr/local/etc/proftpd.conf # 最終行に追記
LoadModule mod_tls.c
<IfModule mod_tls.c>
TLSEngine on
TLSRequired on
TLSRSACertificateFile /usr/local/etc/ssl/server.crt
TLSRSACertificateKeyFile /usr/local/etc/ssl/server.key
TLSOptions NoSessionReuseRequired
TLSLog /var/log/proftpd.log
</IfModule>
# システムでファイアウォールサービス稼働中の場合は
# PASV ポートを固定した上で ファイアウォール側で同ポートを許可
PassivePorts 60000 60100
service proftpd restart |
FTP クライアント : FreeBSD |
|
FTP クライアントの設定です。 |
|
| [3] | FTP クライアントインストール済みとして、FreeBSD クライアントの場合、以下のように設定して FTPS に接続します。 接続後は通常通りの操作でファイル転送可能です。 |
|
freebsd@client:~ $
vi ~/.lftprc
# create new set ftp:ssl-auth TLS set ftp:ssl-force true set ftp:ssl-protect-list yes set ftp:ssl-protect-data yes set ftp:ssl-protect-fxp yes set ssl:verify-certificate no lftp -u freebsd www.srv.world Password: lftp freebsd@www.srv.world:~> |
FTP クライアント : Windows |
| [4] | Windows にインストールした FileZilla での FTPS 接続の設定です。 [ファイル] - [サイトマネージャー] を開きます。 |
|
| [5] | 以下のようにサーバーに接続する情報を入力して接続します。[暗号化] には [明示的な FTP over TLS が必要] を選択します。 |
|
| [6] | 自己署名の証明書の場合、以下のような警告が表示されますが、問題ないので [OK] ボタンをクリックして先へ進めます。 |
|
| [7] | 設定に問題なければ以下のように接続できます。問題なくファイル転送ができるか等々確認しておくとよいでしょう。 |
|
| Sponsored Link |
|
|